react-native-timacare 3.1.12-beta → 3.1.14-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 (136) hide show
  1. package/lib/commonjs/assets/svgs/ekyc_disable.svg +4 -0
  2. package/lib/commonjs/assets/svgs/expand.svg +8 -0
  3. package/lib/commonjs/assets/svgs/expand_up.svg +8 -0
  4. package/lib/commonjs/assets/svgs/index.js +1 -1
  5. package/lib/commonjs/assets/svgs/index.js.flow +14 -0
  6. package/lib/commonjs/assets/svgs/index.js.map +1 -1
  7. package/lib/commonjs/assets/svgs/money.svg +5 -0
  8. package/lib/commonjs/assets/svgs/sign_disable.svg +12 -0
  9. package/lib/commonjs/assets/svgs/sign_success.svg +12 -0
  10. package/lib/commonjs/assets/svgs/tima_16.svg +13 -0
  11. package/lib/commonjs/screens/home/index.js +1 -1
  12. package/lib/commonjs/screens/home/index.js.flow +2051 -1628
  13. package/lib/commonjs/screens/home/index.js.map +1 -1
  14. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  15. package/lib/commonjs/screens/liveness-v2/index.js.flow +10 -6
  16. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  17. package/lib/commonjs/screens/register/index.js +1 -1
  18. package/lib/commonjs/screens/register/index.js.flow +1 -1
  19. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  20. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +123 -36
  21. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  22. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  23. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +3 -1
  24. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  25. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
  26. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +3 -1
  27. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  28. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  29. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +539 -483
  30. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  31. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  32. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +76 -57
  33. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  34. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  35. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +58 -12
  36. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  37. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
  38. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +6 -7
  39. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  40. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  41. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +185 -50
  42. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  43. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  44. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +4 -1
  45. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  46. package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
  47. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +23 -1
  48. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
  49. package/lib/commonjs/services/api/api.js +1 -1
  50. package/lib/commonjs/services/api/api.js.flow +46 -0
  51. package/lib/commonjs/services/api/api.js.map +1 -1
  52. package/lib/commonjs/utils/index.js +1 -1
  53. package/lib/commonjs/utils/index.js.flow +51 -0
  54. package/lib/commonjs/utils/index.js.map +1 -1
  55. package/lib/module/assets/svgs/ekyc_disable.svg +4 -0
  56. package/lib/module/assets/svgs/expand.svg +8 -0
  57. package/lib/module/assets/svgs/expand_up.svg +8 -0
  58. package/lib/module/assets/svgs/index.js +1 -1
  59. package/lib/module/assets/svgs/index.js.map +1 -1
  60. package/lib/module/assets/svgs/money.svg +5 -0
  61. package/lib/module/assets/svgs/sign_disable.svg +12 -0
  62. package/lib/module/assets/svgs/sign_success.svg +12 -0
  63. package/lib/module/assets/svgs/tima_16.svg +13 -0
  64. package/lib/module/screens/home/index.js +1 -1
  65. package/lib/module/screens/home/index.js.map +1 -1
  66. package/lib/module/screens/liveness-v2/index.js +1 -1
  67. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  68. package/lib/module/screens/register/index.js +1 -1
  69. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  70. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  71. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  72. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  73. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
  74. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  75. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  76. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  77. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  78. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  79. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  80. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  81. package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
  82. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  83. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  84. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  85. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  86. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  87. package/lib/module/screens/toan-trinh-so/store.js +1 -1
  88. package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
  89. package/lib/module/services/api/api.js +1 -1
  90. package/lib/module/services/api/api.js.map +1 -1
  91. package/lib/module/utils/index.js +1 -1
  92. package/lib/module/utils/index.js.map +1 -1
  93. package/lib/typescript/assets/svgs/index.d.ts +8 -1
  94. package/lib/typescript/assets/svgs/index.d.ts.map +1 -1
  95. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  96. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  97. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
  98. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
  99. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
  100. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  101. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  102. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  103. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +1 -1
  104. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
  105. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  106. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  107. package/lib/typescript/screens/toan-trinh-so/store.d.ts +2 -0
  108. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
  109. package/lib/typescript/services/api/api.d.ts +48 -0
  110. package/lib/typescript/services/api/api.d.ts.map +1 -1
  111. package/lib/typescript/utils/index.d.ts +8 -0
  112. package/lib/typescript/utils/index.d.ts.map +1 -1
  113. package/package.json +1 -1
  114. package/src/assets/svgs/ekyc_disable.svg +4 -0
  115. package/src/assets/svgs/expand.svg +8 -0
  116. package/src/assets/svgs/expand_up.svg +8 -0
  117. package/src/assets/svgs/index.tsx +14 -0
  118. package/src/assets/svgs/money.svg +5 -0
  119. package/src/assets/svgs/sign_disable.svg +12 -0
  120. package/src/assets/svgs/sign_success.svg +12 -0
  121. package/src/assets/svgs/tima_16.svg +13 -0
  122. package/src/screens/home/index.tsx +2051 -1628
  123. package/src/screens/liveness-v2/index.tsx +10 -6
  124. package/src/screens/register/index.tsx +1 -1
  125. package/src/screens/toan-trinh-so/LoanInterestRate.tsx +123 -36
  126. package/src/screens/toan-trinh-so/OCR.tsx +3 -1
  127. package/src/screens/toan-trinh-so/RegisterCamera.tsx +3 -1
  128. package/src/screens/toan-trinh-so/ReviewInformation.tsx +539 -483
  129. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +76 -57
  130. package/src/screens/toan-trinh-so/ReviewLoan.tsx +58 -12
  131. package/src/screens/toan-trinh-so/TTSOTP.tsx +6 -7
  132. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +185 -50
  133. package/src/screens/toan-trinh-so/VehicleCamera.tsx +4 -1
  134. package/src/screens/toan-trinh-so/store.ts +23 -1
  135. package/src/services/api/api.ts +46 -0
  136. package/src/utils/index.tsx +51 -0
