react-native-timacare 3.1.65 → 3.1.67

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 (250) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +4 -2
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/assets/v3/home.svg +5 -0
  5. package/lib/commonjs/assets/v3/index.js +2 -0
  6. package/lib/commonjs/assets/v3/index.js.flow +38 -0
  7. package/lib/commonjs/assets/v3/index.js.map +1 -0
  8. package/lib/commonjs/assets/v3/option1.svg +27 -0
  9. package/lib/commonjs/assets/v3/option2.svg +25 -0
  10. package/lib/commonjs/assets/v3/step1-success.svg +39 -0
  11. package/lib/commonjs/assets/v3/step1.svg +90 -0
  12. package/lib/commonjs/assets/v3/step2-disable.svg +14 -0
  13. package/lib/commonjs/assets/v3/step2-success.svg +8 -0
  14. package/lib/commonjs/assets/v3/step2.svg +37 -0
  15. package/lib/commonjs/assets/v3/step3-disable.svg +17 -0
  16. package/lib/commonjs/assets/v3/step3-success.svg +17 -0
  17. package/lib/commonjs/assets/v3/step3.svg +45 -0
  18. package/lib/commonjs/assets/v3/step4-disable.svg +11 -0
  19. package/lib/commonjs/assets/v3/step4-success.svg +11 -0
  20. package/lib/commonjs/assets/v3/step4.svg +29 -0
  21. package/lib/commonjs/assets/v3/step5-disable.svg +17 -0
  22. package/lib/commonjs/assets/v3/step5-success.svg +17 -0
  23. package/lib/commonjs/assets/v3/step5.svg +45 -0
  24. package/lib/commonjs/components/ItemTimaOneV2.js +2 -0
  25. package/lib/commonjs/components/ItemTimaOneV2.js.flow +617 -0
  26. package/lib/commonjs/components/ItemTimaOneV2.js.map +1 -0
  27. package/lib/commonjs/components/ItemTimaOneV3.js +2 -0
  28. package/lib/commonjs/components/ItemTimaOneV3.js.flow +558 -0
  29. package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -0
  30. package/lib/commonjs/components/MText.js +1 -1
  31. package/lib/commonjs/components/MText.js.flow +1 -1
  32. package/lib/commonjs/components/ModalOptionLoan.js +2 -0
  33. package/lib/commonjs/components/ModalOptionLoan.js.flow +242 -0
  34. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -0
  35. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  36. package/lib/commonjs/navigation/primary-navigator.js.flow +12 -0
  37. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  38. package/lib/commonjs/screens/eSign/index.js +1 -1
  39. package/lib/commonjs/screens/eSign/index.js.flow +53 -41
  40. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  41. package/lib/commonjs/screens/home/index.js +1 -1
  42. package/lib/commonjs/screens/home/index.js.flow +64 -625
  43. package/lib/commonjs/screens/home/index.js.map +1 -1
  44. package/lib/commonjs/screens/mySignViettel/Layer_3.png +0 -0
  45. package/lib/commonjs/screens/mySignViettel/index.js +2 -0
  46. package/lib/commonjs/screens/mySignViettel/index.js.flow +278 -0
  47. package/lib/commonjs/screens/mySignViettel/index.js.map +1 -0
  48. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  49. package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +57 -43
  50. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  51. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  52. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +1 -1
  53. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  54. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
  55. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +9 -2
  56. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  57. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  58. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +110 -7
  59. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  60. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  61. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +9 -8
  62. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  63. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  64. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +43 -169
  65. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  66. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  67. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +1 -1
  68. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  69. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  70. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +1 -1
  71. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  72. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  73. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +17 -14
  74. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  75. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  76. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +71 -12
  77. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  78. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  79. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +133 -43
  80. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  81. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  82. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +1 -1
  83. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  84. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  85. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +1 -1
  86. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  87. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  88. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +1 -1
  89. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  90. package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
  91. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +2 -2
  92. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
  93. package/lib/commonjs/screens/v3/AssetInformation.js +2 -0
  94. package/lib/commonjs/screens/v3/AssetInformation.js.flow +690 -0
  95. package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -0
  96. package/lib/commonjs/services/api/api.js +1 -1
  97. package/lib/commonjs/services/api/api.js.flow +196 -0
  98. package/lib/commonjs/services/api/api.js.map +1 -1
  99. package/lib/commonjs/utils/index.js +1 -1
  100. package/lib/commonjs/utils/index.js.flow +2 -0
  101. package/lib/commonjs/utils/index.js.map +1 -1
  102. package/lib/module/AppStore.js +1 -1
  103. package/lib/module/AppStore.js.map +1 -1
  104. package/lib/module/assets/v3/home.svg +5 -0
  105. package/lib/module/assets/v3/index.js +2 -0
  106. package/lib/module/assets/v3/index.js.map +1 -0
  107. package/lib/module/assets/v3/option1.svg +27 -0
  108. package/lib/module/assets/v3/option2.svg +25 -0
  109. package/lib/module/assets/v3/step1-success.svg +39 -0
  110. package/lib/module/assets/v3/step1.svg +90 -0
  111. package/lib/module/assets/v3/step2-disable.svg +14 -0
  112. package/lib/module/assets/v3/step2-success.svg +8 -0
  113. package/lib/module/assets/v3/step2.svg +37 -0
  114. package/lib/module/assets/v3/step3-disable.svg +17 -0
  115. package/lib/module/assets/v3/step3-success.svg +17 -0
  116. package/lib/module/assets/v3/step3.svg +45 -0
  117. package/lib/module/assets/v3/step4-disable.svg +11 -0
  118. package/lib/module/assets/v3/step4-success.svg +11 -0
  119. package/lib/module/assets/v3/step4.svg +29 -0
  120. package/lib/module/assets/v3/step5-disable.svg +17 -0
  121. package/lib/module/assets/v3/step5-success.svg +17 -0
  122. package/lib/module/assets/v3/step5.svg +45 -0
  123. package/lib/module/components/ItemTimaOneV2.js +2 -0
  124. package/lib/module/components/ItemTimaOneV2.js.map +1 -0
  125. package/lib/module/components/ItemTimaOneV3.js +2 -0
  126. package/lib/module/components/ItemTimaOneV3.js.map +1 -0
  127. package/lib/module/components/MText.js +1 -1
  128. package/lib/module/components/ModalOptionLoan.js +2 -0
  129. package/lib/module/components/ModalOptionLoan.js.map +1 -0
  130. package/lib/module/navigation/primary-navigator.js +1 -1
  131. package/lib/module/navigation/primary-navigator.js.map +1 -1
  132. package/lib/module/screens/eSign/index.js +1 -1
  133. package/lib/module/screens/eSign/index.js.map +1 -1
  134. package/lib/module/screens/home/index.js +1 -1
  135. package/lib/module/screens/home/index.js.map +1 -1
  136. package/lib/module/screens/mySignViettel/Layer_3.png +0 -0
  137. package/lib/module/screens/mySignViettel/index.js +2 -0
  138. package/lib/module/screens/mySignViettel/index.js.map +1 -0
  139. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  140. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  141. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  142. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  143. package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
  144. package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  145. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  146. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  147. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  148. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  149. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  150. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  151. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  152. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  153. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  154. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  155. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  156. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  157. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  158. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  159. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  160. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  161. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  162. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  163. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  164. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  165. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  166. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  167. package/lib/module/screens/toan-trinh-so/store.js +1 -1
  168. package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
  169. package/lib/module/screens/v3/AssetInformation.js +2 -0
  170. package/lib/module/screens/v3/AssetInformation.js.map +1 -0
  171. package/lib/module/services/api/api.js +1 -1
  172. package/lib/module/services/api/api.js.map +1 -1
  173. package/lib/module/utils/index.js +1 -1
  174. package/lib/module/utils/index.js.map +1 -1
  175. package/lib/typescript/AppStore.d.ts +2 -2
  176. package/lib/typescript/AppStore.d.ts.map +1 -1
  177. package/lib/typescript/assets/v3/index.d.ts +19 -0
  178. package/lib/typescript/assets/v3/index.d.ts.map +1 -0
  179. package/lib/typescript/components/ItemTimaOneV2.d.ts +7 -0
  180. package/lib/typescript/components/ItemTimaOneV2.d.ts.map +1 -0
  181. package/lib/typescript/components/ItemTimaOneV3.d.ts +7 -0
  182. package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -0
  183. package/lib/typescript/components/ModalOptionLoan.d.ts +8 -0
  184. package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -0
  185. package/lib/typescript/navigation/primary-navigator.d.ts +2 -0
  186. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  187. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  188. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  189. package/lib/typescript/screens/mySignViettel/index.d.ts +2 -0
  190. package/lib/typescript/screens/mySignViettel/index.d.ts.map +1 -0
  191. package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
  192. package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
  193. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  194. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  195. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  196. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  197. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  198. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  199. package/lib/typescript/screens/v3/AssetInformation.d.ts +2 -0
  200. package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -0
  201. package/lib/typescript/services/api/api.d.ts +192 -0
  202. package/lib/typescript/services/api/api.d.ts.map +1 -1
  203. package/lib/typescript/utils/index.d.ts.map +1 -1
  204. package/package.json +1 -1
  205. package/src/AppStore.tsx +4 -2
  206. package/src/assets/v3/home.svg +5 -0
  207. package/src/assets/v3/index.tsx +38 -0
  208. package/src/assets/v3/option1.svg +27 -0
  209. package/src/assets/v3/option2.svg +25 -0
  210. package/src/assets/v3/step1-success.svg +39 -0
  211. package/src/assets/v3/step1.svg +90 -0
  212. package/src/assets/v3/step2-disable.svg +14 -0
  213. package/src/assets/v3/step2-success.svg +8 -0
  214. package/src/assets/v3/step2.svg +37 -0
  215. package/src/assets/v3/step3-disable.svg +17 -0
  216. package/src/assets/v3/step3-success.svg +17 -0
  217. package/src/assets/v3/step3.svg +45 -0
  218. package/src/assets/v3/step4-disable.svg +11 -0
  219. package/src/assets/v3/step4-success.svg +11 -0
  220. package/src/assets/v3/step4.svg +29 -0
  221. package/src/assets/v3/step5-disable.svg +17 -0
  222. package/src/assets/v3/step5-success.svg +17 -0
  223. package/src/assets/v3/step5.svg +45 -0
  224. package/src/components/ItemTimaOneV2.tsx +617 -0
  225. package/src/components/ItemTimaOneV3.tsx +558 -0
  226. package/src/components/MText.tsx +1 -1
  227. package/src/components/ModalOptionLoan.tsx +242 -0
  228. package/src/navigation/primary-navigator.tsx +12 -0
  229. package/src/screens/eSign/index.tsx +53 -41
  230. package/src/screens/home/index.tsx +64 -625
  231. package/src/screens/mySignViettel/Layer_3.png +0 -0
  232. package/src/screens/mySignViettel/index.tsx +278 -0
  233. package/src/screens/sign-tima/ViewContract.tsx +57 -43
  234. package/src/screens/toan-trinh-so/OCR.tsx +1 -1
  235. package/src/screens/toan-trinh-so/RegisterBack.tsx +9 -2
  236. package/src/screens/toan-trinh-so/ReviewInformation.tsx +110 -7
  237. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +9 -8
  238. package/src/screens/toan-trinh-so/ReviewLoan.tsx +43 -169
  239. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +1 -1
  240. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +1 -1
  241. package/src/screens/toan-trinh-so/TTSSelfie.tsx +17 -14
  242. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +71 -12
  243. package/src/screens/toan-trinh-so/VehicleCamera.tsx +133 -43
  244. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +1 -1
  245. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +1 -1
  246. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +1 -1
  247. package/src/screens/toan-trinh-so/store.ts +2 -2
  248. package/src/screens/v3/AssetInformation.tsx +690 -0
  249. package/src/services/api/api.ts +196 -0
  250. package/src/utils/index.tsx +2 -0
