react-native-timacare 3.1.14-beta → 3.1.16-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/edit_disable.svg +15 -0
- package/lib/commonjs/assets/svgs/edit_success.svg +9 -6
- package/lib/commonjs/assets/svgs/ekyc_success.svg +6 -3
- package/lib/commonjs/assets/svgs/index.js +1 -1
- package/lib/commonjs/assets/svgs/index.js.flow +2 -0
- package/lib/commonjs/assets/svgs/index.js.map +1 -1
- package/lib/commonjs/assets/svgs/orc_success.svg +16 -11
- package/lib/commonjs/assets/svgs/sign_success.svg +8 -5
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +239 -32
- 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 +9 -1
- package/lib/commonjs/screens/liveness-v2/index.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 +3 -4
- 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 +3 -3
- 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 +3 -0
- 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 +10 -6
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.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/assets/svgs/edit_disable.svg +15 -0
- package/lib/module/assets/svgs/edit_success.svg +9 -6
- package/lib/module/assets/svgs/ekyc_success.svg +6 -3
- package/lib/module/assets/svgs/index.js +1 -1
- package/lib/module/assets/svgs/index.js.map +1 -1
- package/lib/module/assets/svgs/orc_success.svg +16 -11
- package/lib/module/assets/svgs/sign_success.svg +8 -5
- 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/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/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/assets/svgs/index.d.ts +2 -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/ReviewInformationOther.d.ts.map +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/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/assets/svgs/edit_disable.svg +15 -0
- package/src/assets/svgs/edit_success.svg +9 -6
- package/src/assets/svgs/ekyc_success.svg +6 -3
- package/src/assets/svgs/index.tsx +2 -0
- package/src/assets/svgs/orc_success.svg +16 -11
- package/src/assets/svgs/sign_success.svg +8 -5
- package/src/screens/home/index.tsx +239 -32
- package/src/screens/liveness-v2/index.tsx +9 -1
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +3 -4
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +3 -3
- package/src/screens/toan-trinh-so/TTSOTP.tsx +3 -0
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +10 -6
- package/src/services/api/api.ts +16 -0
|
@@ -2914,4 +2914,20 @@ export class Api {
|
|
|
2914
2914
|
return { kind: "bad-data" }
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
2917
|
+
|
|
2918
|
+
async verifySign(body) {
|
|
2919
|
+
// make the api call
|
|
2920
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/transactions_secured`, body)
|
|
2921
|
+
// the typical ways to die when calling an api
|
|
2922
|
+
if (!response.ok) {
|
|
2923
|
+
const problem = getGeneralApiProblem(response)
|
|
2924
|
+
if (problem) return problem
|
|
2925
|
+
}
|
|
2926
|
+
// transform the data into the format we are expecting
|
|
2927
|
+
try {
|
|
2928
|
+
return { kind: "ok", data: response.data }
|
|
2929
|
+
} catch {
|
|
2930
|
+
return { kind: "bad-data" }
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2917
2933
|
}
|