react-native-timacare 3.3.32 → 3.3.34
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/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +29 -0
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +29 -0
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/home/Store.js +1 -1
- package/lib/commonjs/screens/home/Store.js.flow +1 -1
- package/lib/commonjs/screens/home/Store.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +33 -5
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness/index.js +1 -1
- package/lib/commonjs/screens/liveness/index.js.flow +4 -4
- package/lib/commonjs/screens/liveness/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +5 -44
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +1537 -1046
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/module/screens/home/Store.js +1 -1
- package/lib/module/screens/home/Store.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness/index.js +1 -1
- package/lib/module/screens/liveness/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/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +34 -2
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/detail-loan/PaymentInfo.tsx +29 -0
- package/src/screens/detail-loan/ShowQrCode.tsx +29 -0
- package/src/screens/home/Store.tsx +1 -1
- package/src/screens/home/index.tsx +33 -5
- package/src/screens/liveness/index.tsx +4 -4
- package/src/screens/liveness-v2/index.tsx +5 -44
- package/src/services/api/api.ts +1537 -1046
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/home/index.tsx"],"names":[],"mappings":"AAuHA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/home/index.tsx"],"names":[],"mappings":"AAuHA,eAAO,MAAM,IAAI,KA2kFf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/liveness/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/liveness/index.tsx"],"names":[],"mappings":"AAwCA,eAAO,MAAM,QAAQ,KA6cnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/liveness-v2/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/liveness-v2/index.tsx"],"names":[],"mappings":"AA+CA,eAAO,MAAM,UAAU,KAuhBrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApisauceInstance } from
|
|
2
|
-
import { SDKConfig } from
|
|
1
|
+
import { ApisauceInstance } from 'apisauce';
|
|
2
|
+
import { SDKConfig } from '../../sdkConfig';
|
|
3
3
|
/**
|
|
4
4
|
* Manages all requests to the API.
|
|
5
5
|
*/
|
|
@@ -2988,5 +2988,37 @@ export declare class Api {
|
|
|
2988
2988
|
kind: string;
|
|
2989
2989
|
data?: undefined;
|
|
2990
2990
|
}>;
|
|
2991
|
+
get_loan_disbursed(): Promise<{
|
|
2992
|
+
kind: "timeout";
|
|
2993
|
+
temporary: true;
|
|
2994
|
+
} | {
|
|
2995
|
+
kind: "cannot-connect";
|
|
2996
|
+
temporary: true;
|
|
2997
|
+
} | {
|
|
2998
|
+
kind: "unknown";
|
|
2999
|
+
temporary: true;
|
|
3000
|
+
} | {
|
|
3001
|
+
kind: string;
|
|
3002
|
+
data: any;
|
|
3003
|
+
} | {
|
|
3004
|
+
kind: string;
|
|
3005
|
+
data?: undefined;
|
|
3006
|
+
}>;
|
|
3007
|
+
confirm_final_settlement(body: any): Promise<{
|
|
3008
|
+
kind: "timeout";
|
|
3009
|
+
temporary: true;
|
|
3010
|
+
} | {
|
|
3011
|
+
kind: "cannot-connect";
|
|
3012
|
+
temporary: true;
|
|
3013
|
+
} | {
|
|
3014
|
+
kind: "unknown";
|
|
3015
|
+
temporary: true;
|
|
3016
|
+
} | {
|
|
3017
|
+
kind: string;
|
|
3018
|
+
data: any;
|
|
3019
|
+
} | {
|
|
3020
|
+
kind: string;
|
|
3021
|
+
data?: undefined;
|
|
3022
|
+
}>;
|
|
2991
3023
|
}
|
|
2992
3024
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/services/api/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAuB,MAAM,UAAU,
|
|
1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;;IAmB7B,uBAAuB,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;;IAmB5B,iBAAiB,CAAC,EAAE,KAAA;;;;;;;;;;;;;;;;IAkBpB,mBAAmB,CAAC,EAAE,KAAA;;;;;;;;;;;;;;;;IAkBtB,oBAAoB,CAAC,EAAE,KAAA;;;;;;;;;;;;;;;;IAkBvB,sBAAsB,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;;IAmB3B,uBAAuB,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;;IAmB5B,UAAU,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;;IAmBf,kBAAkB;;;;;;;;;;;;;;;;IAkBlB,wBAAwB,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;;CAkBpC"}
|
package/package.json
CHANGED
|
@@ -602,6 +602,35 @@ const PaymentInfoContent = observer(function PaymentInfoContent(props: any) {
|
|
|
602
602
|
[
|
|
603
603
|
{
|
|
604
604
|
text: 'Có',
|
|
605
|
+
onPress: async () => {
|
|
606
|
+
const response =
|
|
607
|
+
await Api.getInstance().confirm_final_settlement({
|
|
608
|
+
loanBriefId: props?.route.params?.loan?.id,
|
|
609
|
+
});
|
|
610
|
+
if (
|
|
611
|
+
response.kind === 'ok' &&
|
|
612
|
+
response.data?.meta?.errorCode === 200
|
|
613
|
+
) {
|
|
614
|
+
Alert.alert(
|
|
615
|
+
'GỬI YÊU CẦU THÀNH CÔNG!',
|
|
616
|
+
'Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',
|
|
617
|
+
[
|
|
618
|
+
{
|
|
619
|
+
text: 'Đồng ý',
|
|
620
|
+
onPress: () => {
|
|
621
|
+
navigation.navigate('Main');
|
|
622
|
+
},
|
|
623
|
+
},
|
|
624
|
+
]
|
|
625
|
+
);
|
|
626
|
+
} else {
|
|
627
|
+
Alert.alert(
|
|
628
|
+
'Thông báo',
|
|
629
|
+
response?.data?.meta?.errorMessage ||
|
|
630
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau'
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
},
|
|
605
634
|
},
|
|
606
635
|
{
|
|
607
636
|
text: 'Không',
|
|
@@ -604,6 +604,35 @@ const ShowQrCodeContent = observer(function ShowQrCodeContent(props: any) {
|
|
|
604
604
|
[
|
|
605
605
|
{
|
|
606
606
|
text: 'Có',
|
|
607
|
+
onPress: async () => {
|
|
608
|
+
const response =
|
|
609
|
+
await Api.getInstance().confirm_final_settlement({
|
|
610
|
+
loanBriefId: props?.route?.params?.id,
|
|
611
|
+
});
|
|
612
|
+
if (
|
|
613
|
+
response.kind === 'ok' &&
|
|
614
|
+
response.data?.meta?.errorCode === 200
|
|
615
|
+
) {
|
|
616
|
+
Alert.alert(
|
|
617
|
+
'GỬI YÊU CẦU THÀNH CÔNG!',
|
|
618
|
+
'Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',
|
|
619
|
+
[
|
|
620
|
+
{
|
|
621
|
+
text: 'Đồng ý',
|
|
622
|
+
onPress: () => {
|
|
623
|
+
navigation.navigate('Main');
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
]
|
|
627
|
+
);
|
|
628
|
+
} else {
|
|
629
|
+
Alert.alert(
|
|
630
|
+
'Thông báo',
|
|
631
|
+
response?.data?.meta?.errorMessage ||
|
|
632
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau'
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
},
|
|
607
636
|
},
|
|
608
637
|
{
|
|
609
638
|
text: 'Không',
|
|
@@ -135,7 +135,7 @@ class Store {
|
|
|
135
135
|
async getListLoan(onSuccess?, onFailure?) {
|
|
136
136
|
this.isLoading = true;
|
|
137
137
|
this.listLoan = [];
|
|
138
|
-
const response = await Api.getInstance().
|
|
138
|
+
const response = await Api.getInstance().get_loan_disbursed();
|
|
139
139
|
this.isLoading = false;
|
|
140
140
|
myLog(response);
|
|
141
141
|
if (response.kind === 'ok') {
|
|
@@ -248,7 +248,6 @@ export const Home = observer(function Home() {
|
|
|
248
248
|
useEffect(() => {
|
|
249
249
|
navigation.addListener('focus', () => {
|
|
250
250
|
onRefresh();
|
|
251
|
-
homeStore.getListLoan();
|
|
252
251
|
getLocation();
|
|
253
252
|
});
|
|
254
253
|
}, [navigation]);
|
|
@@ -2227,7 +2226,7 @@ export const Home = observer(function Home() {
|
|
|
2227
2226
|
Ngày giải ngân
|
|
2228
2227
|
</MText>
|
|
2229
2228
|
<MText style={commonStyles.textNormalBold}>
|
|
2230
|
-
{formatDDMMYYY(loan?.
|
|
2229
|
+
{formatDDMMYYY(loan?.disbursedAt)}
|
|
2231
2230
|
</MText>
|
|
2232
2231
|
</View>
|
|
2233
2232
|
<View
|
|
@@ -2247,7 +2246,7 @@ export const Home = observer(function Home() {
|
|
|
2247
2246
|
Ngày kết thúc khoản vay
|
|
2248
2247
|
</MText>
|
|
2249
2248
|
<MText style={commonStyles.textNormalBold}>
|
|
2250
|
-
{formatDDMMYYY(loan?.
|
|
2249
|
+
{formatDDMMYYY(loan?.finalSettlementAt)}
|
|
2251
2250
|
</MText>
|
|
2252
2251
|
</View>
|
|
2253
2252
|
<View
|
|
@@ -2267,7 +2266,36 @@ export const Home = observer(function Home() {
|
|
|
2267
2266
|
Ngày đến hạn tiếp theo
|
|
2268
2267
|
</MText>
|
|
2269
2268
|
<MText style={commonStyles.textNormalBold}>
|
|
2270
|
-
{formatDDMMYYY(loan?.
|
|
2269
|
+
{formatDDMMYYY(loan?.nextPaymentAt)}
|
|
2270
|
+
</MText>
|
|
2271
|
+
</View>
|
|
2272
|
+
<View
|
|
2273
|
+
style={{
|
|
2274
|
+
height: 0.5,
|
|
2275
|
+
backgroundColor: '#E0E0E0',
|
|
2276
|
+
marginVertical: 16,
|
|
2277
|
+
}}
|
|
2278
|
+
/>
|
|
2279
|
+
<View
|
|
2280
|
+
style={{
|
|
2281
|
+
flexDirection: 'row',
|
|
2282
|
+
justifyContent: 'space-between',
|
|
2283
|
+
}}
|
|
2284
|
+
>
|
|
2285
|
+
<MText style={commonStyles.textNormal}>
|
|
2286
|
+
STK thanh toán
|
|
2287
|
+
</MText>
|
|
2288
|
+
<MText
|
|
2289
|
+
style={[
|
|
2290
|
+
commonStyles.textNormalBold,
|
|
2291
|
+
{
|
|
2292
|
+
textAlign: 'right',
|
|
2293
|
+
},
|
|
2294
|
+
]}
|
|
2295
|
+
>
|
|
2296
|
+
{loan?.bankAccountNumber}
|
|
2297
|
+
{'\n'}
|
|
2298
|
+
{loan?.bankName}
|
|
2271
2299
|
</MText>
|
|
2272
2300
|
</View>
|
|
2273
2301
|
<View
|
|
@@ -2296,7 +2324,7 @@ export const Home = observer(function Home() {
|
|
|
2296
2324
|
]}
|
|
2297
2325
|
>
|
|
2298
2326
|
Thời gian tất toán còn lại là{' '}
|
|
2299
|
-
{diffDays(new Date(), loan?.
|
|
2327
|
+
{diffDays(new Date(), loan?.finalSettlementAt)} ngày
|
|
2300
2328
|
</MText>
|
|
2301
2329
|
</View>
|
|
2302
2330
|
</TouchableOpacity>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
ActivityIndicator,
|
|
@@ -31,10 +31,8 @@ import { MText } from '../../components/MText';
|
|
|
31
31
|
import livenessStore from './LivenessStore';
|
|
32
32
|
import RNFS, { CachesDirectoryPath } from 'react-native-fs';
|
|
33
33
|
import { ScreenNames } from '../../navigation';
|
|
34
|
-
import selfieStore from '../selfie/SelfieStore';
|
|
35
34
|
import Slack from 'react-native-slack-webhook';
|
|
36
35
|
import Loading from '../../components/Loading';
|
|
37
|
-
import { Api } from '../../services/api';
|
|
38
36
|
import { createThumbnail } from 'react-native-create-thumbnail';
|
|
39
37
|
|
|
40
38
|
const webHookURL =
|
|
@@ -190,7 +188,9 @@ export const LiveNess = observer(function LiveNess(props: any) {
|
|
|
190
188
|
});
|
|
191
189
|
if (data.path) {
|
|
192
190
|
setRecording(false);
|
|
193
|
-
captureFromVideo(
|
|
191
|
+
captureFromVideo(
|
|
192
|
+
Platform.OS === 'ios' ? data.path : 'file://' + data.path
|
|
193
|
+
);
|
|
194
194
|
} else {
|
|
195
195
|
Alert.alert(
|
|
196
196
|
'Thông báo',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { CommonActions, useNavigation } from '@react-navigation/native';
|
|
4
4
|
import { Observer, observer } from 'mobx-react-lite';
|
|
@@ -14,14 +14,13 @@ import {
|
|
|
14
14
|
View,
|
|
15
15
|
} from 'react-native';
|
|
16
16
|
import CircularProgress from 'react-native-circular-progress-indicator';
|
|
17
|
-
import RNFS
|
|
17
|
+
import RNFS from 'react-native-fs';
|
|
18
18
|
import {
|
|
19
19
|
PERMISSIONS,
|
|
20
20
|
RESULTS,
|
|
21
21
|
openSettings,
|
|
22
22
|
request,
|
|
23
23
|
} from 'react-native-permissions';
|
|
24
|
-
import DeviceInfo from 'react-native-device-info';
|
|
25
24
|
import { IconBackWhite, IconEkyc } from '../../assets/icons';
|
|
26
25
|
import { MText } from '../../components/MText';
|
|
27
26
|
import {
|
|
@@ -317,42 +316,6 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
317
316
|
}
|
|
318
317
|
};
|
|
319
318
|
|
|
320
|
-
const captureFromVideo = async (uri: any) => {
|
|
321
|
-
try {
|
|
322
|
-
const time = new Date().getTime();
|
|
323
|
-
const template = CachesDirectoryPath + '/' + time;
|
|
324
|
-
const output = template + '_img_%04d.jpg';
|
|
325
|
-
FFmpegKit.execute(`-i ${uri} -r 2 ${output}`).then(async (result) => {
|
|
326
|
-
console.log(`FFmpeg process exited with rc=${result}.`);
|
|
327
|
-
const returnCode = await result.getReturnCode();
|
|
328
|
-
if (ReturnCode.isSuccess(returnCode)) {
|
|
329
|
-
uploadLiveness(template);
|
|
330
|
-
} else {
|
|
331
|
-
setIsLoading(false);
|
|
332
|
-
Alert.alert('Thông báo', 'Quá trình xử lý hình ảnh thất bại', [
|
|
333
|
-
{
|
|
334
|
-
text: 'Thử lại',
|
|
335
|
-
onPress: () => {
|
|
336
|
-
startLiveness();
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
]);
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
} catch (error) {
|
|
343
|
-
setIsLoading(false);
|
|
344
|
-
console.log(error);
|
|
345
|
-
Alert.alert('Thông báo', 'Quá trình xử lý hình ảnh thất bại', [
|
|
346
|
-
{
|
|
347
|
-
text: 'Thử lại',
|
|
348
|
-
onPress: () => {
|
|
349
|
-
startLiveness();
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
]);
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
|
|
356
319
|
const startLiveness = async () => {
|
|
357
320
|
livenessStore.ekycSuccess = false;
|
|
358
321
|
if (livenessStore.listAction.length === 0) {
|
|
@@ -384,7 +347,9 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
384
347
|
});
|
|
385
348
|
if (data.path) {
|
|
386
349
|
setIsLoading(true);
|
|
387
|
-
const thump = await extractFramesFromVideo(
|
|
350
|
+
const thump = await extractFramesFromVideo(
|
|
351
|
+
Platform.OS === 'ios' ? data.path : 'file://' + data.path
|
|
352
|
+
);
|
|
388
353
|
if (thump.length > 0) {
|
|
389
354
|
uploadLiveness(thump);
|
|
390
355
|
}
|
|
@@ -505,10 +470,6 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
505
470
|
|
|
506
471
|
<View style={styles.circularProgress}>
|
|
507
472
|
<CircularProgress
|
|
508
|
-
// dashedStrokeConfig={{
|
|
509
|
-
// count: 100,
|
|
510
|
-
// width: 7,
|
|
511
|
-
// }}
|
|
512
473
|
value={
|
|
513
474
|
livenessStore.listAction.length === 3
|
|
514
475
|
? 0
|