@@ -2715,6 +2715,23 @@ export class Api {
2715
2715
  }
2716
2716
  }
2717
2717
 
2718
+ // Lấy thông tin khách hàng (luồng mới)
2719
+ async getInfoCustomerV2(id) {
2720
+ // make the api call
2721
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_customer?loanBriefId=${id}`)
2722
+ // the typical ways to die when calling an api
2723
+ if (!response.ok) {
2724
+ const problem = getGeneralApiProblem(response)
2725
+ if (problem) return problem
2726
+ }
2727
+ // transform the data into the format we are expecting
2728
+ try {
2729
+ return { kind: "ok", data: response.data }
2730
+ } catch {
2731
+ return { kind: "bad-data" }
2732
+ }
2733
+ }
2734
+
2718
2735
  // API cập nhập thông tin khách hàng (luồng mới)
2719
2736
 
2720
2737
  async updateInfoCustomer(body) {
@@ -2733,6 +2750,24 @@ export class Api {
2733
2750
  }
2734
2751
  }
2735
2752
 
2753
+ // API cập nhập thông tin khách hàng (luồng mới)
2754
+
2755
+ async updateInfoCustomerV2(body) {
2756
+ // make the api call
2757
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_customer`, body)
2758
+ // the typical ways to die when calling an api
2759
+ if (!response.ok) {
2760
+ const problem = getGeneralApiProblem(response)
2761
+ if (problem) return problem
2762
+ }
2763
+ // transform the data into the format we are expecting
2764
+ try {
2765
+ return { kind: "ok", data: response.data }
2766
+ } catch {
2767
+ return { kind: "bad-data" }
2768
+ }
2769
+ }
2770
+
2736
2771
  // Lấy thông tin khoản vay (luồng mới)
