react-native-unit-components 1.12.0 → 1.14.0

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 (348) hide show
  1. package/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +1 -0
  2. package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -1
  3. package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +2 -0
  4. package/android/src/main/java/com/unitreactnativecomponents/secureView/UNSecureViewManager.kt +19 -0
  5. package/android/src/main/java/com/unitreactnativecomponents/security/UNSecurityHelper.kt +37 -0
  6. package/android/src/main/java/com/unitreactnativecomponents/unSnapshotProtectionManager/UNSnapshotProtectionManager.kt +42 -0
  7. package/ios/UNSecurity/UNSecurityHelper.swift +90 -0
  8. package/ios/UNSecurity/UNSecurityHelperExportModule.m +7 -0
  9. package/ios/UNSharedServicesProvider/UNAppStateService.swift +38 -0
  10. package/ios/UNSharedServicesProvider/UNGlobalSnapshotProtectionService.swift +93 -0
  11. package/ios/UNSharedServicesProvider/UNPresentationService.swift +37 -0
  12. package/ios/UNSharedServicesProvider/UNSharedServicesProviderManager.swift +45 -0
  13. package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManager.swift +20 -0
  14. package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManagerExportModule.m +5 -0
  15. package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +16 -0
  16. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +22 -21
  17. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  18. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +22 -21
  19. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  20. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +8 -4
  21. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  22. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +19 -20
  23. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  24. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
  25. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  26. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  27. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +4 -3
  28. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
  29. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +18 -19
  30. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  31. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +88 -0
  32. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -0
  33. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js +30 -0
  34. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js.map +1 -0
  35. package/lib/commonjs/components/UNFundAccountPaymentComponent/index.js +21 -0
  36. package/lib/commonjs/components/UNFundAccountPaymentComponent/index.js.map +1 -0
  37. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +19 -20
  38. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  39. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
  40. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
  41. package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -2
  42. package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
  43. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
  44. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
  45. package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +8 -3
  46. package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
  47. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js +91 -0
  48. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
  49. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +29 -0
  50. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
  51. package/lib/commonjs/components/UNWirePaymentComponent/index.js +21 -0
  52. package/lib/commonjs/components/UNWirePaymentComponent/index.js.map +1 -0
  53. package/lib/commonjs/components/index.js +22 -0
  54. package/lib/commonjs/components/index.js.map +1 -1
  55. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +2 -1
  56. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
  57. package/lib/commonjs/hooks/useIsJailbrokeDevice.js +22 -0
  58. package/lib/commonjs/hooks/useIsJailbrokeDevice.js.map +1 -0
  59. package/lib/commonjs/hooks/useSnapshotProtection.js +31 -0
  60. package/lib/commonjs/hooks/useSnapshotProtection.js.map +1 -0
  61. package/lib/commonjs/messages/webMessages/fundAccountPaymentMessage.js +6 -0
  62. package/lib/commonjs/messages/webMessages/fundAccountPaymentMessage.js.map +1 -0
  63. package/lib/commonjs/messages/webMessages/onLoadMessage.js +2 -0
  64. package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
  65. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
  66. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  67. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js +39 -0
  68. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
  69. package/lib/commonjs/nativeComponents/UNBaseView/index.js +14 -0
  70. package/lib/commonjs/nativeComponents/UNBaseView/index.js.map +1 -0
  71. package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +26 -0
  72. package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
  73. package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js +39 -0
  74. package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
  75. package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -1
  76. package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
  77. package/lib/commonjs/types/internal/webComponent.types.js +2 -0
  78. package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
  79. package/lib/commonjs/types/shared/checkDeposit.types.js.map +1 -1
  80. package/lib/commonjs/types/shared/env.types.js +1 -0
  81. package/lib/commonjs/types/shared/env.types.js.map +1 -1
  82. package/lib/commonjs/types/shared/fundAccountPayment.types.js +6 -0
  83. package/lib/commonjs/types/shared/fundAccountPayment.types.js.map +1 -0
  84. package/lib/commonjs/types/shared/index.js +22 -0
  85. package/lib/commonjs/types/shared/index.js.map +1 -1
  86. package/lib/commonjs/types/shared/payments.types.js +18 -1
  87. package/lib/commonjs/types/shared/payments.types.js.map +1 -1
  88. package/lib/commonjs/types/shared/securitySettings.js +12 -0
  89. package/lib/commonjs/types/shared/securitySettings.js.map +1 -0
  90. package/lib/commonjs/types/shared/types.js +10 -0
  91. package/lib/commonjs/types/shared/types.js.map +1 -1
  92. package/lib/commonjs/types/shared/wirePayment.types.js +6 -0
  93. package/lib/commonjs/types/shared/wirePayment.types.js.map +1 -0
  94. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +6 -1
  95. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
  96. package/lib/commonjs/unitSdkManager/UnitSdkManager.js +25 -4
  97. package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
  98. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
  99. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  100. package/lib/commonjs/unitSdkManager/unitHelpersManager/UnitHelpersManager.js +18 -0
  101. package/lib/commonjs/unitSdkManager/unitHelpersManager/UnitHelpersManager.js.map +1 -1
  102. package/lib/commonjs/utils/onLoadMessages.utils.js +10 -0
  103. package/lib/commonjs/utils/onLoadMessages.utils.js.map +1 -0
  104. package/lib/commonjs/webComponent/WebComponent.js +4 -3
  105. package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
  106. package/lib/commonjs/webComponent/WebComponent.utils.js +2 -2
  107. package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
  108. package/lib/commonjs/webComponent/html.js +1 -0
  109. package/lib/commonjs/webComponent/html.js.map +1 -1
  110. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +23 -22
  111. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  112. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +23 -22
  113. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  114. package/lib/module/components/UNAccountComponent/UNAccountComponent.js +9 -5
  115. package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  116. package/lib/module/components/UNActivityComponent/UNActivityComponent.js +20 -21
  117. package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  118. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
  119. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  120. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  121. package/lib/module/components/UNCardComponent/UNCardComponent.js +4 -3
  122. package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
  123. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +19 -20
  124. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  125. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +79 -0
  126. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -0
  127. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js +22 -0
  128. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js.map +1 -0
  129. package/lib/module/components/UNFundAccountPaymentComponent/index.js +2 -0
  130. package/lib/module/components/UNFundAccountPaymentComponent/index.js.map +1 -0
  131. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +20 -21
  132. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  133. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
  134. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
  135. package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -2
  136. package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
  137. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
  138. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
  139. package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +8 -3
  140. package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
  141. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js +83 -0
  142. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
  143. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +21 -0
  144. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
  145. package/lib/module/components/UNWirePaymentComponent/index.js +2 -0
  146. package/lib/module/components/UNWirePaymentComponent/index.js.map +1 -0
  147. package/lib/module/components/index.js +2 -0
  148. package/lib/module/components/index.js.map +1 -1
  149. package/lib/module/helpers/BottomSheet/BottomSheet.js +2 -1
  150. package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
  151. package/lib/module/hooks/useIsJailbrokeDevice.js +14 -0
  152. package/lib/module/hooks/useIsJailbrokeDevice.js.map +1 -0
  153. package/lib/module/hooks/useSnapshotProtection.js +23 -0
  154. package/lib/module/hooks/useSnapshotProtection.js.map +1 -0
  155. package/lib/module/messages/webMessages/fundAccountPaymentMessage.js +2 -0
  156. package/lib/module/messages/webMessages/fundAccountPaymentMessage.js.map +1 -0
  157. package/lib/module/messages/webMessages/onLoadMessage.js +2 -0
  158. package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
  159. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
  160. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  161. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js +31 -0
  162. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
  163. package/lib/module/nativeComponents/UNBaseView/index.js +2 -0
  164. package/lib/module/nativeComponents/UNBaseView/index.js.map +1 -0
  165. package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +20 -0
  166. package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
  167. package/lib/module/nativeModulesHelpers/UNSecurityHelper.js +33 -0
  168. package/lib/module/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
  169. package/lib/module/networking/common/UNNetworkConstants.js +2 -1
  170. package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
  171. package/lib/module/types/internal/webComponent.types.js +2 -0
  172. package/lib/module/types/internal/webComponent.types.js.map +1 -1
  173. package/lib/module/types/shared/checkDeposit.types.js.map +1 -1
  174. package/lib/module/types/shared/env.types.js +1 -0
  175. package/lib/module/types/shared/env.types.js.map +1 -1
  176. package/lib/module/types/shared/fundAccountPayment.types.js +2 -0
  177. package/lib/module/types/shared/fundAccountPayment.types.js.map +1 -0
  178. package/lib/module/types/shared/index.js +2 -0
  179. package/lib/module/types/shared/index.js.map +1 -1
  180. package/lib/module/types/shared/payments.types.js +17 -0
  181. package/lib/module/types/shared/payments.types.js.map +1 -1
  182. package/lib/module/types/shared/securitySettings.js +6 -0
  183. package/lib/module/types/shared/securitySettings.js.map +1 -0
  184. package/lib/module/types/shared/types.js +6 -0
  185. package/lib/module/types/shared/types.js.map +1 -1
  186. package/lib/module/types/shared/wirePayment.types.js +2 -0
  187. package/lib/module/types/shared/wirePayment.types.js.map +1 -0
  188. package/lib/module/unitSdkManager/UnitSdk.constants.js +6 -1
  189. package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
  190. package/lib/module/unitSdkManager/UnitSdkManager.js +25 -4
  191. package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
  192. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
  193. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  194. package/lib/module/unitSdkManager/unitHelpersManager/UnitHelpersManager.js +18 -0
  195. package/lib/module/unitSdkManager/unitHelpersManager/UnitHelpersManager.js.map +1 -1
  196. package/lib/module/utils/onLoadMessages.utils.js +4 -0
  197. package/lib/module/utils/onLoadMessages.utils.js.map +1 -0
  198. package/lib/module/webComponent/WebComponent.js +4 -3
  199. package/lib/module/webComponent/WebComponent.js.map +1 -1
  200. package/lib/module/webComponent/WebComponent.utils.js +2 -2
  201. package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
  202. package/lib/module/webComponent/html.js +1 -0
  203. package/lib/module/webComponent/html.js.map +1 -1
  204. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -1
  205. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -1
  206. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -1
  207. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -1
  208. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +1 -1
  209. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -1
  210. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -1
  211. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -1
  212. package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -1
  213. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts +19 -0
  214. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts.map +1 -0
  215. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.d.ts +4 -0
  216. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.d.ts.map +1 -0
  217. package/lib/typescript/src/components/UNFundAccountPaymentComponent/index.d.ts +2 -0
  218. package/lib/typescript/src/components/UNFundAccountPaymentComponent/index.d.ts.map +1 -0
  219. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -1
  220. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -1
  221. package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts.map +1 -1
  222. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -1
  223. package/lib/typescript/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.d.ts.map +1 -1
  224. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts +20 -0
  225. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts.map +1 -0
  226. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts +4 -0
  227. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts.map +1 -0
  228. package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts +2 -0
  229. package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts.map +1 -0
  230. package/lib/typescript/src/components/index.d.ts +2 -0
  231. package/lib/typescript/src/components/index.d.ts.map +1 -1
  232. package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -1
  233. package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts +2 -0
  234. package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts.map +1 -0
  235. package/lib/typescript/src/hooks/useSnapshotProtection.d.ts +2 -0
  236. package/lib/typescript/src/hooks/useSnapshotProtection.d.ts.map +1 -0
  237. package/lib/typescript/src/messages/webMessages/fundAccountPaymentMessage.d.ts +6 -0
  238. package/lib/typescript/src/messages/webMessages/fundAccountPaymentMessage.d.ts.map +1 -0
  239. package/lib/typescript/src/messages/webMessages/index.d.ts +2 -1
  240. package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -1
  241. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +10 -3
  242. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -1
  243. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -1
  244. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts +11 -0
  245. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts.map +1 -0
  246. package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts +2 -0
  247. package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts.map +1 -0
  248. package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts +6 -0
  249. package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts.map +1 -0
  250. package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts +12 -0
  251. package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts.map +1 -0
  252. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts +1 -0
  253. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -1
  254. package/lib/typescript/src/types/internal/webComponent.types.d.ts +2 -0
  255. package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
  256. package/lib/typescript/src/types/shared/achCredit.types.d.ts +3 -3
  257. package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -1
  258. package/lib/typescript/src/types/shared/bookPayment.types.d.ts +2 -2
  259. package/lib/typescript/src/types/shared/bookPayment.types.d.ts.map +1 -1
  260. package/lib/typescript/src/types/shared/checkDeposit.types.d.ts +1 -1
  261. package/lib/typescript/src/types/shared/checkDeposit.types.d.ts.map +1 -1
  262. package/lib/typescript/src/types/shared/env.types.d.ts +2 -1
  263. package/lib/typescript/src/types/shared/env.types.d.ts.map +1 -1
  264. package/lib/typescript/src/types/shared/fundAccountPayment.types.d.ts +38 -0
  265. package/lib/typescript/src/types/shared/fundAccountPayment.types.d.ts.map +1 -0
  266. package/lib/typescript/src/types/shared/index.d.ts +2 -0
  267. package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
  268. package/lib/typescript/src/types/shared/payments.types.d.ts +29 -1
  269. package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -1
  270. package/lib/typescript/src/types/shared/securitySettings.d.ts +8 -0
  271. package/lib/typescript/src/types/shared/securitySettings.d.ts.map +1 -0
  272. package/lib/typescript/src/types/shared/types.d.ts +7 -4
  273. package/lib/typescript/src/types/shared/types.d.ts.map +1 -1
  274. package/lib/typescript/src/types/shared/wirePayment.types.d.ts +42 -0
  275. package/lib/typescript/src/types/shared/wirePayment.types.d.ts.map +1 -0
  276. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts +2 -0
  277. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -1
  278. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts +7 -1
  279. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -1
  280. package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -1
  281. package/lib/typescript/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.d.ts +2 -0
  282. package/lib/typescript/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.d.ts.map +1 -1
  283. package/lib/typescript/src/utils/onLoadMessages.utils.d.ts +2 -0
  284. package/lib/typescript/src/utils/onLoadMessages.utils.d.ts.map +1 -0
  285. package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -1
  286. package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -1
  287. package/lib/typescript/src/webComponent/html.d.ts.map +1 -1
  288. package/package.json +1 -1
  289. package/react-native-unit-components.podspec +1 -1
  290. package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +11 -16
  291. package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +11 -17
  292. package/src/components/UNAccountComponent/UNAccountComponent.tsx +9 -5
  293. package/src/components/UNActivityComponent/UNActivityComponent.tsx +7 -14
  294. package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +14 -17
  295. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +0 -1
  296. package/src/components/UNCardComponent/UNCardComponent.tsx +3 -3
  297. package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +7 -14
  298. package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.tsx +111 -0
  299. package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.ts +24 -0
  300. package/src/components/UNFundAccountPaymentComponent/index.ts +1 -0
  301. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +6 -14
  302. package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +3 -3
  303. package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx +14 -11
  304. package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +3 -3
  305. package/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx +15 -12
  306. package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.tsx +109 -0
  307. package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.ts +23 -0
  308. package/src/components/UNWirePaymentComponent/index.ts +1 -0
  309. package/src/components/index.ts +2 -0
  310. package/src/helpers/BottomSheet/BottomSheet.tsx +3 -4
  311. package/src/hooks/useIsJailbrokeDevice.ts +17 -0
  312. package/src/hooks/useSnapshotProtection.ts +25 -0
  313. package/src/messages/webMessages/fundAccountPaymentMessage.ts +8 -0
  314. package/src/messages/webMessages/index.ts +2 -0
  315. package/src/messages/webMessages/onLoadMessage.ts +13 -2
  316. package/src/messages/webMessages/unitMessages.ts +1 -1
  317. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +12 -11
  318. package/src/nativeComponents/UNBaseView/UNBaseView.tsx +50 -0
  319. package/src/nativeComponents/UNBaseView/index.ts +1 -0
  320. package/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.ts +21 -0
  321. package/src/nativeModulesHelpers/UNSecurityHelper.ts +35 -0
  322. package/src/networking/common/UNNetworkConstants.ts +2 -1
  323. package/src/types/internal/webComponent.types.ts +2 -0
  324. package/src/types/shared/achCredit.types.ts +3 -3
  325. package/src/types/shared/bookPayment.types.ts +2 -2
  326. package/src/types/shared/checkDeposit.types.ts +1 -2
  327. package/src/types/shared/env.types.ts +2 -1
  328. package/src/types/shared/fundAccountPayment.types.ts +38 -0
  329. package/src/types/shared/index.ts +2 -0
  330. package/src/types/shared/payments.types.ts +33 -1
  331. package/src/types/shared/securitySettings.ts +8 -0
  332. package/src/types/shared/types.ts +9 -4
  333. package/src/types/shared/wirePayment.types.ts +43 -0
  334. package/src/unitSdkManager/UnitSdk.constants.ts +6 -0
  335. package/src/unitSdkManager/UnitSdkManager.ts +37 -4
  336. package/src/unitSdkManager/UnitSdkManager.utils.internal.ts +3 -0
  337. package/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.ts +20 -0
  338. package/src/utils/onLoadMessages.utils.ts +3 -0
  339. package/src/webComponent/WebComponent.tsx +4 -3
  340. package/src/webComponent/WebComponent.utils.ts +2 -2
  341. package/src/webComponent/html.ts +1 -0
  342. package/lib/commonjs/utils/SDKInfo.js +0 -13
  343. package/lib/commonjs/utils/SDKInfo.js.map +0 -1
  344. package/lib/module/utils/SDKInfo.js +0 -5
  345. package/lib/module/utils/SDKInfo.js.map +0 -1
  346. package/lib/typescript/src/utils/SDKInfo.d.ts +0 -2
  347. package/lib/typescript/src/utils/SDKInfo.d.ts.map +0 -1
  348. package/src/utils/SDKInfo.ts +0 -5
