react-native-timacare 3.1.45 → 3.1.47

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 (119) hide show
  1. package/lib/commonjs/components/MSelect.js +1 -1
  2. package/lib/commonjs/components/MSelect.js.flow +1 -1
  3. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  4. package/lib/commonjs/navigation/primary-navigator.js.flow +6 -3
  5. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  6. package/lib/commonjs/screens/home/index.js +1 -1
  7. package/lib/commonjs/screens/home/index.js.flow +26 -26
  8. package/lib/commonjs/screens/home/index.js.map +1 -1
  9. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  10. package/lib/commonjs/screens/liveness-v2/index.js.flow +11 -4
  11. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  12. package/lib/commonjs/screens/register/index.js +1 -1
  13. package/lib/commonjs/screens/register/index.js.flow +1 -1
  14. package/lib/commonjs/screens/splash/Untitled.png +0 -0
  15. package/lib/commonjs/screens/splash/index.js +1 -1
  16. package/lib/commonjs/screens/splash/index.js.flow +6 -4
  17. package/lib/commonjs/screens/splash/index.js.map +1 -1
  18. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  19. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +5 -1
  20. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  21. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  22. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +2 -1
  23. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  24. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  25. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +4 -2
  26. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  27. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  28. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +5 -1
  29. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  30. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
  31. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +4 -0
  32. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  33. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  34. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +18 -5
  35. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  36. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  37. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +5 -1
  38. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  39. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +2 -0
  40. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +858 -0
  41. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -0
  42. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  43. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +7 -1
  44. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  45. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  46. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +5 -1
  47. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  48. package/lib/commonjs/services/api/api.js +1 -1
  49. package/lib/commonjs/services/api/api.js.flow +32 -0
  50. package/lib/commonjs/services/api/api.js.map +1 -1
  51. package/lib/module/components/MSelect.js +1 -1
  52. package/lib/module/navigation/primary-navigator.js +1 -1
  53. package/lib/module/navigation/primary-navigator.js.map +1 -1
  54. package/lib/module/screens/home/index.js +1 -1
  55. package/lib/module/screens/home/index.js.map +1 -1
  56. package/lib/module/screens/liveness-v2/index.js +1 -1
  57. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  58. package/lib/module/screens/register/index.js +1 -1
  59. package/lib/module/screens/splash/Untitled.png +0 -0
  60. package/lib/module/screens/splash/index.js +1 -1
  61. package/lib/module/screens/splash/index.js.map +1 -1
  62. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  63. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  64. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  65. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  66. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  67. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  68. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  69. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  70. package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
  71. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  72. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  73. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  74. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  75. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  76. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +2 -0
  77. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -0
  78. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  79. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  80. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  81. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  82. package/lib/module/services/api/api.js +1 -1
  83. package/lib/module/services/api/api.js.map +1 -1
  84. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  85. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  86. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  87. package/lib/typescript/screens/splash/index.d.ts.map +1 -1
  88. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  89. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  90. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  91. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -1
  92. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
  93. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  94. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  95. package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts +2 -0
  96. package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -0
  97. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
  98. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
  99. package/lib/typescript/services/api/api.d.ts +32 -0
  100. package/lib/typescript/services/api/api.d.ts.map +1 -1
  101. package/package.json +1 -1
  102. package/src/components/MSelect.tsx +1 -1
  103. package/src/navigation/primary-navigator.tsx +6 -3
  104. package/src/screens/home/index.tsx +26 -26
  105. package/src/screens/liveness-v2/index.tsx +11 -4
  106. package/src/screens/register/index.tsx +1 -1
  107. package/src/screens/splash/Untitled.png +0 -0
  108. package/src/screens/splash/index.tsx +6 -4
  109. package/src/screens/toan-trinh-so/ReviewInformation.tsx +5 -1
  110. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +2 -1
  111. package/src/screens/toan-trinh-so/ReviewLoan.tsx +4 -2
  112. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +5 -1
  113. package/src/screens/toan-trinh-so/TTSOTP.tsx +4 -0
  114. package/src/screens/toan-trinh-so/TTSSelfie.tsx +18 -5
  115. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +5 -1
  116. package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +858 -0
  117. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +7 -1
  118. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +5 -1
  119. package/src/services/api/api.ts +32 -0
