react-native-timacare 3.3.64 → 3.3.65

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 (61) hide show
  1. package/lib/commonjs/components/AlertLoan.js +1 -1
  2. package/lib/commonjs/components/AlertLoan.js.flow +11 -2
  3. package/lib/commonjs/components/AlertLoan.js.map +1 -1
  4. package/lib/commonjs/components/ItemTimaOne.js +1 -1
  5. package/lib/commonjs/components/ItemTimaOne.js.flow +2 -0
  6. package/lib/commonjs/components/ItemTimaOne.js.map +1 -1
  7. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  8. package/lib/commonjs/navigation/primary-navigator.js.flow +9 -0
  9. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  10. package/lib/commonjs/screens/full-submit/selfie.js +1 -1
  11. package/lib/commonjs/screens/full-submit/selfie.js.flow +257 -114
  12. package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
  13. package/lib/commonjs/screens/selfie/SelfieCamera.js +2 -0
  14. package/lib/commonjs/screens/selfie/SelfieCamera.js.flow +302 -0
  15. package/lib/commonjs/screens/selfie/SelfieCamera.js.map +1 -0
  16. package/lib/commonjs/screens/selfie/index.js +1 -1
  17. package/lib/commonjs/screens/selfie/index.js.flow +295 -165
  18. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  19. package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js +2 -0
  20. package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js.flow +521 -0
  21. package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js.map +1 -0
  22. package/lib/commonjs/services/api/api.js +1 -1
  23. package/lib/commonjs/services/api/api.js.flow +41 -7
  24. package/lib/commonjs/services/api/api.js.map +1 -1
  25. package/lib/module/components/AlertLoan.js +1 -1
  26. package/lib/module/components/AlertLoan.js.map +1 -1
  27. package/lib/module/components/ItemTimaOne.js +1 -1
  28. package/lib/module/components/ItemTimaOne.js.map +1 -1
  29. package/lib/module/navigation/primary-navigator.js +1 -1
  30. package/lib/module/navigation/primary-navigator.js.map +1 -1
  31. package/lib/module/screens/full-submit/selfie.js +1 -1
  32. package/lib/module/screens/full-submit/selfie.js.map +1 -1
  33. package/lib/module/screens/selfie/SelfieCamera.js +2 -0
  34. package/lib/module/screens/selfie/SelfieCamera.js.map +1 -0
  35. package/lib/module/screens/selfie/index.js +1 -1
  36. package/lib/module/screens/selfie/index.js.map +1 -1
  37. package/lib/module/screens/v3/ReviewInfoLoanBuyCar.js +2 -0
  38. package/lib/module/screens/v3/ReviewInfoLoanBuyCar.js.map +1 -0
  39. package/lib/module/services/api/api.js +1 -1
  40. package/lib/module/services/api/api.js.map +1 -1
  41. package/lib/typescript/components/AlertLoan.d.ts.map +1 -1
  42. package/lib/typescript/components/ItemTimaOne.d.ts.map +1 -1
  43. package/lib/typescript/navigation/primary-navigator.d.ts +2 -0
  44. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  45. package/lib/typescript/screens/full-submit/selfie.d.ts.map +1 -1
  46. package/lib/typescript/screens/selfie/SelfieCamera.d.ts +2 -0
  47. package/lib/typescript/screens/selfie/SelfieCamera.d.ts.map +1 -0
  48. package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
  49. package/lib/typescript/screens/v3/ReviewInfoLoanBuyCar.d.ts +2 -0
  50. package/lib/typescript/screens/v3/ReviewInfoLoanBuyCar.d.ts.map +1 -0
  51. package/lib/typescript/services/api/api.d.ts +32 -0
  52. package/lib/typescript/services/api/api.d.ts.map +1 -1
  53. package/package.json +1 -1
  54. package/src/components/AlertLoan.tsx +11 -2
  55. package/src/components/ItemTimaOne.tsx +2 -0
  56. package/src/navigation/primary-navigator.tsx +9 -0
  57. package/src/screens/full-submit/selfie.tsx +257 -114
  58. package/src/screens/selfie/SelfieCamera.tsx +302 -0
  59. package/src/screens/selfie/index.tsx +295 -165
  60. package/src/screens/v3/ReviewInfoLoanBuyCar.tsx +521 -0
  61. package/src/services/api/api.ts +41 -7
@@ -123,15 +123,10 @@ export class Api {
123
123
  primaryText: 'Đồng ý',
124
124
  onPrimaryPress: () => {
125
125
  try {
126
- if (
127
- this.config.logout &&
128
- typeof this.config.logout === 'function'
129
- ) {
126
+ if (this.config.logout && typeof this.config.logout === 'function') {
130
127
  this.config.logout();
131
128
  } else {
132
- myLog(
133
- '[API] Warning: logout function not configured in SDKConfig'
134
- );
129
+ myLog('[API] Warning: logout function not configured in SDKConfig');
135
130
  }
136
131
  } catch (error) {
137
132
  myLog('[API] Error during logout:', error);
@@ -4204,4 +4199,43 @@ export class Api {
4204
4199
  return { kind: 'bad-data' };
4205
4200
  }
4206
4201
  }
4202
+
4203
+ // Lấy thông tin khách hàng luồng vay mua xe
4204
+ async getInfoCustomerLoanByCar(id) {
4205
+ // make the api call
4206
+ const response: ApiResponse<any> = await this.apisauce.get(
4207
+ `api/v2.0/autodev2/get_info_customer_vaymuaxe?loanBriefId=${id}`
4208
+ );
4209
+ // the typical ways to die when calling an api
4210
+ if (!response.ok) {
4211
+ const problem = getGeneralApiProblem(response);
4212
+ if (problem) return problem;
4213
+ }
4214
+ // transform the data into the format we are expecting
4215
+ try {
4216
+ return { kind: 'ok', data: response.data };
4217
+ } catch {
4218
+ return { kind: 'bad-data' };
4219
+ }
4220
+ }
4221
+
4222
+ // cập nhật thông tin khách hàng luồng vay mua xe
4223
+ async updateInfoCustomerLoanBuyCar(body) {
4224
+ // make the api call
4225
+ const response: ApiResponse<any> = await this.apisauce.post(
4226
+ `api/v2.0/autodev2/update_info_customer_vaymuaxe`,
4227
+ body
4228
+ );
4229
+ // the typical ways to die when calling an api
4230
+ if (!response.ok) {
4231
+ const problem = getGeneralApiProblem(response);
4232
+ if (problem) return problem;
4233
+ }
4234
+ // transform the data into the format we are expecting
4235
+ try {
4236
+ return { kind: 'ok', data: response.data };
4237
+ } catch {
4238
+ return { kind: 'bad-data' };
4239
+ }
4240
+ }
4207
4241
  }