react-native-timacare 3.3.48 → 3.3.50
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/ShowQrCode.js +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +7 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.flow +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.map +1 -1
- package/lib/commonjs/screens/home/Frame1000013403.png +0 -0
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +209 -1
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +20 -0
- package/lib/commonjs/services/api/api.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/detail-loan-tima/InforLoan.js +1 -1
- package/lib/module/screens/detail-loan-tima/InforLoan.js.map +1 -1
- package/lib/module/screens/home/Frame1000013403.png +0 -0
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/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/services/api/api.d.ts +16 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/detail-loan/ShowQrCode.tsx +7 -1
- package/src/screens/detail-loan-tima/InforLoan.tsx +1 -1
- package/src/screens/home/Frame1000013403.png +0 -0
- package/src/screens/home/index.tsx +209 -1
- package/src/services/api/api.ts +20 -0
|
@@ -4114,6 +4114,26 @@ export class Api {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
}
|
|
4116
4116
|
|
|
4117
|
+
// Xác nhận đồng ý chia sẻ dữ liệu sang CIMB (popup isShowPopupTCCIMB)
|
|
4118
|
+
async confirmTCCIMB(body) {
|
|
4119
|
+
// make the api call
|
|
4120
|
+
const response: ApiResponse<any> = await this.apisauce.post(
|
|
4121
|
+
`api/v2.0/loanbrief/confirm_tc_cimb`,
|
|
4122
|
+
body
|
|
4123
|
+
);
|
|
4124
|
+
// the typical ways to die when calling an api
|
|
4125
|
+
if (!response.ok) {
|
|
4126
|
+
const problem = getGeneralApiProblem(response);
|
|
4127
|
+
if (problem) return problem;
|
|
4128
|
+
}
|
|
4129
|
+
// transform the data into the format we are expecting
|
|
4130
|
+
try {
|
|
4131
|
+
return { kind: 'ok', data: response.data };
|
|
4132
|
+
} catch {
|
|
4133
|
+
return { kind: 'bad-data' };
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4117
4137
|
async confirmF88(body) {
|
|
4118
4138
|
// make the api call
|
|
4119
4139
|
const response: ApiResponse<any> = await this.apisauce.post(
|