@@ -2867,5 +2867,51 @@ export class Api {
2867
2867
  }
2868
2868
  }
2869
2869
 
2870
+ async getPaymentPlan(id) {
2871
+ // make the api call
2872
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/payment_plan_tima?loanBriefId=${id}`)
2873
+ // the typical ways to die when calling an api
2874
+ if (!response.ok) {
2875
+ const problem = getGeneralApiProblem(response)
2876
+ if (problem) return problem
2877
+ }
2878
+ // transform the data into the format we are expecting
2879
+ try {
2880
+ return { kind: "ok", data: response.data }
2881
+ } catch {
2882
+ return { kind: "bad-data" }
2883
+ }
2884
+ }
2885
+
2886
+ async changePipeline(body) {
2887
+ // make the api call
2888
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/change_pipeline`, body)
2889
+ // the typical ways to die when calling an api
2890
+ if (!response.ok) {
2891
+ const problem = getGeneralApiProblem(response)
2892
+ if (problem) return problem
2893
+ }
2894
+ // transform the data into the format we are expecting
2895
+ try {
2896
+ return { kind: "ok", data: response.data }
2897
+ } catch {
2898
+ return { kind: "bad-data" }
2899
+ }
2900
+ }
2870
2901
 
2902
+ async getFirstPaymentTTS(id) {
2903
+ // make the api call
2904
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_first_payment_date?id=${id}`)
2905
+ // the typical ways to die when calling an api
2906
+ if (!response.ok) {
2907
+ const problem = getGeneralApiProblem(response)
2908
+ if (problem) return problem
2909
+ }
2910
+ // transform the data into the format we are expecting
2911
+ try {
2912
+ return { kind: "ok", data: response.data }
2913
+ } catch {
2914
+ return { kind: "bad-data" }
2915
+ }
2916
+ }
2871
2917
  }