2737
2772
  async getInfoLoan(id) {
2738
2773
  // make the api call
@@ -2831,6 +2866,22 @@ export class Api {
2831
2866
  }
2832
2867
  }
2833
2868
 
2869
+ async updateInfoLoanV2(body) {
2870
+ // make the api call
2871
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_loan`, body)
2872
+ // the typical ways to die when calling an api
2873
+ if (!response.ok) {
2874
+ const problem = getGeneralApiProblem(response)
2875
+ if (problem) return problem
2876
+ }
2877
+ // transform the data into the format we are expecting
2878
+ try {
2879
+ return { kind: "ok", data: response.data }
2880
+ } catch {
2881
+ return { kind: "bad-data" }
2882
+ }
2883
+ }
2884
+
2834
2885
  // Lấy thông tin công việc (luồng mới)
2835
2886
  async getInfoJob(id) {
2836
2887
  // make the api call
@@ -2848,6 +2899,23 @@ export class Api {
2848
2899
  }
2849
2900
  }
2850
2901
 
2902
+ // Lấy thông tin công việc (luồng mới)
2903
+ async getInfoJobV2(id) {
2904
+ // make the api call
2905
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_job?loanBriefId=${id}`)
2906
+ // the typical ways to die when calling an api
2907
+ if (!response.ok) {
2908
+ const problem = getGeneralApiProblem(response)
2909
+ if (problem) return problem
2910
+ }
2911
+ // transform the data into the format we are expecting
2912
+ try {
2913
+ return { kind: "ok", data: response.data }
2914
+ } catch {
2915
+ return { kind: "bad-data" }
2916
+ }
2917
+ }
2918
+
2851
2919
  async updateInfoJob(body) {
2852
2920
  // make the api call
2853
2921
  const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_job`, body)
@@ -2864,6 +2932,22 @@ export class Api {
2864
2932
  }
2865
2933
  }
2866
2934
 
2935
+ async updateInfoJobV2(body) {
2936
+ // make the api call
2937
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_job`, body)
2938
+ // the typical ways to die when calling an api
2939
+ if (!response.ok) {
2940
+ const problem = getGeneralApiProblem(response)
2941
+ if (problem) return problem
2942
+ }
2943
+ // transform the data into the format we are expecting
2944
+ try {
2945
+ return { kind: "ok", data: response.data }
2946
+ } catch {
2947
+ return { kind: "bad-data" }
2948
+ }
2949
+ }
2950
+
2867
2951
  async getRelationship() {
2868
2952
  // make the api call
2869
2953
  const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_relative_family`)
@@ -2928,6 +3012,22 @@ export class Api {
2928
3012
  }
2929
3013
  }
2930
3014
 
3015
+ async getFirstPaymentTTSV2(id) {
3016
+ // make the api call
3017
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_first_payment_date?id=${id}`)
3018
+ // the typical ways to die when calling an api
3019
+ if (!response.ok) {
3020
+ const problem = getGeneralApiProblem(response)
3021
+ if (problem) return problem
3022
+ }
3023
+ // transform the data into the format we are expecting
3024
+ try {
3025
+ return { kind: "ok", data: response.data }
3026
+ } catch {
3027
+ return { kind: "bad-data" }
3028
+ }
3029
+ }
3030
+
2931
3031
  async verifySign(body) {
2932
3032
  // make the api call
2933
3033
  const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/transactions_secured`, body)
@@ -3028,4 +3128,100 @@ export class Api {
3028
3128
  return { kind: "bad-data" }
3029
3129
  }
3030
3130
  }
3131
+
3132
+ async uploadImageAutoDE(data) {
3133
+ // make the api call
3134
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/upload_image`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
3135
+ // the typical ways to die when calling an api
3136
+ if (!response.ok) {
3137
+ const problem = getGeneralApiProblem(response)
3138
+ if (problem) return problem
3139
+ }
3140
+ // transform the data into the format we are expecting
3141
+ try {
3142
+ return { kind: "ok", data: response.data }
3143
+ } catch {
3144
+ return { kind: "bad-data" }
3145
+ }
3146
+ }
3147
+
3148
+ async getAssetAutoDE(id: any) {
3149
+ // make the api call
3150
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_property?loanBriefId=${id}`)
3151
+ // the typical ways to die when calling an api
3152
+ if (!response.ok) {
3153
+ const problem = getGeneralApiProblem(response)
3154
+ if (problem) return problem
3155
+ }
3156
+ // transform the data into the format we are expecting
3157
+ try {
3158
+ return { kind: "ok", data: response.data }
3159
+ } catch {
3160
+ return { kind: "bad-data" }
3161
+ }
3162
+ }
3163
+
3164
+ async updateAssetAutoDE(body: any) {
3165
+ // make the api call
3166
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_property`, body)
3167
+ // the typical ways to die when calling an api
3168
+ if (!response.ok) {
3169
+ const problem = getGeneralApiProblem(response)
3170
+ if (problem) return problem
3171
+ }
3172
+ // transform the data into the format we are expecting
3173
+ try {
3174
+ return { kind: "ok", data: response.data }
3175
+ } catch {
3176
+ return { kind: "bad-data" }
3177
+ }
3178
+ }
3179
+
3180
+ async getInfoLoanAutoDEV2(id) {
3181
+ // make the api call
3182
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_loan?loanBriefId=${id}`)
3183
+ // the typical ways to die when calling an api
3184
+ if (!response.ok) {
3185
+ const problem = getGeneralApiProblem(response)
3186
+ if (problem) return problem
3187
+ }
3188
+ // transform the data into the format we are expecting
3189
+ try {
3190
+ return { kind: "ok", data: response.data }
3191
+ } catch {
3192
+ return { kind: "bad-data" }
3193
+ }
3194
+ }
3195
+
3196
+ async getSuggestProduct(id) {
3197
+ // make the api call
3198
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_product_suggerst?loanBriefId=${id}`)
3199
+ // the typical ways to die when calling an api
3200
+ if (!response.ok) {
3201
+ const problem = getGeneralApiProblem(response)
3202
+ if (problem) return problem
3203
+ }
3204
+ // transform the data into the format we are expecting
3205
+ try {
3206
+ return { kind: "ok", data: response.data }
3207
+ } catch {
3208
+ return { kind: "bad-data" }
3209
+ }
3210
+ }
3211
+
3212
+ async updateProductLoan(body) {
3213
+ // make the api call
3214
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_product`, body)
3215
+ // the typical ways to die when calling an api
3216
+ if (!response.ok) {
3217
+ const problem = getGeneralApiProblem(response)
3218
+ if (problem) return problem
3219
+ }
3220
+ // transform the data into the format we are expecting
3221
+ try {
3222
+ return { kind: "ok", data: response.data }
3223
+ } catch {
3224
+ return { kind: "bad-data" }
3225
+ }
3226
+ }
3031
3227
  }