@@ -24,6 +24,8 @@ import { ScreenNames } from '../../navigation';
24
24
  import Loading from '../../components/Loading';
25
25
  import MButton from '../../components/MButton';
26
26
  import LinearGradient from 'react-native-linear-gradient';
27
+ import analytics from '@react-native-firebase/analytics';
28
+ import { AppEventsLogger } from 'react-native-fbsdk-next';
27
29
 
28
30
  const logoView: ImageStyle = {
29
31
  position: 'absolute',
@@ -37,10 +39,14 @@ export default function VehicleRegistration(props) {
37
39
  const [photo, setPhoto] = useState(null);
38
40
  const [isLoading, setIsLoading] = useState(false);
39
41
 
40
- useEffect(() => {
42
+ useEffect(async () => {
41
43
  if (props?.route?.params?.uri) {
42
44
  setPhoto(props?.route?.params?.uri);
43
45
  }
46
+ await analytics().logEvent('dangky_completed', {});
47
+ await AppEventsLogger().logEvent('dangky_completed', {});
48
+ await analytics().logEvent('dangkiem_started', {});
49
+ await AppEventsLogger().logEvent('dangkiem_started', {});
44
50
  }, []);
45
51
 
46
52
  const takePhoto = () => {
@@ -25,6 +25,8 @@ import LinearGradient from 'react-native-linear-gradient';
25
25
  import { ScreenNames } from '../../navigation';
26
26
  import { Api } from '../../services/api';
27
27
  import Loading from '../../components/Loading';
28
+ import analytics from '@react-native-firebase/analytics';
29
+ import { AppEventsLogger } from 'react-native-fbsdk-next';
28
30
 
29
31
  const logoView: ImageStyle = {
30
32
  position: 'absolute',
@@ -38,10 +40,12 @@ export default function VehicleRegistrationFront(props: any) {
38
40
  const [photo, setPhoto] = useState(null);
39
41
  const [isLoading, setIsLoading] = useState(false);
40
42
 
41
- useEffect(() => {
43
+ useEffect(async () => {
42
44
  if (props?.route?.params?.uri) {
43
45
  setPhoto(props?.route?.params?.uri);
44
46
  }
47
+ await analytics().logEvent('dangky_started', {});
48
+ await AppEventsLogger().logEvent('dangky_started', {});
45
49
  }, []);
46
50
 
47
51
  const takePhoto = () => {
@@ -2943,4 +2943,36 @@ export class Api {
2943
2943
  return { kind: "bad-data" }
2944
2944
  }
2945
2945
  }
2946
+
2947
+ async getInfoLoanTopupTts(id) {
2948
+ // make the api call
2949
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_borrow_topup?loanBriefId=${id}`)
2950
+ // the typical ways to die when calling an api
2951
+ if (!response.ok) {
2952
+ const problem = getGeneralApiProblem(response)
2953
+ if (problem) return problem
2954
+ }
2955
+ // transform the data into the format we are expecting
2956
+ try {
2957
+ return { kind: "ok", data: response.data }
2958
+ } catch {
2959
+ return { kind: "bad-data" }
2960
+ }
2961
+ }
2962
+
2963
+ async updateInfoLoanTopup(body) {
2964
+ // make the api call
2965
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_borrow_topup`, body)
2966
+ // the typical ways to die when calling an api
2967
+ if (!response.ok) {
2968
+ const problem = getGeneralApiProblem(response)
2969
+ if (problem) return problem
2970
+ }
2971
+ // transform the data into the format we are expecting
2972
+ try {
2973
+ return { kind: "ok", data: response.data }
2974
+ } catch {
2975
+ return { kind: "bad-data" }
2976
+ }
2977
+ }
2946
2978
  }