@@ -0,0 +1,6 @@
1
+ declare class UNSnapshotProtectionHelper {
2
+ static setAndroidSecurity(): void;
3
+ static setIosSecurity(shouldProtectFromSnapshot: boolean, style: string): void;
4
+ }
5
+ export default UNSnapshotProtectionHelper;
6
+ //# sourceMappingURL=UNSnapshotProtectionHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UNSnapshotProtectionHelper.d.ts","sourceRoot":"","sources":["../../../../../src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.ts"],"names":[],"mappings":"AAIA,cAAM,0BAA0B;IAC9B,MAAM,CAAC,kBAAkB;IAOzB,MAAM,CAAC,cAAc,CAAC,yBAAyB,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;CAMxE;AAED,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,12 @@
1
+ declare enum UNJailbrokeState {
2
+ Unknown = 0,
3
+ Jailbroke = 1,
4
+ NotJailbroke = 2
5
+ }
6
+ declare class UNSecurityManagerHelper {
7
+ static deviceJailbrokeState: UNJailbrokeState;
8
+ static isDeviceJailbroke(): Promise<boolean>;
9
+ private static isCurrentStatusIsJailbroke;
10
+ }
11
+ export default UNSecurityManagerHelper;
12
+ //# sourceMappingURL=UNSecurityHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UNSecurityHelper.d.ts","sourceRoot":"","sources":["../../../../src/nativeModulesHelpers/UNSecurityHelper.ts"],"names":[],"mappings":"AAIA,aAAK,gBAAgB;IACnB,OAAO,IAAA;IACP,SAAS,IAAA;IACT,YAAY,IAAA;CACb;AAED,cAAM,uBAAuB;IAC3B,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAA4B;WAE5D,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IASlD,OAAO,CAAC,MAAM,CAAC,0BAA0B,CASvC;CACH;AAED,eAAe,uBAAuB,CAAC"}
@@ -5,5 +5,6 @@ export declare const APIHeaders: {
5
5
  export declare const UNIT_SECURE_URL: {
6
6
  sandbox: string;
7
7
  production: string;
8
+ mock: string;
8
9
  };
9
10
  //# sourceMappingURL=UNNetworkConstants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNNetworkConstants.d.ts","sourceRoot":"","sources":["../../../../../src/networking/common/UNNetworkConstants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;CAGtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC"}
1
+ {"version":3,"file":"UNNetworkConstants.d.ts","sourceRoot":"","sources":["../../../../../src/networking/common/UNNetworkConstants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;CAGtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;CAI3B,CAAC"}
@@ -5,6 +5,7 @@ export declare enum WebComponentType {
5
5
  activity = "unit-elements-activity",
6
6
  slot = "unit-elements-sdk-slot",
7
7
  account = "unit-elements-account",
8
+ fundAccountPayment = "unit-elements-fund-account-payment",
8
9
  checkDeposit = "unit-elements-check-deposit",
9
10
  achDebitPayment = "unit-elements-ach-debit-payment",
10
11
  achCreditPayment = "unit-elements-ach-credit-payment",
@@ -12,6 +13,7 @@ export declare enum WebComponentType {
12
13
  programDetails = "unit-elements-program-details",
13
14
  nextRepayment = "unit-elements-next-repayment",
14
15
  payeeManagement = "unit-elements-payee-management",
16
+ wirePayment = "unit-elements-wire-payment",
15
17
  whiteLabelApp = "unit-elements-white-label-app"
16
18
  }
17
19
  export declare enum PresentationMode {
@@ -1 +1 @@
1
- {"version":3,"file":"webComponent.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/internal/webComponent.types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,uBAAuB;IAC3B,aAAa,iCAAiC;IAC9C,WAAW,+BAA+B;IAC1C,QAAQ,2BAA2B;IACnC,IAAI,2BAA2B;IAC/B,OAAO,0BAA0B;IACjC,YAAY,gCAAgC;IAC5C,eAAe,oCAAoC;IACnD,gBAAgB,qCAAqC;IACrD,UAAU,8BAA8B;IACxC,cAAc,kCAAkC;IAChD,aAAa,iCAAiC;IAC9C,eAAe,mCAAmC;IAClD,aAAa,kCAAkC;CAChD;AAED,oBAAY,gBAAgB;IAS1B,mBAAmB,wBAAwB;IAC3C,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB"}
1
+ {"version":3,"file":"webComponent.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/internal/webComponent.types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,uBAAuB;IAC3B,aAAa,iCAAiC;IAC9C,WAAW,+BAA+B;IAC1C,QAAQ,2BAA2B;IACnC,IAAI,2BAA2B;IAC/B,OAAO,0BAA0B;IACjC,kBAAkB,uCAAuC;IACzD,YAAY,gCAAgC;IAC5C,eAAe,oCAAoC;IACnD,gBAAgB,qCAAqC;IACrD,UAAU,8BAA8B;IACxC,cAAc,kCAAkC;IAChD,aAAa,iCAAiC;IAC9C,eAAe,mCAAmC;IAClD,WAAW,+BAA+B;IAC1C,aAAa,kCAAkC;CAChD;AAED,oBAAY,gBAAgB;IAS1B,mBAAmB,wBAAwB;IAC3C,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB"}
@@ -1,13 +1,13 @@
1
1
  import type { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
2
2
  import type { UNAccountData, UNCounterpartyAccountData } from './account.types';
3
- import type { UNAchCounterparty, UNCounterpartyVerificationMethod, UNPaymentStatus } from './payments.types';
3
+ import type { UNPaymentType, UNAchCounterparty, UNCounterpartyVerificationMethod, UNPaymentStatus } from './payments.types';
4
4
  import type { UNTags, UNRelationship } from './types';
5
5
  export type UNACHOnLoadData = {
6
- [RESPONSE_KEYS.account]: UNAccountData;
6
+ [RESPONSE_KEYS.account]: [UNAccountData];
7
7
  [RESPONSE_KEYS.counterpartyAccount]: [UNCounterpartyAccountData];
8
8
  };
9
9
  export type UNACHData = {
10
- type: 'achPayment';
10
+ type: UNPaymentType.AchPayment;
11
11
  id: string;
12
12
  attributes: {
13
13
  createdAt: string | Date;
@@ -1 +1 @@
1
- {"version":3,"file":"achCredit.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/achCredit.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,gCAAgC,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC7G,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG;IAC5B,CAA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E,cAAc,CAAA;KACjC,CAAA;CACF,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { UNPaymentStatus } from './payments.types';
1
+ import type { UNPaymentStatus, UNPaymentType } from './payments.types';
2
2
  import type { UNTags, UNRelationship } from './types';
3
3
  export type UNBookPaymentData = {
4
- type: 'bookPayment';
4
+ type: UNPaymentType.BookPayment;
5
5
  id: string;
6
6
  attributes: {
7
7
  createdAt: string | Date;
@@ -1 +1 @@
1
- {"version":3,"file":"bookPayment.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/bookPayment.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,MAAM,EAAE,eAAe,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAC;QAC9B,WAAW,EAAE,MAAM,CAAC;QACpB,0BAA0B,CAAC,EAAE,MAAM,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,aAAa,EAAE;QACb,OAAO,EAAE,cAAc,CAAC;QACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,SAAS,CAAC,EAAE,cAAc,CAAC;QAC3B,mBAAmB,EAAE,cAAc,CAAC;QACpC,oBAAoB,EAAE,cAAc,CAAC;QACrC,WAAW,EAAE,cAAc,CAAC;QAC5B,gBAAgB,EAAE,cAAc,CAAA;KACjC,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"bookPayment.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/bookPayment.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,MAAM,EAAE,eAAe,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAC;QAC9B,WAAW,EAAE,MAAM,CAAC;QACpB,0BAA0B,CAAC,EAAE,MAAM,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,aAAa,EAAE;QACb,OAAO,EAAE,cAAc,CAAC;QACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,SAAS,CAAC,EAAE,cAAc,CAAC;QAC3B,mBAAmB,EAAE,cAAc,CAAC;QACpC,oBAAoB,EAAE,cAAc,CAAC;QACrC,WAAW,EAAE,cAAc,CAAC;QAC5B,gBAAgB,EAAE,cAAc,CAAA;KACjC,CAAA;CACF,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { UNRelationship } from './types';
2
+ import type { Cents } from './payments.types';
2
3
  export type UNCheckDepositData = {
3
4
  id: string;
4
5
  type: string;
@@ -38,7 +39,6 @@ export declare enum UNCheckDepositStatus {
38
39
  Canceled = "Canceled",
39
40
  Returned = "Returned"
40
41
  }
41
- export type Cents = number;
42
42
  export type UNCheckCounterparty = {
43
43
  name: string;
44
44
  accountNumber: string;
@@ -1 +1 @@
1
- {"version":3,"file":"checkDeposit.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/checkDeposit.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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MAAM,CAAA;CACrB,CAAA"}
1
+ {"version":3,"file":"checkDeposit.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/checkDeposit.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,wBAAwB,CAAA;IACpC,aAAa,EAAE,2BAA2B,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,IAAI,CAAA;IACf,MAAM,EAAE,MAAM,OAAO,oBAAoB,CAAA;IACzC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,KAAK,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,mBAAmB,CAAA;IACjC,cAAc,CAAC,EAAE,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,EAAE,cAAc,CAAA;IACvB,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,WAAW,CAAC,EAAE,cAAc,CAAA;CAC7B,CAAA;AAED,oBAAY,oBAAoB;IAC/B,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,4BAA4B,iCAAiC;IAC7D,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACrB;AAED,MAAM,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;CACrB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export declare enum UNEnvironment {
2
2
  sandbox = "sandbox",
3
- production = "production"
3
+ production = "production",
4
+ mock = "mock"
4
5
  }
5
6
  //# sourceMappingURL=env.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/env.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B"}
1
+ {"version":3,"file":"env.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/env.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,IAAI,SAAS;CACd"}
@@ -0,0 +1,38 @@
1
+ import { UNCardData } from './card.types';
2
+ import { UNPaymentType, Cents, UNPaymentStatus, UNAstraExternalCardData } from './payments.types';
3
+ import { UNDirection, UNRelationshipData } from './types';
4
+ export type UNFundAccountPaymentOnLoadData = [UNAstraExternalCardData] | [UNCardData];
5
+ export type UNFundAccountPaymentData = {
6
+ type: UNPaymentType.CardToCardPayment;
7
+ id: string;
8
+ attributes: {
9
+ createdAt: Date;
10
+ amount: Cents;
11
+ direction: UNDirection;
12
+ description: string;
13
+ status: UNPaymentStatus;
14
+ reason?: string;
15
+ tags?: {
16
+ [key: string]: string;
17
+ };
18
+ astraRoutineId: string;
19
+ };
20
+ relationships: {
21
+ account: {
22
+ data: UNRelationshipData;
23
+ };
24
+ customer?: {
25
+ data: UNRelationshipData;
26
+ };
27
+ customers?: {
28
+ data: [UNRelationshipData];
29
+ };
30
+ transaction?: {
31
+ data: [UNRelationshipData];
32
+ };
33
+ card: {
34
+ data: UNRelationshipData;
35
+ };
36
+ };
37
+ };
38
+ //# sourceMappingURL=fundAccountPayment.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fundAccountPayment.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/fundAccountPayment.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,MAAM,8BAA8B,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;AAErF,MAAM,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC,iBAAiB,CAAA;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE;QACX,SAAS,EAAE,IAAI,CAAA;QACf,MAAM,EAAE,KAAK,CAAA;QACb,SAAS,EAAE,WAAW,CAAA;QACtB,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,eAAe,CAAA;QACvB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,IAAI,CAAC,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAC,CAAA;QAC9B,cAAc,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,aAAa,EAAE;QACd,OAAO,EAAE;YACR,IAAI,EAAE,kBAAkB,CAAA;SACxB,CAAA;QACD,QAAQ,CAAC,EAAE;YACV,IAAI,EAAE,kBAAkB,CAAA;SACxB,CAAA;QACD,SAAS,CAAC,EAAE;YACX,IAAI,EAAE,CAAC,kBAAkB,CAAC,CAAA;SAC1B,CAAA;QACD,WAAW,CAAC,EAAE;YACb,IAAI,EAAE,CAAC,kBAAkB,CAAC,CAAA;SAC1B,CAAA;QAED,IAAI,EAAE;YACL,IAAI,EAAE,kBAAkB,CAAA;SACxB,CAAA;KACD,CAAA;CACD,CAAA"}
@@ -10,6 +10,8 @@ export * from './fonts.types';
10
10
  export * from './error.types';
11
11
  export * from './versioning.types';
12
12
  export * from './multipleCards.types';
13
+ export * from './fundAccountPayment.types';
13
14
  export * from './payeeManagement.types';
14
15
  export * from './env.types';
16
+ export * from './securitySettings';
15
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -1,4 +1,10 @@
1
- export type UNPaymentStatus = 'Sent' | 'Rejected';
1
+ export declare enum UNPaymentType {
2
+ AchPayment = "achPayment",
3
+ BookPayment = "bookPayment",
4
+ CardToCardPayment = "cardToCardPayment",
5
+ WirePayment = "wirePayment"
6
+ }
7
+ export type UNPaymentStatus = 'Sent' | 'Rejected' | 'Pending' | 'Clearing' | 'Canceled' | 'Returned' | 'PendingReview';
2
8
  export type UNAchCounterparty = {
3
9
  name: string;
4
10
  accountNumber: string;
@@ -28,4 +34,26 @@ export declare enum UNPlaidAccountFilter {
28
34
  export declare enum UNCounterpartyVerificationMethod {
29
35
  Plaid = "Plaid"
30
36
  }
37
+ export declare enum UNCardNetwork {
38
+ Visa = "Visa",
39
+ Diners = "Diners",
40
+ Maestro = "Maestro",
41
+ Generic = "Generic",
42
+ Discover = "Discover",
43
+ MasterCard = "MasterCard",
44
+ AmericanExpress = "AmericanExpress"
45
+ }
46
+ export interface UNAstraExternalCardData {
47
+ type: 'astraExternalCard';
48
+ id: string;
49
+ attributes: {
50
+ last4Digits: string;
51
+ cardNetwork: UNCardNetwork;
52
+ fullName: {
53
+ first: string;
54
+ last: string;
55
+ };
56
+ };
57
+ }
58
+ export type Cents = number;
31
59
  //# sourceMappingURL=payments.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payments.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/payments.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,CAAA;AAEjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,yBAAyB,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,UAAU,CAAA;AAE9D,oBAAY,kBAAkB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACnB;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,gBAAgB,GAAG,WAAW,CAAA;AAEpF,oBAAY,wBAAwB;IACnC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED,oBAAY,uBAAuB;IAClC,mBAAmB,wBAAwB;IAC3C,OAAO,YAAY;CACnB;AACD,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,gCAAgC;IAC1C,KAAK,UAAU;CAChB"}
1
+ {"version":3,"file":"payments.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/payments.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACxB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACtC,WAAW,gBAAgB;CAC5B;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,CAAA;AAEtH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,yBAAyB,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,UAAU,CAAA;AAE9D,oBAAY,kBAAkB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACnB;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,gBAAgB,GAAG,WAAW,CAAA;AAEpF,oBAAY,wBAAwB;IACnC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED,oBAAY,uBAAuB;IAClC,mBAAmB,wBAAwB;IAC3C,OAAO,YAAY;CACnB;AACD,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,gCAAgC;IAC1C,KAAK,UAAU;CAChB;AAED,oBAAY,aAAa;IACxB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,eAAe,oBAAoB;CACnC;AAED,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,mBAAmB,CAAA;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,WAAW,EAAE,aAAa,CAAA;QAC1B,QAAQ,EAAE;YACT,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;SACZ,CAAA;KACD,CAAA;CACD;AAED,MAAM,MAAM,KAAK,GAAG,MAAM,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare enum UNSnapshotProtectionStrategy {
2
+ FullProtection = "fullProtection",
3
+ None = "none"
4
+ }
5
+ export interface UNSecuritySettings {
6
+ snapshotProtectionStrategy: UNSnapshotProtectionStrategy;
7
+ }
8
+ //# sourceMappingURL=securitySettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"securitySettings.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/securitySettings.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACtC,cAAc,mBAAmB;IACjC,IAAI,SAAS;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE,4BAA4B,CAAA;CACzD"}
@@ -12,17 +12,20 @@ export type UNLimits = {
12
12
  monthlyWithdrawal?: string | number;
13
13
  monthlyPurchase?: string | number;
14
14
  };
15
- type UNData = {
15
+ export type UNRelationshipData = {
16
16
  type: string;
17
- id: string;
17
+ id: number | string;
18
18
  };
19
19
  export type UNRelationship = {
20
- data: null | [] | UNData | UNData[];
20
+ data: null | [] | UNRelationshipData | UNRelationshipData[];
21
21
  };
22
22
  export type UNFullName = {
23
23
  first: string;
24
24
  last: string;
25
25
  };
26
+ export declare enum UNDirection {
27
+ Debit = "Debit",
28
+ Credit = "Credit"
29
+ }
26
30
  export type UNTags = Record<string, string>;
27
- export {};
28
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC,CAAA;AAED,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EACA,IAAI,GACJ,EAAE,GACF,MAAM,GACN,MAAM,EAAE,CAAA;CACb,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EACA,IAAI,GACJ,EAAE,GACF,kBAAkB,GAClB,kBAAkB,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,oBAAY,WAAW;IACtB,KAAK,UAAU;IACf,MAAM,WAAW;CACjB;AAED,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -0,0 +1,42 @@
1
+ import { UNPaymentStatus, UNPaymentType } from './payments.types';
2
+ import { UNRelationship, UNTags } from './types';
3
+ export interface WirePaymentCreatedEvent {
4
+ data: UNWirePaymentData;
5
+ }
6
+ export type UNWirePaymentData = {
7
+ type: UNPaymentType.WirePayment;
8
+ id: string;
9
+ attributes: {
10
+ createdAt: string | Date;
11
+ amount: number;
12
+ direction: 'Debit' | 'Credit';
13
+ description: string;
14
+ status: UNPaymentStatus;
15
+ reason?: string;
16
+ tags?: UNTags;
17
+ counterparty: UNWireCounterparty;
18
+ };
19
+ relationships: {
20
+ account: UNRelationship;
21
+ customer?: UNRelationship;
22
+ customers?: UNRelationship;
23
+ transaction?: UNRelationship;
24
+ counterpartyAccount?: UNRelationship;
25
+ org?: UNRelationship;
26
+ };
27
+ };
28
+ type UNWireCounterparty = {
29
+ name: string;
30
+ routingNumber: string;
31
+ accountNumber: string;
32
+ address: {
33
+ street: string;
34
+ street2?: string;
35
+ city: string;
36
+ state?: string;
37
+ postalCode: string;
38
+ country?: string;
39
+ };
40
+ };
41
+ export {};
42
+ //# sourceMappingURL=wirePayment.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirePayment.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/wirePayment.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,iBAAiB,CAAA;CACxB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC,WAAW,CAAA;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;QACxB,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAA;QAC7B,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,eAAe,CAAA;QACvB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,YAAY,EAAE,kBAAkB,CAAA;KACjC,CAAA;IACD,aAAa,EAAE;QACb,OAAO,EAAE,cAAc,CAAA;QACvB,QAAQ,CAAC,EAAE,cAAc,CAAA;QACzB,SAAS,CAAC,EAAE,cAAc,CAAA;QAC1B,WAAW,CAAC,EAAE,cAAc,CAAA;QAC5B,mBAAmB,CAAC,EAAE,cAAc,CAAA;QACpC,GAAG,CAAC,EAAE,cAAc,CAAA;KACrB,CAAA;CACF,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA"}
@@ -1,9 +1,11 @@
1
1
  import { UNVersioningStrategyType } from '../types/shared';
2
+ import { UNSecuritySettings } from '../types/shared/securitySettings';
2
3
  export declare const UNSDKConstants: {
3
4
  webSDKRecommendedStrategy: {
4
5
  type: UNVersioningStrategyType.upToNextMinor;
5
6
  major: number;
6
7
  minor: number;
7
8
  };
9
+ securitySettings: UNSecuritySettings;
8
10
  };
9
11
  //# sourceMappingURL=UnitSdk.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnitSdk.constants.d.ts","sourceRoot":"","sources":["../../../../src/unitSdkManager/UnitSdk.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAA2B,MAAM,iBAAiB,CAAC;AAQpF,eAAO,MAAM,cAAc;;;;;;CAE1B,CAAC"}
1
+ {"version":3,"file":"UnitSdk.constants.d.ts","sourceRoot":"","sources":["../../../../src/unitSdkManager/UnitSdk.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAA2B,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAgC,MAAM,kCAAkC,CAAC;AAYpG,eAAO,MAAM,cAAc;;;;;;;CAG1B,CAAC"}
@@ -4,18 +4,23 @@ import type { UNFonts } from '../types/shared/fonts.types';
4
4
  import type { UNWebVersioningStrategy } from '../types/shared';
5
5
  import { UNEnvironment } from '../types/shared/env.types';
6
6
  import { UnitHelpersManager } from './unitHelpersManager/UnitHelpersManager';
7
+ import { UNSecuritySettings } from '../types/shared/securitySettings';
7
8
  export declare class UnitSDK {
8
9
  static ui: UnitUiManager;
9
10
  static helpers: UnitHelpersManager;
10
11
  protected static env?: UNEnvironment;
11
12
  protected static webVersioningStrategy: UNWebVersioningStrategy;
13
+ protected static securitySettings: UNSecuritySettings;
12
14
  protected static customerToken?: string;
13
15
  protected static fonts?: UNFonts;
14
16
  protected static signedNonce?: string;
15
17
  protected static pushProvisionModule?: typeof NativeModules;
16
- static init: (env: UNEnvironment, theme?: string, language?: string, fonts?: UNFonts, webVersioningStrategy?: UNWebVersioningStrategy) => Promise<void>;
18
+ protected static sdkVersion: string;
19
+ static init: (env: UNEnvironment, theme?: string, language?: string, fonts?: UNFonts, webVersioningStrategy?: UNWebVersioningStrategy, securitySettings?: UNSecuritySettings) => Promise<void>;
20
+ static isInitialized: () => boolean;
17
21
  static setPushProvisioningModule: (pushProvisionModule: typeof NativeModules) => void;
18
22
  static getPushProvisionModule: () => import("react-native").NativeModulesStatic | undefined;
23
+ static getSecuritySettings: () => UNSecuritySettings;
19
24
  /**
20
25
  * @deprecated - Unit SDK is managing the signedNonce, no need to provide it
21
26
  */
@@ -29,6 +34,7 @@ export declare class UnitSDK {
29
34
  static getSignedNonce: () => string | undefined;
30
35
  static setCustomerToken: (customerToken: string) => void;
31
36
  static getCustomerToken: () => string | undefined;
37
+ static getSdkVersion: () => string;
32
38
  static cleanUserData: () => void;
33
39
  }
34
40
  //# sourceMappingURL=UnitSdkManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnitSdkManager.d.ts","sourceRoot":"","sources":["../../../../src/unitSdkManager/UnitSdkManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,C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AAc,MAAM,kCAElB;IAEF,OAAc,wBAAwB,gCAEpC;IAEF,OAAc,QAAQ,4BAEpB;IAEF;;OAEG;IACH,OAAc,cAAc,2BAE1B;IAEF,OAAc,gBAAgB,kBAAmB,MAAM,UAErD;IAEF,OAAc,gBAAgB,2BAE5B;IAEF,OAAc,aAAa,eAEzB;IAEF,OAAc,aAAa,aAGzB;CAEH"}
@@ -1 +1 @@
1
- {"version":3,"file":"UnitSdkManager.utils.internal.d.ts","sourceRoot":"","sources":["../../../../src/unitSdkManager/UnitSdkManager.utils.internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,eAAO,MAAM,gBAAgB,QAAS,aAAa,yBAAyB,uBAAuB,WAUlG,CAAC"}
1
+ {"version":3,"file":"UnitSdkManager.utils.internal.d.ts","sourceRoot":"","sources":["../../../../src/unitSdkManager/UnitSdkManager.utils.internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,eAAO,MAAM,gBAAgB,QAAS,aAAa,yBAAyB,uBAAuB,WAalG,CAAC"}
@@ -1,6 +1,8 @@
1
1
  export declare class UnitHelpersManager {
2
2
  redirectUri?: string;
3
+ unitSessionId?: string;
3
4
  constructor();
4
5
  private init;
6
+ private generateUUID;
5
7
  }
6
8
  //# sourceMappingURL=UnitHelpersManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnitHelpersManager.d.ts","sourceRoot":"","sources":["../../../../../src/unitSdkManager/unitHelpersManager/UnitHelpersManager.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;;IAMrB,OAAO,CAAC,IAAI,CAEV;CACH"}
1
+ {"version":3,"file":"UnitHelpersManager.d.ts","sourceRoot":"","sources":["../../../../../src/unitSdkManager/unitHelpersManager/UnitHelpersManager.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;;IAMvB,OAAO,CAAC,IAAI,CAGV;IAEF,OAAO,CAAC,YAAY,CAgBlB;CACH"}
@@ -0,0 +1,2 @@
1
+ export declare function ensureArray<T>(item: T | [T]): [T];
2
+ //# sourceMappingURL=onLoadMessages.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLoadMessages.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/onLoadMessages.utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAEjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"WebComponent.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/WebComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAGhF,OAAO,EAAE,OAAO,EAAuB,MAAM,sBAAsB,CAAC;AAWpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAU/F,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,gBAAgB,CAAC;IACvB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,uFAwJvB,CAAC"}
1
+ {"version":3,"file":"WebComponent.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/WebComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAGhF,OAAO,EAAE,OAAO,EAAuB,MAAM,sBAAsB,CAAC;AAWpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAU/F,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,gBAAgB,CAAC;IACvB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,uFAyJvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WebComponent.utils.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/WebComponent.utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,eAAO,MAAM,aAAa;;EAazB,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB,oBAAoB,kBAAkB,MAAM,IAAI,kBAoBpG,CAAC"}
1
+ {"version":3,"file":"WebComponent.utils.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/WebComponent.utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAIjF,eAAO,MAAM,aAAa;;EAazB,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB,oBAAoB,kBAAkB,MAAM,IAAI,kBAoBpG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/html.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,QAAA,MAAM,QAAQ,QAoFb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/html.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,QAAA,MAAM,QAAQ,QAqFb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unit-components",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Unit React Native components",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.license = package["license"]
12
12
  s.authors = package["author"]
13
13
 
14
- s.platforms = { :ios => "10.0" }
14
+ s.platforms = { :ios => "14.0" }
15
15
  s.source = { :git => "https://github.com/github_account/unit-react-native-components.git", :tag => "#{s.version}" }
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
@@ -3,7 +3,7 @@ import { WebComponent } from '../../webComponent/WebComponent';
3
3
  import type { WebViewMessage } from '../../messages/webMessages';
4
4
  import type { UNOnLoadResponse, UNACHData, UNACHOnLoadData, UNError, UNOnLoadResponseData } from '../../types/shared';
5
5
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
6
- import { Platform, View } from 'react-native';
6
+ import { Platform } from 'react-native';
7
7
  import { getACHCreditParams, getACHCreditScript, injectUnitPlaidResponse } from './UNACHCreditComponent.utils';
8
8
  import { PaymentMessage } from '../../messages/webMessages/paymentsMessage';
9
9
  import type { ACHEvent } from '../../messages/webMessages/achCreditMessage';
@@ -21,6 +21,8 @@ import { PresentationMode, WebComponentType } from '../../types/internal/webComp
21
21
  import { withReduxStore } from '../../helpers/store/helpers';
22
22
  import { UNPlaidAccountFilter } from '../../types/shared';
23
23
  import { PlaidMessage } from '../../messages/webMessages/plaidMessages';
24
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
25
+ import { ensureArray } from '../../utils/onLoadMessages.utils';
24
26
 
25
27
  export interface UNACHCreditComponentProps {
26
28
  accountId?: string;
@@ -69,10 +71,11 @@ const UNACHCreditComponent = (props: UNACHCreditComponentProps) => {
69
71
  }
70
72
 
71
73
  if (RESPONSE_KEYS.account in response && RESPONSE_KEYS.counterpartyAccount in response) {
74
+ const account = response[RESPONSE_KEYS.account].data;
72
75
  // ACHOnLoadResponse;
73
76
  const achOnload: UNOnLoadResponseData<UNACHOnLoadData> = {
74
77
  data: {
75
- [RESPONSE_KEYS.account]: response[RESPONSE_KEYS.account].data,
78
+ [RESPONSE_KEYS.account]: ensureArray(account),
76
79
  [RESPONSE_KEYS.counterpartyAccount]: response[RESPONSE_KEYS.counterpartyAccount].data,
77
80
  },
78
81
  };
@@ -138,8 +141,10 @@ const UNACHCreditComponent = (props: UNACHCreditComponentProps) => {
138
141
  }
139
142
  };
140
143
 
141
- const renderACHCreditWebView = () => {
142
- return (
144
+ const style = presentationMode === PresentationMode.Inherit ? { flex: 1 } : { height: height };
145
+
146
+ return (
147
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
143
148
  <WebComponent
144
149
  ref={webRef}
145
150
  type={WebComponentType.achCreditPayment}
@@ -147,21 +152,11 @@ const UNACHCreditComponent = (props: UNACHCreditComponentProps) => {
147
152
  params={getACHCreditParams(props)}
148
153
  script={getACHCreditScript(appPackageName)}
149
154
  onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
150
- isScrollable={false}
155
+ isScrollable={true}
151
156
  theme={props.theme}
152
157
  language={props.language}
153
158
  />
154
- );
155
- };
156
-
157
- if (presentationMode === PresentationMode.Inherit) {
158
- return renderACHCreditWebView();
159
- }
160
-
161
- return (
162
- <View style={{ height: height }}>
163
- {renderACHCreditWebView()}
164
- </View>
159
+ </UNBaseView>
165
160
  );
166
161
  };
167
162
 
@@ -3,7 +3,7 @@ import { WebComponent } from '../../webComponent/WebComponent';
3
3
  import type { WebViewMessage } from '../../messages/webMessages';
4
4
  import type { UNOnLoadResponse, UNACHData, UNError, UNOnLoadResponseData, UNACHOnLoadData } from '../../types/shared';
5
5
  import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
6
- import { Platform, View } from 'react-native';
6
+ import { Platform } from 'react-native';
7
7
  import {
8
8
  PlaidLinkTokenData,
9
9
  PlaidTokenCreatedEvent,
@@ -22,6 +22,8 @@ import { PresentationMode, WebComponentType } from '../../types/internal/webComp
22
22
  import { withReduxStore } from '../../helpers/store/helpers';
23
23
  import { UNPlaidAccountFilter } from '../../types/shared';
24
24
  import { PlaidMessage } from '../../messages/webMessages/plaidMessages';
25
+ import { UNBaseView } from '../../nativeComponents/UNBaseView';
26
+ import { ensureArray } from '../../utils/onLoadMessages.utils';
25
27
 
26
28
  export interface UNACHDebitComponentProps {
27
29
  accountId?: string;
@@ -69,10 +71,11 @@ const UNACHDebitComponent = (props: UNACHDebitComponentProps) => {
69
71
  }
70
72
 
71
73
  if (RESPONSE_KEYS.account in response && RESPONSE_KEYS.counterpartyAccount in response) {
74
+ const account = response[RESPONSE_KEYS.account].data;
72
75
  // ACHOnLoadResponse;
73
76
  const achOnload: UNOnLoadResponseData<UNACHOnLoadData> = {
74
77
  data: {
75
- [RESPONSE_KEYS.account]: response[RESPONSE_KEYS.account].data,
78
+ [RESPONSE_KEYS.account]: ensureArray(account),
76
79
  [RESPONSE_KEYS.counterpartyAccount]: response[RESPONSE_KEYS.counterpartyAccount].data,
77
80
  },
78
81
  };
@@ -138,8 +141,10 @@ const UNACHDebitComponent = (props: UNACHDebitComponentProps) => {
138
141
  }
139
142
  };
140
143
 
141
- const renderACHDebitWebView = () => {
142
- return (
144
+ const style = presentationMode === PresentationMode.Inherit ? { flex: 1 } : { height: height };
145
+
146
+ return (
147
+ <UNBaseView style={style} onLoadError={ handleUnitOnLoad }>
143
148
  <WebComponent
144
149
  ref={webRef}
145
150
  type={WebComponentType.achDebitPayment}
@@ -147,22 +152,11 @@ const UNACHDebitComponent = (props: UNACHDebitComponentProps) => {
147
152
  params={getACHDebitParams(props)}
148
153
  script={getACHDebitScript(appPackageName)}
149
154
  onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
150
- isScrollable={false}
155
+ isScrollable={true}
151
156
  theme={props.theme}
152
157
  language={props.language}
153
158
  />
154
- );
155
- };
156
-
157
- if (presentationMode === PresentationMode.Inherit) {
158
- return renderACHDebitWebView();
159
- }
160
-
161
- return (
162
- <View style={{ height: height }}>
163
- {renderACHDebitWebView()}
164
- </View>
165
-
159
+ </UNBaseView>
166
160
  );
167
161
  };
168
162