react-native-timacare 3.1.2 → 3.1.4-beta

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 (626) hide show
  1. package/lib/commonjs/assets/icons/cam2.svg +5 -0
  2. package/lib/commonjs/assets/icons/chip.svg +20 -0
  3. package/lib/commonjs/assets/icons/index.js +1 -1
  4. package/lib/commonjs/assets/icons/index.js.flow +8 -0
  5. package/lib/commonjs/assets/icons/index.js.map +1 -1
  6. package/lib/commonjs/assets/icons/ocr.svg +11 -0
  7. package/lib/commonjs/assets/icons/takePhoto.svg +20 -0
  8. package/lib/commonjs/assets/icons/tima_small.svg +12 -23
  9. package/lib/commonjs/assets/svgs/back.svg +4 -0
  10. package/lib/commonjs/assets/svgs/complete.svg +27 -0
  11. package/lib/commonjs/assets/svgs/currentStep.svg +28 -0
  12. package/lib/commonjs/assets/svgs/edit.svg +42 -0
  13. package/lib/commonjs/assets/svgs/edit_success.svg +15 -0
  14. package/lib/commonjs/assets/svgs/ekyc.svg +18 -0
  15. package/lib/commonjs/assets/svgs/ekyc_success.svg +6 -0
  16. package/lib/commonjs/assets/svgs/index.js +2 -0
  17. package/lib/commonjs/assets/svgs/index.js.flow +23 -0
  18. package/lib/commonjs/assets/svgs/index.js.map +1 -0
  19. package/lib/commonjs/assets/svgs/nextStep.svg +21 -0
  20. package/lib/commonjs/assets/svgs/notify.svg +18 -0
  21. package/lib/commonjs/assets/svgs/orc_success.svg +11 -0
  22. package/lib/commonjs/assets/tts/1000009864.png +0 -0
  23. package/lib/commonjs/assets/tts/1000009872.png +0 -0
  24. package/lib/commonjs/assets/tts/1000011964.png +0 -0
  25. package/lib/commonjs/assets/tts/Banner.png +0 -0
  26. package/lib/commonjs/assets/tts/Frame 1000011947.png +0 -0
  27. package/lib/commonjs/assets/tts/Frame1000011946.png +0 -0
  28. package/lib/commonjs/assets/tts/Frame1000011953.png +0 -0
  29. package/lib/commonjs/assets/tts/back.png +0 -0
  30. package/lib/commonjs/assets/tts/front.png +0 -0
  31. package/lib/commonjs/assets/tts/otp.png +0 -0
  32. package/lib/commonjs/assets/tts/vehicleRegistration.png +0 -0
  33. package/lib/commonjs/assets/tts/vehicleStep.png +0 -0
  34. package/lib/commonjs/components/CIMBLoading.js +1 -1
  35. package/lib/commonjs/components/CIMBLoading.js.map +1 -1
  36. package/lib/commonjs/components/CommonSelect.js +1 -1
  37. package/lib/commonjs/components/CommonSelect.js.map +1 -1
  38. package/lib/commonjs/components/Loading.js +1 -1
  39. package/lib/commonjs/components/Loading.js.map +1 -1
  40. package/lib/commonjs/components/MButton.js +1 -1
  41. package/lib/commonjs/components/MButton.js.map +1 -1
  42. package/lib/commonjs/components/MHeader.js +1 -1
  43. package/lib/commonjs/components/MHeader.js.flow +1 -1
  44. package/lib/commonjs/components/MHeader.js.map +1 -1
  45. package/lib/commonjs/components/MSelect.js +2 -0
  46. package/lib/commonjs/components/MSelect.js.flow +78 -0
  47. package/lib/commonjs/components/MSelect.js.map +1 -0
  48. package/lib/commonjs/components/MText.js +1 -1
  49. package/lib/commonjs/components/MText.js.map +1 -1
  50. package/lib/commonjs/components/MyTextInput.js +1 -1
  51. package/lib/commonjs/components/MyTextInput.js.map +1 -1
  52. package/lib/commonjs/components/StepIndicator.js +2 -0
  53. package/lib/commonjs/components/StepIndicator.js.flow +85 -0
  54. package/lib/commonjs/components/StepIndicator.js.map +1 -0
  55. package/lib/commonjs/components/keyboardspace/index.js +1 -1
  56. package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
  57. package/lib/commonjs/components/logoTima/index.js +1 -1
  58. package/lib/commonjs/components/logoTima/index.js.map +1 -1
  59. package/lib/commonjs/components/select/index.js +1 -1
  60. package/lib/commonjs/components/select/index.js.flow +19 -3
  61. package/lib/commonjs/components/select/index.js.map +1 -1
  62. package/lib/commonjs/index.js +1 -1
  63. package/lib/commonjs/index.js.flow +3 -1
  64. package/lib/commonjs/index.js.map +1 -1
  65. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  66. package/lib/commonjs/navigation/primary-navigator.js.flow +81 -1
  67. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  68. package/lib/commonjs/navigation/root-navigator.js +1 -1
  69. package/lib/commonjs/navigation/root-navigator.js.map +1 -1
  70. package/lib/commonjs/screens/Selector.js +1 -1
  71. package/lib/commonjs/screens/Selector.js.map +1 -1
  72. package/lib/commonjs/screens/camera/index.js +1 -1
  73. package/lib/commonjs/screens/camera/index.js.flow +1 -1
  74. package/lib/commonjs/screens/camera/index.js.map +1 -1
  75. package/lib/commonjs/screens/cimb-sign/index.js +1 -1
  76. package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
  77. package/lib/commonjs/screens/contract/index.js +1 -1
  78. package/lib/commonjs/screens/contract/index.js.map +1 -1
  79. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  80. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  81. package/lib/commonjs/screens/detail-loan/Info.js +1 -1
  82. package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
  83. package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
  84. package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
  85. package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
  86. package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
  87. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  88. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  89. package/lib/commonjs/screens/detail-loan/QrPayment.js +1 -1
  90. package/lib/commonjs/screens/detail-loan/QrPayment.js.map +1 -1
  91. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  92. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  93. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  94. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  95. package/lib/commonjs/screens/digital-lending/Step1.js +1 -1
  96. package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -1
  97. package/lib/commonjs/screens/digital-lending/Step2.js +1 -1
  98. package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -1
  99. package/lib/commonjs/screens/digital-lending/Step3.js +1 -1
  100. package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -1
  101. package/lib/commonjs/screens/digital-lending/Step4.js +1 -1
  102. package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -1
  103. package/lib/commonjs/screens/digital-lending/Step5.js +1 -1
  104. package/lib/commonjs/screens/digital-lending/Step5.js.map +1 -1
  105. package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
  106. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
  107. package/lib/commonjs/screens/digital-lending/index.js +1 -1
  108. package/lib/commonjs/screens/digital-lending/index.js.map +1 -1
  109. package/lib/commonjs/screens/eSign/PreviewContract.js +1 -1
  110. package/lib/commonjs/screens/eSign/PreviewContract.js.map +1 -1
  111. package/lib/commonjs/screens/eSign/Store.js +1 -1
  112. package/lib/commonjs/screens/eSign/Store.js.flow +9 -2
  113. package/lib/commonjs/screens/eSign/Store.js.map +1 -1
  114. package/lib/commonjs/screens/eSign/index.js +1 -1
  115. package/lib/commonjs/screens/eSign/index.js.flow +4 -1
  116. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  117. package/lib/commonjs/screens/forgotPassword/index.js +1 -1
  118. package/lib/commonjs/screens/forgotPassword/index.js.map +1 -1
  119. package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
  120. package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
  121. package/lib/commonjs/screens/full-submit/index.js +1 -1
  122. package/lib/commonjs/screens/full-submit/index.js.flow +7 -7
  123. package/lib/commonjs/screens/full-submit/index.js.map +1 -1
  124. package/lib/commonjs/screens/full-submit/selfie.js +1 -1
  125. package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
  126. package/lib/commonjs/screens/full-submit/update-document.js +1 -1
  127. package/lib/commonjs/screens/full-submit/update-document.js.flow +1 -1
  128. package/lib/commonjs/screens/full-submit/update-document.js.map +1 -1
  129. package/lib/commonjs/screens/full-submit/update-info.js +1 -1
  130. package/lib/commonjs/screens/full-submit/update-info.js.flow +1 -1
  131. package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
  132. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  133. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  134. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  135. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  136. package/lib/commonjs/screens/home/CIMBxTima.js +1 -1
  137. package/lib/commonjs/screens/home/CIMBxTima.js.map +1 -1
  138. package/lib/commonjs/screens/home/index.js +1 -1
  139. package/lib/commonjs/screens/home/index.js.flow +1809 -1400
  140. package/lib/commonjs/screens/home/index.js.map +1 -1
  141. package/lib/commonjs/screens/intro/index.js +1 -1
  142. package/lib/commonjs/screens/intro/index.js.map +1 -1
  143. package/lib/commonjs/screens/introduction/index.js +1 -1
  144. package/lib/commonjs/screens/introduction/index.js.map +1 -1
  145. package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
  146. package/lib/commonjs/screens/liveness/LivenessStore.js.flow +87 -1
  147. package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
  148. package/lib/commonjs/screens/liveness/index.js +1 -1
  149. package/lib/commonjs/screens/liveness/index.js.map +1 -1
  150. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  151. package/lib/commonjs/screens/liveness-v2/index.js.flow +36 -23
  152. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  153. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  154. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  155. package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
  156. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
  157. package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
  158. package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
  159. package/lib/commonjs/screens/main/index.js +1 -1
  160. package/lib/commonjs/screens/main/index.js.map +1 -1
  161. package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
  162. package/lib/commonjs/screens/mrz-scanner/index.js.flow +2 -2
  163. package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
  164. package/lib/commonjs/screens/nationalID/index.js +1 -1
  165. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  166. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  167. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  168. package/lib/commonjs/screens/notification/index.js +1 -1
  169. package/lib/commonjs/screens/notification/index.js.map +1 -1
  170. package/lib/commonjs/screens/otp/index.js +1 -1
  171. package/lib/commonjs/screens/otp/index.js.map +1 -1
  172. package/lib/commonjs/screens/payment-evidence/Guideline.js +1 -1
  173. package/lib/commonjs/screens/payment-evidence/Guideline.js.map +1 -1
  174. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +1 -1
  175. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -1
  176. package/lib/commonjs/screens/payment-evidence/index.js +1 -1
  177. package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
  178. package/lib/commonjs/screens/personal/index.js +1 -1
  179. package/lib/commonjs/screens/personal/index.js.map +1 -1
  180. package/lib/commonjs/screens/qualify/index.js +1 -1
  181. package/lib/commonjs/screens/qualify/index.js.map +1 -1
  182. package/lib/commonjs/screens/quick-submit/index.js +1 -1
  183. package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
  184. package/lib/commonjs/screens/register/index.js +1 -1
  185. package/lib/commonjs/screens/register/index.js.flow +3 -1
  186. package/lib/commonjs/screens/register/index.js.map +1 -1
  187. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  188. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  189. package/lib/commonjs/screens/schedule-payment/index.js +1 -1
  190. package/lib/commonjs/screens/schedule-payment/index.js.map +1 -1
  191. package/lib/commonjs/screens/schedule-payment/payment-list.js +1 -1
  192. package/lib/commonjs/screens/schedule-payment/payment-list.js.map +1 -1
  193. package/lib/commonjs/screens/selfie/index.js +1 -1
  194. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  195. package/lib/commonjs/screens/setPassword/confirmPassword.js +1 -1
  196. package/lib/commonjs/screens/setPassword/confirmPassword.js.map +1 -1
  197. package/lib/commonjs/screens/setPassword/index.js +1 -1
  198. package/lib/commonjs/screens/setPassword/index.js.map +1 -1
  199. package/lib/commonjs/screens/sign-tima/ConfirmContract.js +1 -1
  200. package/lib/commonjs/screens/sign-tima/ConfirmContract.js.map +1 -1
  201. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  202. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  203. package/lib/commonjs/screens/splash/index.js +1 -1
  204. package/lib/commonjs/screens/splash/index.js.map +1 -1
  205. package/lib/commonjs/screens/terms/QuickTerm.js +1 -1
  206. package/lib/commonjs/screens/terms/QuickTerm.js.map +1 -1
  207. package/lib/commonjs/screens/terms/TermScreen.js +1 -1
  208. package/lib/commonjs/screens/terms/TermScreen.js.map +1 -1
  209. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +2 -0
  210. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +373 -0
  211. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -0
  212. package/lib/commonjs/screens/toan-trinh-so/OCR.js +2 -0
  213. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +831 -0
  214. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -0
  215. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +2 -0
  216. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +467 -0
  217. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
  218. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +2 -0
  219. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +1007 -0
  220. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
  221. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
  222. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +791 -0
  223. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
  224. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +2 -0
  225. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +1200 -0
  226. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
  227. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
  228. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +242 -0
  229. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
  230. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
  231. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +247 -0
  232. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
  233. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +2 -0
  234. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +356 -0
  235. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -0
  236. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +2 -0
  237. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +267 -0
  238. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
  239. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +2 -0
  240. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +143 -0
  241. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -0
  242. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +2 -0
  243. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +477 -0
  244. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
  245. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +2 -0
  246. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +197 -0
  247. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
  248. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
  249. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +239 -0
  250. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
  251. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
  252. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +240 -0
  253. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
  254. package/lib/commonjs/screens/toan-trinh-so/store.js +2 -0
  255. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +237 -0
  256. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -0
  257. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  258. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  259. package/lib/commonjs/services/api/api-config.js +1 -1
  260. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  261. package/lib/commonjs/services/api/api-config.js.map +1 -1
  262. package/lib/commonjs/services/api/api.js +1 -1
  263. package/lib/commonjs/services/api/api.js.flow +235 -0
  264. package/lib/commonjs/services/api/api.js.map +1 -1
  265. package/lib/commonjs/utils/index.js +1 -1
  266. package/lib/commonjs/utils/index.js.flow +67 -45
  267. package/lib/commonjs/utils/index.js.map +1 -1
  268. package/lib/commonjs/utils/storage/storage.js +1 -1
  269. package/lib/commonjs/utils/storage/storage.js.flow +4 -0
  270. package/lib/commonjs/utils/storage/storage.js.map +1 -1
  271. package/lib/module/assets/icons/cam2.svg +5 -0
  272. package/lib/module/assets/icons/chip.svg +20 -0
  273. package/lib/module/assets/icons/index.js +1 -1
  274. package/lib/module/assets/icons/index.js.map +1 -1
  275. package/lib/module/assets/icons/ocr.svg +11 -0
  276. package/lib/module/assets/icons/takePhoto.svg +20 -0
  277. package/lib/module/assets/icons/tima_small.svg +12 -23
  278. package/lib/module/assets/svgs/back.svg +4 -0
  279. package/lib/module/assets/svgs/complete.svg +27 -0
  280. package/lib/module/assets/svgs/currentStep.svg +28 -0
  281. package/lib/module/assets/svgs/edit.svg +42 -0
  282. package/lib/module/assets/svgs/edit_success.svg +15 -0
  283. package/lib/module/assets/svgs/ekyc.svg +18 -0
  284. package/lib/module/assets/svgs/ekyc_success.svg +6 -0
  285. package/lib/module/assets/svgs/index.js +2 -0
  286. package/lib/module/assets/svgs/index.js.map +1 -0
  287. package/lib/module/assets/svgs/nextStep.svg +21 -0
  288. package/lib/module/assets/svgs/notify.svg +18 -0
  289. package/lib/module/assets/svgs/orc_success.svg +11 -0
  290. package/lib/module/assets/tts/1000009864.png +0 -0
  291. package/lib/module/assets/tts/1000009872.png +0 -0
  292. package/lib/module/assets/tts/1000011964.png +0 -0
  293. package/lib/module/assets/tts/Banner.png +0 -0
  294. package/lib/module/assets/tts/Frame 1000011947.png +0 -0
  295. package/lib/module/assets/tts/Frame1000011946.png +0 -0
  296. package/lib/module/assets/tts/Frame1000011953.png +0 -0
  297. package/lib/module/assets/tts/back.png +0 -0
  298. package/lib/module/assets/tts/front.png +0 -0
  299. package/lib/module/assets/tts/otp.png +0 -0
  300. package/lib/module/assets/tts/vehicleRegistration.png +0 -0
  301. package/lib/module/assets/tts/vehicleStep.png +0 -0
  302. package/lib/module/components/CIMBLoading.js +1 -1
  303. package/lib/module/components/CIMBLoading.js.map +1 -1
  304. package/lib/module/components/CommonSelect.js +1 -1
  305. package/lib/module/components/CommonSelect.js.map +1 -1
  306. package/lib/module/components/Loading.js +1 -1
  307. package/lib/module/components/Loading.js.map +1 -1
  308. package/lib/module/components/MButton.js +1 -1
  309. package/lib/module/components/MButton.js.map +1 -1
  310. package/lib/module/components/MHeader.js +1 -1
  311. package/lib/module/components/MHeader.js.map +1 -1
  312. package/lib/module/components/MSelect.js +2 -0
  313. package/lib/module/components/MSelect.js.map +1 -0
  314. package/lib/module/components/MText.js +1 -1
  315. package/lib/module/components/MText.js.map +1 -1
  316. package/lib/module/components/MyTextInput.js +1 -1
  317. package/lib/module/components/MyTextInput.js.map +1 -1
  318. package/lib/module/components/StepIndicator.js +2 -0
  319. package/lib/module/components/StepIndicator.js.map +1 -0
  320. package/lib/module/components/keyboardspace/index.js +1 -1
  321. package/lib/module/components/keyboardspace/index.js.map +1 -1
  322. package/lib/module/components/logoTima/index.js +1 -1
  323. package/lib/module/components/logoTima/index.js.map +1 -1
  324. package/lib/module/components/select/index.js +1 -1
  325. package/lib/module/components/select/index.js.map +1 -1
  326. package/lib/module/index.js +1 -1
  327. package/lib/module/index.js.map +1 -1
  328. package/lib/module/navigation/primary-navigator.js +1 -1
  329. package/lib/module/navigation/primary-navigator.js.map +1 -1
  330. package/lib/module/navigation/root-navigator.js +1 -1
  331. package/lib/module/navigation/root-navigator.js.map +1 -1
  332. package/lib/module/screens/Selector.js +1 -1
  333. package/lib/module/screens/Selector.js.map +1 -1
  334. package/lib/module/screens/camera/index.js +1 -1
  335. package/lib/module/screens/camera/index.js.map +1 -1
  336. package/lib/module/screens/cimb-sign/index.js +1 -1
  337. package/lib/module/screens/cimb-sign/index.js.map +1 -1
  338. package/lib/module/screens/contract/index.js +1 -1
  339. package/lib/module/screens/contract/index.js.map +1 -1
  340. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  341. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  342. package/lib/module/screens/detail-loan/Info.js +1 -1
  343. package/lib/module/screens/detail-loan/Info.js.map +1 -1
  344. package/lib/module/screens/detail-loan/Payment.js +1 -1
  345. package/lib/module/screens/detail-loan/Payment.js.map +1 -1
  346. package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
  347. package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
  348. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  349. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  350. package/lib/module/screens/detail-loan/QrPayment.js +1 -1
  351. package/lib/module/screens/detail-loan/QrPayment.js.map +1 -1
  352. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  353. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  354. package/lib/module/screens/detail-loan/index.js +1 -1
  355. package/lib/module/screens/detail-loan/index.js.map +1 -1
  356. package/lib/module/screens/digital-lending/Step1.js +1 -1
  357. package/lib/module/screens/digital-lending/Step1.js.map +1 -1
  358. package/lib/module/screens/digital-lending/Step2.js +1 -1
  359. package/lib/module/screens/digital-lending/Step2.js.map +1 -1
  360. package/lib/module/screens/digital-lending/Step3.js +1 -1
  361. package/lib/module/screens/digital-lending/Step3.js.map +1 -1
  362. package/lib/module/screens/digital-lending/Step4.js +1 -1
  363. package/lib/module/screens/digital-lending/Step4.js.map +1 -1
  364. package/lib/module/screens/digital-lending/Step5.js +1 -1
  365. package/lib/module/screens/digital-lending/Step5.js.map +1 -1
  366. package/lib/module/screens/digital-lending/Step6.js +1 -1
  367. package/lib/module/screens/digital-lending/Step6.js.map +1 -1
  368. package/lib/module/screens/digital-lending/index.js +1 -1
  369. package/lib/module/screens/digital-lending/index.js.map +1 -1
  370. package/lib/module/screens/eSign/PreviewContract.js +1 -1
  371. package/lib/module/screens/eSign/PreviewContract.js.map +1 -1
  372. package/lib/module/screens/eSign/Store.js +1 -1
  373. package/lib/module/screens/eSign/Store.js.map +1 -1
  374. package/lib/module/screens/eSign/index.js +1 -1
  375. package/lib/module/screens/eSign/index.js.map +1 -1
  376. package/lib/module/screens/forgotPassword/index.js +1 -1
  377. package/lib/module/screens/forgotPassword/index.js.map +1 -1
  378. package/lib/module/screens/full-submit/accept_policy.js +1 -1
  379. package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
  380. package/lib/module/screens/full-submit/index.js +1 -1
  381. package/lib/module/screens/full-submit/index.js.map +1 -1
  382. package/lib/module/screens/full-submit/selfie.js +1 -1
  383. package/lib/module/screens/full-submit/selfie.js.map +1 -1
  384. package/lib/module/screens/full-submit/update-document.js +1 -1
  385. package/lib/module/screens/full-submit/update-document.js.map +1 -1
  386. package/lib/module/screens/full-submit/update-info.js +1 -1
  387. package/lib/module/screens/full-submit/update-info.js.map +1 -1
  388. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  389. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  390. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  391. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  392. package/lib/module/screens/home/CIMBxTima.js +1 -1
  393. package/lib/module/screens/home/CIMBxTima.js.map +1 -1
  394. package/lib/module/screens/home/index.js +1 -1
  395. package/lib/module/screens/home/index.js.map +1 -1
  396. package/lib/module/screens/intro/index.js +1 -1
  397. package/lib/module/screens/intro/index.js.map +1 -1
  398. package/lib/module/screens/introduction/index.js +1 -1
  399. package/lib/module/screens/introduction/index.js.map +1 -1
  400. package/lib/module/screens/liveness/LivenessStore.js +1 -1
  401. package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
  402. package/lib/module/screens/liveness/index.js +1 -1
  403. package/lib/module/screens/liveness/index.js.map +1 -1
  404. package/lib/module/screens/liveness-v2/index.js +1 -1
  405. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  406. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  407. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  408. package/lib/module/screens/loan/UpdateLoan.js +1 -1
  409. package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
  410. package/lib/module/screens/loginWithPassword/index.js +1 -1
  411. package/lib/module/screens/loginWithPassword/index.js.map +1 -1
  412. package/lib/module/screens/main/index.js +1 -1
  413. package/lib/module/screens/main/index.js.map +1 -1
  414. package/lib/module/screens/mrz-scanner/index.js +1 -1
  415. package/lib/module/screens/mrz-scanner/index.js.map +1 -1
  416. package/lib/module/screens/nationalID/index.js +1 -1
  417. package/lib/module/screens/nationalID/index.js.map +1 -1
  418. package/lib/module/screens/nationalIDBack/index.js +1 -1
  419. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  420. package/lib/module/screens/notification/index.js +1 -1
  421. package/lib/module/screens/notification/index.js.map +1 -1
  422. package/lib/module/screens/otp/index.js +1 -1
  423. package/lib/module/screens/otp/index.js.map +1 -1
  424. package/lib/module/screens/payment-evidence/Guideline.js +1 -1
  425. package/lib/module/screens/payment-evidence/Guideline.js.map +1 -1
  426. package/lib/module/screens/payment-evidence/ModalGuideline.js +1 -1
  427. package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -1
  428. package/lib/module/screens/payment-evidence/index.js +1 -1
  429. package/lib/module/screens/payment-evidence/index.js.map +1 -1
  430. package/lib/module/screens/personal/index.js +1 -1
  431. package/lib/module/screens/personal/index.js.map +1 -1
  432. package/lib/module/screens/qualify/index.js +1 -1
  433. package/lib/module/screens/qualify/index.js.map +1 -1
  434. package/lib/module/screens/quick-submit/index.js +1 -1
  435. package/lib/module/screens/quick-submit/index.js.map +1 -1
  436. package/lib/module/screens/register/index.js +1 -1
  437. package/lib/module/screens/register/index.js.map +1 -1
  438. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  439. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  440. package/lib/module/screens/schedule-payment/index.js +1 -1
  441. package/lib/module/screens/schedule-payment/index.js.map +1 -1
  442. package/lib/module/screens/schedule-payment/payment-list.js +1 -1
  443. package/lib/module/screens/schedule-payment/payment-list.js.map +1 -1
  444. package/lib/module/screens/selfie/index.js +1 -1
  445. package/lib/module/screens/selfie/index.js.map +1 -1
  446. package/lib/module/screens/setPassword/confirmPassword.js +1 -1
  447. package/lib/module/screens/setPassword/confirmPassword.js.map +1 -1
  448. package/lib/module/screens/setPassword/index.js +1 -1
  449. package/lib/module/screens/setPassword/index.js.map +1 -1
  450. package/lib/module/screens/sign-tima/ConfirmContract.js +1 -1
  451. package/lib/module/screens/sign-tima/ConfirmContract.js.map +1 -1
  452. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  453. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  454. package/lib/module/screens/splash/index.js +1 -1
  455. package/lib/module/screens/splash/index.js.map +1 -1
  456. package/lib/module/screens/terms/QuickTerm.js +1 -1
  457. package/lib/module/screens/terms/QuickTerm.js.map +1 -1
  458. package/lib/module/screens/terms/TermScreen.js +1 -1
  459. package/lib/module/screens/terms/TermScreen.js.map +1 -1
  460. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +2 -0
  461. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -0
  462. package/lib/module/screens/toan-trinh-so/OCR.js +2 -0
  463. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -0
  464. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +2 -0
  465. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
  466. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +2 -0
  467. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
  468. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
  469. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
  470. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +2 -0
  471. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
  472. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
  473. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
  474. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
  475. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
  476. package/lib/module/screens/toan-trinh-so/TTSOTP.js +2 -0
  477. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -0
  478. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +2 -0
  479. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
  480. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +2 -0
  481. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -0
  482. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +2 -0
  483. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
  484. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +2 -0
  485. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
  486. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
  487. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
  488. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
  489. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
  490. package/lib/module/screens/toan-trinh-so/store.js +2 -0
  491. package/lib/module/screens/toan-trinh-so/store.js.map +1 -0
  492. package/lib/module/screens/uploadVideo/index.js +1 -1
  493. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  494. package/lib/module/services/api/api-config.js +1 -1
  495. package/lib/module/services/api/api-config.js.map +1 -1
  496. package/lib/module/services/api/api.js +1 -1
  497. package/lib/module/services/api/api.js.map +1 -1
  498. package/lib/module/utils/index.js +1 -1
  499. package/lib/module/utils/index.js.map +1 -1
  500. package/lib/module/utils/storage/storage.js +1 -1
  501. package/lib/module/utils/storage/storage.js.map +1 -1
  502. package/lib/typescript/assets/icons/index.d.ts +5 -1
  503. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  504. package/lib/typescript/assets/svgs/index.d.ts +12 -0
  505. package/lib/typescript/assets/svgs/index.d.ts.map +1 -0
  506. package/lib/typescript/components/MSelect.d.ts +2 -0
  507. package/lib/typescript/components/MSelect.d.ts.map +1 -0
  508. package/lib/typescript/components/StepIndicator.d.ts +5 -0
  509. package/lib/typescript/components/StepIndicator.d.ts.map +1 -0
  510. package/lib/typescript/components/select/index.d.ts.map +1 -1
  511. package/lib/typescript/index.d.ts.map +1 -1
  512. package/lib/typescript/navigation/primary-navigator.d.ts +16 -0
  513. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  514. package/lib/typescript/screens/eSign/Store.d.ts +1 -1
  515. package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
  516. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  517. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  518. package/lib/typescript/screens/liveness/LivenessStore.d.ts +1 -0
  519. package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
  520. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  521. package/lib/typescript/screens/register/index.d.ts.map +1 -1
  522. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts +2 -0
  523. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -0
  524. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts +2 -0
  525. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -0
  526. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts +2 -0
  527. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -0
  528. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts +2 -0
  529. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -0
  530. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts +2 -0
  531. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -0
  532. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts +2 -0
  533. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -0
  534. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts +2 -0
  535. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -0
  536. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts +2 -0
  537. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -0
  538. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +2 -0
  539. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -0
  540. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts +2 -0
  541. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -0
  542. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts +2 -0
  543. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -0
  544. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts +2 -0
  545. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -0
  546. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts +2 -0
  547. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -0
  548. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts +2 -0
  549. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -0
  550. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts +2 -0
  551. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -0
  552. package/lib/typescript/screens/toan-trinh-so/store.d.ts +26 -0
  553. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -0
  554. package/lib/typescript/services/api/api.d.ts +224 -0
  555. package/lib/typescript/services/api/api.d.ts.map +1 -1
  556. package/lib/typescript/utils/index.d.ts +8 -0
  557. package/lib/typescript/utils/index.d.ts.map +1 -1
  558. package/lib/typescript/utils/storage/storage.d.ts +3 -0
  559. package/lib/typescript/utils/storage/storage.d.ts.map +1 -1
  560. package/package.json +1 -1
  561. package/src/assets/icons/cam2.svg +5 -0
  562. package/src/assets/icons/chip.svg +20 -0
  563. package/src/assets/icons/index.tsx +8 -0
  564. package/src/assets/icons/ocr.svg +11 -0
  565. package/src/assets/icons/takePhoto.svg +20 -0
  566. package/src/assets/icons/tima_small.svg +12 -23
  567. package/src/assets/svgs/back.svg +4 -0
  568. package/src/assets/svgs/complete.svg +27 -0
  569. package/src/assets/svgs/currentStep.svg +28 -0
  570. package/src/assets/svgs/edit.svg +42 -0
  571. package/src/assets/svgs/edit_success.svg +15 -0
  572. package/src/assets/svgs/ekyc.svg +18 -0
  573. package/src/assets/svgs/ekyc_success.svg +6 -0
  574. package/src/assets/svgs/index.tsx +23 -0
  575. package/src/assets/svgs/nextStep.svg +21 -0
  576. package/src/assets/svgs/notify.svg +18 -0
  577. package/src/assets/svgs/orc_success.svg +11 -0
  578. package/src/assets/tts/1000009864.png +0 -0
  579. package/src/assets/tts/1000009872.png +0 -0
  580. package/src/assets/tts/1000011964.png +0 -0
  581. package/src/assets/tts/Banner.png +0 -0
  582. package/src/assets/tts/Frame 1000011947.png +0 -0
  583. package/src/assets/tts/Frame1000011946.png +0 -0
  584. package/src/assets/tts/Frame1000011953.png +0 -0
  585. package/src/assets/tts/back.png +0 -0
  586. package/src/assets/tts/front.png +0 -0
  587. package/src/assets/tts/otp.png +0 -0
  588. package/src/assets/tts/vehicleRegistration.png +0 -0
  589. package/src/assets/tts/vehicleStep.png +0 -0
  590. package/src/components/MHeader.tsx +1 -1
  591. package/src/components/MSelect.tsx +78 -0
  592. package/src/components/StepIndicator.tsx +85 -0
  593. package/src/components/select/index.tsx +19 -3
  594. package/src/index.tsx +3 -1
  595. package/src/navigation/primary-navigator.tsx +81 -1
  596. package/src/screens/camera/index.tsx +1 -1
  597. package/src/screens/eSign/Store.tsx +9 -2
  598. package/src/screens/eSign/index.tsx +4 -1
  599. package/src/screens/full-submit/index.tsx +7 -7
  600. package/src/screens/full-submit/update-document.tsx +1 -1
  601. package/src/screens/full-submit/update-info.tsx +1 -1
  602. package/src/screens/home/index.tsx +1809 -1400
  603. package/src/screens/liveness/LivenessStore.tsx +87 -1
  604. package/src/screens/liveness-v2/index.tsx +36 -23
  605. package/src/screens/mrz-scanner/index.tsx +2 -2
  606. package/src/screens/register/index.tsx +3 -1
  607. package/src/screens/toan-trinh-so/LoanInterestRate.tsx +373 -0
  608. package/src/screens/toan-trinh-so/OCR.tsx +831 -0
  609. package/src/screens/toan-trinh-so/RegisterCamera.tsx +467 -0
  610. package/src/screens/toan-trinh-so/ReviewInformation.tsx +1007 -0
  611. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +791 -0
  612. package/src/screens/toan-trinh-so/ReviewLoan.tsx +1200 -0
  613. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +242 -0
  614. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +247 -0
  615. package/src/screens/toan-trinh-so/TTSOTP.tsx +356 -0
  616. package/src/screens/toan-trinh-so/TTSSelfie.tsx +267 -0
  617. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +143 -0
  618. package/src/screens/toan-trinh-so/VehicleCamera.tsx +477 -0
  619. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +197 -0
  620. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +239 -0
  621. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +240 -0
  622. package/src/screens/toan-trinh-so/store.ts +237 -0
  623. package/src/services/api/api-config.ts +2 -2
  624. package/src/services/api/api.ts +235 -0
  625. package/src/utils/index.tsx +67 -45
  626. package/src/utils/storage/storage.ts +4 -0
