react-native-timacare 3.3.63 → 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.
- package/lib/commonjs/components/AlertLoan.js +1 -1
- package/lib/commonjs/components/AlertLoan.js.flow +11 -2
- package/lib/commonjs/components/AlertLoan.js.map +1 -1
- package/lib/commonjs/components/ItemTimaOne.js +1 -1
- package/lib/commonjs/components/ItemTimaOne.js.flow +3 -0
- package/lib/commonjs/components/ItemTimaOne.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +9 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/full-submit/selfie.js +1 -1
- package/lib/commonjs/screens/full-submit/selfie.js.flow +257 -114
- package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +2 -11
- package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +2 -7
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +1 -1
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/selfie/SelfieCamera.js +2 -0
- package/lib/commonjs/screens/selfie/SelfieCamera.js.flow +302 -0
- package/lib/commonjs/screens/selfie/SelfieCamera.js.map +1 -0
- package/lib/commonjs/screens/selfie/index.js +1 -1
- package/lib/commonjs/screens/selfie/index.js.flow +295 -165
- package/lib/commonjs/screens/selfie/index.js.map +1 -1
- package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js +2 -0
- package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js.flow +521 -0
- package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js.map +1 -0
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +41 -7
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/components/AlertLoan.js +1 -1
- package/lib/module/components/AlertLoan.js.map +1 -1
- package/lib/module/components/ItemTimaOne.js +1 -1
- package/lib/module/components/ItemTimaOne.js.map +1 -1
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/full-submit/selfie.js +1 -1
- package/lib/module/screens/full-submit/selfie.js.map +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.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/selfie/SelfieCamera.js +2 -0
- package/lib/module/screens/selfie/SelfieCamera.js.map +1 -0
- package/lib/module/screens/selfie/index.js +1 -1
- package/lib/module/screens/selfie/index.js.map +1 -1
- package/lib/module/screens/v3/ReviewInfoLoanBuyCar.js +2 -0
- package/lib/module/screens/v3/ReviewInfoLoanBuyCar.js.map +1 -0
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/components/AlertLoan.d.ts.map +1 -1
- package/lib/typescript/components/ItemTimaOne.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +2 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/selfie.d.ts.map +1 -1
- package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -1
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -1
- package/lib/typescript/screens/selfie/SelfieCamera.d.ts +2 -0
- package/lib/typescript/screens/selfie/SelfieCamera.d.ts.map +1 -0
- package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
- package/lib/typescript/screens/v3/ReviewInfoLoanBuyCar.d.ts +2 -0
- package/lib/typescript/screens/v3/ReviewInfoLoanBuyCar.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +32 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/AlertLoan.tsx +11 -2
- package/src/components/ItemTimaOne.tsx +3 -0
- package/src/navigation/primary-navigator.tsx +9 -0
- package/src/screens/full-submit/selfie.tsx +257 -114
- package/src/screens/home/DigitalTopupItem.tsx +2 -11
- package/src/screens/home/ItemMotoBikeLoan.tsx +2 -7
- package/src/screens/home/index.tsx +1 -1
- package/src/screens/selfie/SelfieCamera.tsx +302 -0
- package/src/screens/selfie/index.tsx +295 -165
- package/src/screens/v3/ReviewInfoLoanBuyCar.tsx +521 -0
- 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
|
}
|