react-native-timacare 3.1.39 → 3.1.41
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/liveness/LivenessStore.js +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js.flow +18 -0
- package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/commonjs/screens/nationalID/index.js +1 -1
- package/lib/commonjs/screens/nationalID/index.js.flow +33 -9
- package/lib/commonjs/screens/nationalID/index.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js.flow +33 -9
- package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.flow +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/commonjs/services/api/api-config.js +1 -1
- package/lib/commonjs/services/api/api-config.js.flow +2 -2
- package/lib/commonjs/services/api/api-config.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +16 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/screens/liveness/LivenessStore.js +1 -1
- package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/module/screens/nationalID/index.js +1 -1
- package/lib/module/screens/nationalID/index.js.map +1 -1
- package/lib/module/screens/nationalIDBack/index.js +1 -1
- package/lib/module/screens/nationalIDBack/index.js.map +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/module/services/api/api-config.js +1 -1
- package/lib/module/services/api/api-config.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/liveness/LivenessStore.d.ts +1 -0
- package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
- package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
- package/lib/typescript/screens/nationalIDBack/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/liveness/LivenessStore.tsx +18 -0
- package/src/screens/nationalID/index.tsx +33 -9
- package/src/screens/nationalIDBack/index.tsx +33 -9
- package/src/screens/schedule-payment/DigitalSchedulePayment.tsx +1 -1
- package/src/services/api/api-config.ts +2 -2
- package/src/services/api/api.ts +16 -0
|
@@ -2463,6 +2463,22 @@ export class Api {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
2465
|
|
|
2466
|
+
async getConfigOcr() {
|
|
2467
|
+
// make the api call
|
|
2468
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/timacare/get_config_ocr_image`)
|
|
2469
|
+
// the typical ways to die when calling an api
|
|
2470
|
+
if (!response.ok) {
|
|
2471
|
+
const problem = getGeneralApiProblem(response)
|
|
2472
|
+
if (problem) return problem
|
|
2473
|
+
}
|
|
2474
|
+
// transform the data into the format we are expecting
|
|
2475
|
+
try {
|
|
2476
|
+
return { kind: "ok", data: response.data }
|
|
2477
|
+
} catch {
|
|
2478
|
+
return { kind: "bad-data" }
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2466
2482
|
async previewContract(loanId) {
|
|
2467
2483
|
// make the api call
|
|
2468
2484
|
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/esign/view_esign_contract?loanBriefId=${loanId}`)
|