@@ -0,0 +1,237 @@
1
+ //@ts-nocheck
2
+ import { observable, action, toJS, makeAutoObservable } from 'mobx';
3
+ import { Api } from '../../services/api';
4
+
5
+ class Store {
6
+ listProvince = []
7
+ listDistrict = []
8
+ listWard = []
9
+
10
+ listDistrict2 = []
11
+ listWard2 = []
12
+ listBank = []
13
+ listCar = []
14
+ listYear = []
15
+ listBrand = []
16
+
17
+ listRelationship = []
18
+
19
+ constructor() {
20
+ makeAutoObservable(this);
21
+ }
22
+ async getProvinces() {
23
+ try {
24
+ const response = await Api.getInstance().getProvinces({});
25
+ if (response.kind === 'ok') {
26
+ if (response.data.meta.errorCode === 200) {
27
+ this.listProvince = response.data.data.map((item: any) => {
28
+ return { id: item.provinceId, name: item.name };
29
+ });
30
+ } else {
31
+ Alert.alert('Thông báo', response.data.meta.errorMessage);
32
+ }
33
+ } else {
34
+ Alert.alert('Thông báo', 'Không lấy được danh sách thành phố.');
35
+ }
36
+ } catch (error) {
37
+ console.log(error);
38
+ }
39
+ }
40
+
41
+ async getDistrict(id, onSuccess?) {
42
+ try {
43
+ const response = await Api.getInstance().getDistricts(id);
44
+ if (response.kind === 'ok') {
45
+ if (response.data.meta.errorCode === 200) {
46
+ if (onSuccess) {
47
+ onSuccess(
48
+ response.data.data.map((item: any) => {
49
+ return { id: item.districtId, name: item.name };
50
+ })
51
+ );
52
+ } else {
53
+ this.listDistrict = response.data.data.map((item: any) => {
54
+ return { id: item.districtId, name: item.name };
55
+ });
56
+ }
57
+ } else {
58
+ Alert.alert('Thông báo', response.data.meta.errorMessage);
59
+ }
60
+ } else {
61
+ Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
62
+ }
63
+ } catch (error) {
64
+ console.log(error);
65
+ }
66
+ }
67
+
68
+
69
+ async getWard(id, onSuccess?) {
70
+ try {
71
+ const response = await Api.getInstance().getWards(id);
72
+ if (response.kind === 'ok') {
73
+ if (response.data.meta.errorCode === 200) {
74
+ if (onSuccess) {
75
+ onSuccess(
76
+ response.data.data.map((item: any) => {
77
+ return { id: item.wardId, name: item.name };
78
+ })
79
+ );
80
+ } else {
81
+ this.listWard = response.data.data.map((item: any) => {
82
+ return { id: item.wardId, name: item.name };
83
+ });
84
+ }
85
+ } else {
86
+ Alert.alert('Thông báo', response.data.meta.errorMessage);
87
+ }
88
+ } else {
89
+ Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
90
+ }
91
+ } catch (error) {
92
+ console.log(error);
93
+ }
94
+ }
95
+
96
+ async getDistrict2(id, onSuccess?) {
97
+ try {
98
+ const response = await Api.getInstance().getDistricts(id);
99
+ if (response.kind === 'ok') {
100
+ if (response.data.meta.errorCode === 200) {
101
+ if (onSuccess) {
102
+ onSuccess(
103
+ response.data.data.map((item: any) => {
104
+ return { id: item.districtId, name: item.name };
105
+ })
106
+ );
107
+ } else {
108
+ this.listDistrict2 = response.data.data.map((item: any) => {
109
+ return { id: item.districtId, name: item.name };
110
+ });
111
+ }
112
+ } else {
113
+ Alert.alert('Thông báo', response.data.meta.errorMessage);
114
+ }
115
+ } else {
116
+ Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
117
+ }
118
+ } catch (error) {
119
+ console.log(error);
120
+ }
121
+ }
122
+
123
+
124
+ async getWard2(id, onSuccess?) {
125
+ try {
126
+ const response = await Api.getInstance().getWards(id);
127
+ if (response.kind === 'ok') {
128
+ if (response.data.meta.errorCode === 200) {
129
+ if (onSuccess) {
130
+ onSuccess(
131
+ response.data.data.map((item: any) => {
132
+ return { id: item.wardId, name: item.name };
133
+ })
134
+ );
135
+ } else {
136
+ this.listWard2 = response.data.data.map((item: any) => {
137
+ return { id: item.wardId, name: item.name };
138
+ });
139
+ }
140
+ } else {
141
+ Alert.alert('Thông báo', response.data.meta.errorMessage);
142
+ }
143
+ } else {
144
+ Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
145
+ }
146
+ } catch (error) {
147
+ console.log(error);
148
+ }
149
+ }
150
+
151
+ async getListBank() {
152
+ try {
153
+ const response = await Api.getInstance().getBanks();
154
+ if (response.kind === 'ok') {
155
+ if (response.data.meta.errorCode === 200) {
156
+ this.listBank = response.data.data.map((item: any) => {
157
+ return { id: item.bankId, name: `${item?.bankCode} - ${item?.name}` };
158
+ });
159
+ } else {
160
+ }
161
+ } else {
162
+ }
163
+ } catch (error) {
164
+ console.log(error);
165
+ }
166
+ }
167
+
168
+ async getListBrand() {
169
+ try {
170
+ const response = await Api.getInstance().getBrandCar();
171
+ if (response.kind === 'ok') {
172
+ if (response.data.meta.errorCode === 200) {
173
+ this.listBrand = response.data.data.map((item: any) => {
174
+ return { id: item, name: item };
175
+ });
176
+ } else {
177
+ }
178
+ } else {
179
+ }
180
+ } catch (error) {
181
+ console.log(error);
182
+ }
183
+ }
184
+
185
+ async getListYearCar(name) {
186
+ try {
187
+ const response = await Api.getInstance().getYearCar(name);
188
+ if (response.kind === 'ok') {
189
+ if (response.data.meta.errorCode === 200) {
190
+ this.listYear = response.data.data.map((item: any) => {
191
+ return { id: item, name: item };
192
+ });
193
+ } else {
194
+ }
195
+ } else {
196
+ }
197
+ } catch (error) {
198
+ console.log(error);
199
+ }
200
+ }
201
+
202
+ async getListCar(name, year) {
203
+ try {
204
+ const response = await Api.getInstance().getNameCar(name, year);
205
+ if (response.kind === 'ok') {
206
+ if (response.data.meta.errorCode === 200) {
207
+ this.listCar = response.data.data.map((item: any) => {
208
+ return { id: item, name: item };
209
+ });
210
+ } else {
211
+ }
212
+ } else {
213
+ }
214
+ } catch (error) {
215
+ console.log(error);
216
+ }
217
+ }
218
+
219
+ async getRelationship() {
220
+ try {
221
+ const response = await Api.getInstance().getRelationship();
222
+ if (response.kind === 'ok') {
223
+ if (response.data.meta.errorCode === 200) {
224
+ this.listRelationship = response.data.data
225
+ } else {
226
+ }
227
+ } else {
228
+ }
229
+ } catch (error) {
230
+ console.log(error);
231
+ }
232
+ }
233
+
234
+ }
235
+
236
+ const ttsStore = new Store();
237
+ export default ttsStore;
@@ -1,5 +1,5 @@
1
- const API_URL = 'https://apiapplos.tima.vn/'
2
- // const API_URL = 'https://apidevlos.tima.vn/'
1
+ // const API_URL = 'https://apiapplos.tima.vn/'
2
+ const API_URL = 'https://apidevlos.tima.vn/'
3
3
  export interface ApiConfig {
4
4
  url: string
5
5
  timeout: number
@@ -2392,6 +2392,23 @@ export class Api {
2392
2392
  }
2393
2393
  }
