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.
- package/lib/commonjs/assets/svgs/ekyc_disable.svg +4 -0
- package/lib/commonjs/assets/svgs/expand.svg +8 -0
- package/lib/commonjs/assets/svgs/expand_up.svg +8 -0
- package/lib/commonjs/assets/svgs/index.js +1 -1
- package/lib/commonjs/assets/svgs/index.js.flow +14 -0
- package/lib/commonjs/assets/svgs/index.js.map +1 -1
- package/lib/commonjs/assets/svgs/money.svg +5 -0
- package/lib/commonjs/assets/svgs/sign_disable.svg +12 -0
- package/lib/commonjs/assets/svgs/sign_success.svg +12 -0
- package/lib/commonjs/assets/svgs/tima_16.svg +13 -0
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +2051 -1628
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +10 -6
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +123 -36
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +3 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +3 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +539 -483
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +76 -57
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +58 -12
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +6 -7
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +185 -50
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +4 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +23 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +46 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/index.js.flow +51 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/assets/svgs/ekyc_disable.svg +4 -0
- package/lib/module/assets/svgs/expand.svg +8 -0
- package/lib/module/assets/svgs/expand_up.svg +8 -0
- package/lib/module/assets/svgs/index.js +1 -1
- package/lib/module/assets/svgs/index.js.map +1 -1
- package/lib/module/assets/svgs/money.svg +5 -0
- package/lib/module/assets/svgs/sign_disable.svg +12 -0
- package/lib/module/assets/svgs/sign_success.svg +12 -0
- package/lib/module/assets/svgs/tima_16.svg +13 -0
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/register/index.js +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/assets/svgs/index.d.ts +8 -1
- package/lib/typescript/assets/svgs/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/store.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +48 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts +8 -0
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/svgs/ekyc_disable.svg +4 -0
- package/src/assets/svgs/expand.svg +8 -0
- package/src/assets/svgs/expand_up.svg +8 -0
- package/src/assets/svgs/index.tsx +14 -0
- package/src/assets/svgs/money.svg +5 -0
- package/src/assets/svgs/sign_disable.svg +12 -0
- package/src/assets/svgs/sign_success.svg +12 -0
- package/src/assets/svgs/tima_16.svg +13 -0
- package/src/screens/home/index.tsx +2051 -1628
- package/src/screens/liveness-v2/index.tsx +10 -6
- package/src/screens/register/index.tsx +1 -1
- package/src/screens/toan-trinh-so/LoanInterestRate.tsx +123 -36
- package/src/screens/toan-trinh-so/OCR.tsx +3 -1
- package/src/screens/toan-trinh-so/RegisterCamera.tsx +3 -1
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +539 -483
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +76 -57
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +58 -12
- package/src/screens/toan-trinh-so/TTSOTP.tsx +6 -7
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +185 -50
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +4 -1
- package/src/screens/toan-trinh-so/store.ts +23 -1
- package/src/services/api/api.ts +46 -0
- package/src/utils/index.tsx +51 -0
|
@@ -52,7 +52,7 @@ export default function VehicleCamera(props: any) {
|
|
|
52
52
|
const takePhoto = async () => {
|
|
53
53
|
setTaking(true);
|
|
54
54
|
const options = {
|
|
55
|
-
width: 720,
|
|
55
|
+
// width: 720,
|
|
56
56
|
base64: true,
|
|
57
57
|
pauseAfterCapture: true,
|
|
58
58
|
fixOrientation: false,
|
|
@@ -228,6 +228,8 @@ export default function VehicleCamera(props: any) {
|
|
|
228
228
|
buttonPositive: 'Ok',
|
|
229
229
|
buttonNegative: 'Cancel',
|
|
230
230
|
}}
|
|
231
|
+
quality={0.8}
|
|
232
|
+
pictureSize="1280x720"
|
|
231
233
|
>
|
|
232
234
|
{({ camera, status, recordAudioPermissionStatus }) => {
|
|
233
235
|
if (status !== 'READY') return <ActivityIndicator />;
|
|
@@ -261,6 +263,7 @@ export default function VehicleCamera(props: any) {
|
|
|
261
263
|
bottom: 20,
|
|
262
264
|
left: 0,
|
|
263
265
|
right: 0,
|
|
266
|
+
zIndex: 1000,
|
|
264
267
|
}}
|
|
265
268
|
>
|
|
266
269
|
{!taking && (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { observable, action, toJS, makeAutoObservable } from 'mobx';
|
|
3
3
|
import { Api } from '../../services/api';
|
|
4
|
-
|
|
4
|
+
import moment from 'moment';
|
|
5
5
|
class Store {
|
|
6
6
|
listProvince = []
|
|
7
7
|
listDistrict = []
|
|
@@ -17,9 +17,12 @@ class Store {
|
|
|
17
17
|
listRelationship = []
|
|
18
18
|
listJob = []
|
|
19
19
|
|
|
20
|
+
listFirstPayment = []
|
|
21
|
+
|
|
20
22
|
constructor() {
|
|
21
23
|
makeAutoObservable(this);
|
|
22
24
|
}
|
|
25
|
+
|
|
23
26
|
async getProvinces() {
|
|
24
27
|
try {
|
|
25
28
|
const response = await Api.getInstance().getProvinces({});
|
|
@@ -249,6 +252,25 @@ class Store {
|
|
|
249
252
|
console.log(error);
|
|
250
253
|
}
|
|
251
254
|
}
|
|
255
|
+
|
|
256
|
+
async getFirstPayment(id) {
|
|
257
|
+
try {
|
|
258
|
+
const response = await Api.getInstance().getFirstPaymentTTS(id);
|
|
259
|
+
if (response.kind === 'ok') {
|
|
260
|
+
if (response.data.meta.errorCode === 200) {
|
|
261
|
+
this.listFirstPayment = response.data.data.map((item: any) => {
|
|
262
|
+
return { id: item, name: moment(item, 'DD-MM-YYYY').format('DD/MM/YYYY') };
|
|
263
|
+
});
|
|
264
|
+
} else {
|
|
265
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
266
|
+
}
|
|
267
|
+
} else {
|
|
268
|
+
// Alert.alert('Thông báo', 'Không lấy được danh sách nghề nghi.');
|
|
269
|
+
}
|
|
270
|
+
} catch (error) {
|
|
271
|
+
console.log(error);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
252
274
|
}
|
|
253
275
|
|
|
254
276
|
const ttsStore = new Store();
|
package/src/services/api/api.ts
CHANGED
|
@@ -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
|
}
|
package/src/utils/index.tsx
CHANGED
|
@@ -117,3 +117,54 @@ export const EnumTypeAsset = [
|
|
|
117
117
|
name: 'Doanh nghiệp',
|
|
118
118
|
},
|
|
119
119
|
];
|
|
120
|
+
|
|
121
|
+
export const EnumRelationshipOption1 = [
|
|
122
|
+
{
|
|
123
|
+
id: 1,
|
|
124
|
+
name: 'Chồng/Vợ',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 2,
|
|
128
|
+
name: 'Mẹ',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 3,
|
|
132
|
+
name: 'Bố',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: 4,
|
|
136
|
+
name: 'Anh/em trai',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 5,
|
|
140
|
+
name: 'Chị/em gái',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 13,
|
|
144
|
+
name: 'Con',
|
|
145
|
+
},
|
|
146
|
+
];
|
|
147
|
+
|
|
148
|
+
export const EnumRelationshipOption2 = [
|
|
149
|
+
{
|
|
150
|
+
id: 6,
|
|
151
|
+
name: 'Đồng nghiệp',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 10,
|
|
155
|
+
name: 'Cô/Dì',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 9,
|
|
159
|
+
name: 'Chú',
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
{
|
|
163
|
+
id: 8,
|
|
164
|
+
name: 'Bác',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: 15,
|
|
168
|
+
name: 'Bạn bè',
|
|
169
|
+
},
|
|
170
|
+
];
|