2394
2394
 
2395
+ async verifyLiveness2(body: any) {
2396
+ // make the api call
2397
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/liveness`, body)
2398
+ myLog(response)
2399
+ // the typical ways to die when calling an api
2400
+ if (!response.ok) {
2401
+ const problem = getGeneralApiProblem(response)
2402
+ if (problem) return problem
2403
+ }
2404
+ // transform the data into the format we are expecting
2405
+ try {
2406
+ return { kind: "ok", data: response.data }
2407
+ } catch {
2408
+ return { kind: "bad-data" }
2409
+ }
2410
+ }
2411
+
2395
2412
  async saveImages(body: any) {
2396
2413
  // make the api call
2397
2414
  const response: ApiResponse<any> = await this.apisauce.post(`api/v1.0/timacare/save_image_liveness`, body)
@@ -2627,4 +2644,222 @@ export class Api {
2627
2644
  return { kind: "bad-data" }
2628
2645
  }
2629
2646
  }
2647
+
2648
+
2649
+ // toàn trình số
2650
+ //api update chứng từ để ocr
2651
+ async uploadImageOcr(data) {
2652
+ // make the api call
2653
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/upload_image`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
2654
+ // the typical ways to die when calling an api
2655
+ if (!response.ok) {
2656
+ const problem = getGeneralApiProblem(response)
2657
+ if (problem) return problem
2658
+ }
2659
+ // transform the data into the format we are expecting
2660
+ try {
2661
+ return { kind: "ok", data: response.data }
2662
+ } catch {
2663
+ return { kind: "bad-data" }
2664
+ }
2665
+ }
2666
+
2667
+ // api lưu thông tin nfc
2668
+ async saveNfcInfo(data) {
2669
+ // make the api call
2670
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/save_info_nfc`, data)
2671
+ // the typical ways to die when calling an api
2672
+ if (!response.ok) {
2673
+ const problem = getGeneralApiProblem(response)
2674
+ if (problem) return problem
2675
+ }
2676
+ // transform the data into the format we are expecting
2677
+ try {
2678
+ return { kind: "ok", data: response.data }
2679
+ } catch {
2680
+ return { kind: "bad-data" }
2681
+ }
2682
+ }
2683
+
2684
+ // Lấy thông tin khách hàng (luồng mới)
2685
+ async getInfoCustomer(id) {
2686
+ // make the api call
2687
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_customer?loanBriefId=${id}`)
2688
+ // the typical ways to die when calling an api
2689
+ if (!response.ok) {
2690
+ const problem = getGeneralApiProblem(response)
2691
+ if (problem) return problem
2692
+ }
2693
+ // transform the data into the format we are expecting
2694
+ try {
2695
+ return { kind: "ok", data: response.data }
2696
+ } catch {
2697
+ return { kind: "bad-data" }
2698
+ }
2699
+ }
2700
+
2701
+ // API cập nhập thông tin khách hàng (luồng mới)
2702
+
2703
+ async updateInfoCustomer(body) {
2704
+ // make the api call
2705
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_customer`, body)
2706
+ // the typical ways to die when calling an api
2707
+ if (!response.ok) {
2708
+ const problem = getGeneralApiProblem(response)
2709
+ if (problem) return problem
2710
+ }
2711
+ // transform the data into the format we are expecting
2712
+ try {
2713
+ return { kind: "ok", data: response.data }
2714
+ } catch {
2715
+ return { kind: "bad-data" }
2716
+ }
2717
+ }
2718
+
2719
+ // Lấy thông tin khoản vay (luồng mới)
2720
+ async getInfoLoan(id) {
2721
+ // make the api call
2722
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_borrow?loanBriefId=${id}`)
2723
+ // the typical ways to die when calling an api
2724
+ if (!response.ok) {
2725
+ const problem = getGeneralApiProblem(response)
2726
+ if (problem) return problem
2727
+ }
2728
+ // transform the data into the format we are expecting
2729
+ try {
2730
+ return { kind: "ok", data: response.data }
2731
+ } catch {
2732
+ return { kind: "bad-data" }
2733
+ }
2734
+ }
2735
+
2736
+ async getInfoInsurence2(id, loanAmount, loanTime, rateTypeId, timeInsurenceCustomer, timeInsuranceProperty) {
2737
+ // make the api call
2738
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/reget_info_insurence?id=${id}&loanAmount=${loanAmount}&loanTime=${loanTime}&rateTypeId=${rateTypeId}&timeInsurenceCustomer=${timeInsurenceCustomer}&timeInsuranceProperty=${timeInsuranceProperty}`)
2739
+ myLog(response)
2740
+ // the typical ways to die when calling an api
2741
+ if (!response.ok) {
2742
+ const problem = getGeneralApiProblem(response)
2743
+ if (problem) return problem
2744
+ }
2745
+ // transform the data into the format we are expecting
2746
+ try {
2747
+ return { kind: "ok", data: response.data }
2748
+ } catch {
2749
+ return { kind: "bad-data" }
2750
+ }
2751
+ }
2752
+
2753
+ async getBrandCar() {
2754
+ // make the api call
2755
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/dictionary/get_brand_car`)
2756
+ // the typical ways to die when calling an api
2757
+ if (!response.ok) {
2758
+ const problem = getGeneralApiProblem(response)
2759
+ if (problem) return problem
2760
+ }
2761
+ // transform the data into the format we are expecting
2762
+ try {
2763
+ return { kind: "ok", data: response.data }
2764
+ } catch {
2765
+ return { kind: "bad-data" }
2766
+ }
2767
+ }
2768
+
2769
+ async getYearCar(name) {
2770
+ // make the api call
2771
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/dictionary/get_year_car?brand=${name}`)
2772
+ // the typical ways to die when calling an api
2773
+ if (!response.ok) {
2774
+ const problem = getGeneralApiProblem(response)
2775
+ if (problem) return problem
2776
+ }
2777
+ // transform the data into the format we are expecting
2778
+ try {
2779
+ return { kind: "ok", data: response.data }
2780
+ } catch {
2781
+ return { kind: "bad-data" }
2782
+ }
2783
+ }
2784
+
2785
+ async getNameCar(name, year) {
2786
+ // make the api call
2787
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/dictionary/get_vehicles_car?brand=${name}&year=${year}`)
2788
+ // the typical ways to die when calling an api
2789
+ if (!response.ok) {
2790
+ const problem = getGeneralApiProblem(response)
2791
+ if (problem) return problem
2792
+ }
2793
+ // transform the data into the format we are expecting
2794
+ try {
2795
+ return { kind: "ok", data: response.data }
2796
+ } catch {
2797
+ return { kind: "bad-data" }
2798
+ }
2799
+ }
2800
+
2801
+ async updateInfoLoan(body) {
2802
+ // make the api call
2803
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_borrow`, body)
2804
+ // the typical ways to die when calling an api
2805
+ if (!response.ok) {
2806
+ const problem = getGeneralApiProblem(response)
2807
+ if (problem) return problem
2808
+ }
2809
+ // transform the data into the format we are expecting
2810
+ try {
2811
+ return { kind: "ok", data: response.data }
2812
+ } catch {
2813
+ return { kind: "bad-data" }
2814
+ }
2815
+ }
2816
+
2817
+ // Lấy thông tin công việc (luồng mới)
2818
+ async getInfoJob(id) {
2819
+ // make the api call
2820
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_job?loanBriefId=${id}`)
2821
+ // the typical ways to die when calling an api
2822
+ if (!response.ok) {
2823
+ const problem = getGeneralApiProblem(response)
2824
+ if (problem) return problem
2825
+ }
2826
+ // transform the data into the format we are expecting
2827
+ try {
2828
+ return { kind: "ok", data: response.data }
2829
+ } catch {
2830
+ return { kind: "bad-data" }
2831
+ }
2832
+ }
2833
+
2834
+ async updateInfoJob(body) {
2835
+ // make the api call
2836
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_job`, body)
2837
+ // the typical ways to die when calling an api
2838
+ if (!response.ok) {
2839
+ const problem = getGeneralApiProblem(response)
2840
+ if (problem) return problem
2841
+ }
2842
+ // transform the data into the format we are expecting
2843
+ try {
2844
+ return { kind: "ok", data: response.data }
2845
+ } catch {
2846
+ return { kind: "bad-data" }
2847
+ }
2848
+ }
2849
+
2850
+ async getRelationship() {
2851
+ // make the api call
2852
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_relative_family`)
2853
+ // the typical ways to die when calling an api
2854
+ if (!response.ok) {
2855
+ const problem = getGeneralApiProblem(response)
2856
+ if (problem) return problem
2857
+ }
2858
+ // transform the data into the format we are expecting
2859
+ try {
2860
+ return { kind: "ok", data: response.data }
2861
+ } catch {
2862
+ return { kind: "bad-data" }
2863
+ }
2864
+ }
2630
2865
  }
@@ -1,97 +1,119 @@
1
1
  //@ts-nocheck
2
- import moment from "moment"
2
+ import moment from 'moment';
3
3
 
4
4
  export const formatMoney = (x) => {
5
5
  try {
6
6
  // if (x) {
7
7
  x = x
8
8
  .toString()
9
- .replace(/,/g, "")
9
+ .replace(/,/g, '')
10
10
  .match(/^[-+]?[0-9]*?[0-9]+$/g)
11
- .join("")
11
+ .join('');
12
12
  // x = Number(x);
13
13
  // x = Number.isNaN(x) ? 0 : x;
14
- return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
14
+ return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
15
15
  // } else {
16
16
  // return '0';
17
17
  // }
18
18
  } catch (e) {
19
- return ""
19
+ return '';
20
20
  }
21
- }
21
+ };
22
22
 
23
23
  export const getMoney = (x) => {
24
24
  try {
25
- x = x.toString().replace(/,|\./g, "")
26
- return Number(x)
25
+ x = x.toString().replace(/,|\./g, '');
26
+ return Number(x);
27
27
  } catch (e) {
28
- return 0
28
+ return 0;
29
29
  }
30
- }
30
+ };
31
31
 
32
32
  export const removeAccent = (str) => {
33
- str = str?.toLowerCase()
34
- str = str.replace(/A|Á|À|Ã|Ạ|Â|Ấ|Ầ|Ẫ|Ậ|Ă|Ắ|Ằ|Ẵ|Ặ/g, "A")
35
- str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, "a")
36
- str = str.replace(/E|É|È|Ẽ|Ẹ|Ê|Ế|Ề|Ễ|Ệ/, "E")
37
- str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, "e")
38
- str = str.replace(/I|Í|Ì|Ĩ|Ị/g, "I")
39
- str = str.replace(/ì|í|ị|ỉ|ĩ/g, "i")
40
- str = str.replace(/O|Ó|Ò|Õ|Ọ|Ô|Ố|Ồ|Ỗ|Ộ|Ơ|Ớ|Ờ|Ỡ|Ợ/g, "O")
41
- str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, "o")
42
- str = str.replace(/U|Ú|Ù|Ũ|Ụ|Ư|Ứ|Ừ|Ữ|Ự/g, "U")
43
- str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g, "u")
44
- str = str.replace(/Y|Ý|Ỳ|Ỹ|Ỵ/g, "Y")
45
- str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g, "y")
46
- str = str.replace(/Đ/g, "D")
47
- str = str.replace(/đ/g, "d")
33
+ str = str?.toLowerCase();
34
+ str = str.replace(/A|Á|À|Ã|Ạ|Â|Ấ|Ầ|Ẫ|Ậ|Ă|Ắ|Ằ|Ẵ|Ặ/g, 'A');
35
+ str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, 'a');
36
+ str = str.replace(/E|É|È|Ẽ|Ẹ|Ê|Ế|Ề|Ễ|Ệ/, 'E');
37
+ str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, 'e');
38
+ str = str.replace(/I|Í|Ì|Ĩ|Ị/g, 'I');
39
+ str = str.replace(/ì|í|ị|ỉ|ĩ/g, 'i');
40
+ str = str.replace(/O|Ó|Ò|Õ|Ọ|Ô|Ố|Ồ|Ỗ|Ộ|Ơ|Ớ|Ờ|Ỡ|Ợ/g, 'O');
41
+ str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, 'o');
42
+ str = str.replace(/U|Ú|Ù|Ũ|Ụ|Ư|Ứ|Ừ|Ữ|Ự/g, 'U');
43
+ str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g, 'u');
44
+ str = str.replace(/Y|Ý|Ỳ|Ỹ|Ỵ/g, 'Y');
45
+ str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g, 'y');
46
+ str = str.replace(/Đ/g, 'D');
47
+ str = str.replace(/đ/g, 'd');
48
48
  // Some system encode vietnamese combining accent as individual utf-8 characters
49
- str = str.replace(/\u0300|\u0301|\u0303|\u0309|\u0323/g, "") // Huyền sắc hỏi ngã nặng
50
- str = str.replace(/\u02C6|\u0306|\u031B/g, "") // Â, Ê, Ă, Ơ, Ư
51
- return str
52
- }
49
+ str = str.replace(/\u0300|\u0301|\u0303|\u0309|\u0323/g, ''); // Huyền sắc hỏi ngã nặng
50
+ str = str.replace(/\u02C6|\u0306|\u031B/g, ''); // Â, Ê, Ă, Ơ, Ư
51
+ return str;
52
+ };
53
53
 
54
54
  export const formatDDMMYYY = (date) => {
55
55
  if (date) {
56
- return moment(date).format("DD/MM/YYYY")
56
+ return moment(date).format('DD/MM/YYYY');
57
57
  }
58
- return null
59
- }
58
+ return null;
59
+ };
60
60
 
61
61
  export const EnumGender = [
62
62
  {
63
63
  id: 0,
64
- name: "Nam",
64
+ name: 'Nam',
65
65
  },
66
66
  {
67
67
  id: 1,
68
- name: "Nữ",
68
+ name: 'Nữ',
69
69
  },
70
- ]
70
+ ];
71
71
 
72
72
  export const EnumMaritalStatus = [
73
73
  {
74
74
  id: 0,
75
- name: "Chưa kết hôn",
75
+ name: 'Chưa kết hôn',
76
76
  },
77
77
  {
78
78
  id: 1,
79
- name: "Đã kết hôn",
79
+ name: 'Đã kết hôn',
80
80
  },
81
- ]
81
+ ];
82
82
 
83
83
  export const EnumPurpose = [
84
84
  {
85
85
  id: 3008,
86
- name: "Mua sắm trang thiết bị, vật dụng gia đình",
86
+ name: 'Mua sắm trang thiết bị, vật dụng gia đình',
87
87
  },
88
- ]
88
+ ];
89
89
 
90
90
  export const diffDays = (fromDate, toDate) => {
91
- const oneDay = 24 * 60 * 60 * 1000 // hours*minutes*seconds*milliseconds
92
- const firstDate = new Date(fromDate)
93
- const secondDate = new Date(toDate)
91
+ const oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds
92
+ const firstDate = new Date(fromDate);
93
+ const secondDate = new Date(toDate);
94
94
 
95
95
  //@ts-ignore
96
- return Math.round(Math.abs((firstDate - secondDate) / oneDay))
97
- }
96
+ return Math.round(Math.abs((firstDate - secondDate) / oneDay));
97
+ };
98
+
99
+ export const EnumTypeCar = [
100
+ {
101
+ id: 1,
102
+ name: 'Xe con/xe bán tải',
103
+ },
104
+ {
105
+ id: 2,
106
+ name: 'Xe tải/ xe khách',
107
+ },
108
+ ];
109
+
110
+ export const EnumTypeAsset = [
111
+ {
112
+ id: 1,
113
+ name: 'Cá nhân',
114
+ },
115
+ {
116
+ id: 2,
117
+ name: 'Doanh nghiệp',
118
+ },
119
+ ];
@@ -8,6 +8,10 @@ export const REGISTER_MOTOR = 'REGISTER_MOTOR'
8
8
  export const INTRO = 'INTRO'
9
9
  export const PHONE = 'PHONE'
10
10
 
11
+ export const OCR_V1 = "OCR_V1"
12
+ export const OCR_V2 = "OCR_V2"
13
+ export const OCR_V3 = "OCR_V3"
14
+
11
15
  /**
12
16
  * Loads a string from storage.
13
17
  *