react-native-timacare 3.1.65 → 3.1.67
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/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +4 -2
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/assets/v3/home.svg +5 -0
- package/lib/commonjs/assets/v3/index.js +2 -0
- package/lib/commonjs/assets/v3/index.js.flow +38 -0
- package/lib/commonjs/assets/v3/index.js.map +1 -0
- package/lib/commonjs/assets/v3/option1.svg +27 -0
- package/lib/commonjs/assets/v3/option2.svg +25 -0
- package/lib/commonjs/assets/v3/step1-success.svg +39 -0
- package/lib/commonjs/assets/v3/step1.svg +90 -0
- package/lib/commonjs/assets/v3/step2-disable.svg +14 -0
- package/lib/commonjs/assets/v3/step2-success.svg +8 -0
- package/lib/commonjs/assets/v3/step2.svg +37 -0
- package/lib/commonjs/assets/v3/step3-disable.svg +17 -0
- package/lib/commonjs/assets/v3/step3-success.svg +17 -0
- package/lib/commonjs/assets/v3/step3.svg +45 -0
- package/lib/commonjs/assets/v3/step4-disable.svg +11 -0
- package/lib/commonjs/assets/v3/step4-success.svg +11 -0
- package/lib/commonjs/assets/v3/step4.svg +29 -0
- package/lib/commonjs/assets/v3/step5-disable.svg +17 -0
- package/lib/commonjs/assets/v3/step5-success.svg +17 -0
- package/lib/commonjs/assets/v3/step5.svg +45 -0
- package/lib/commonjs/components/ItemTimaOneV2.js +2 -0
- package/lib/commonjs/components/ItemTimaOneV2.js.flow +617 -0
- package/lib/commonjs/components/ItemTimaOneV2.js.map +1 -0
- package/lib/commonjs/components/ItemTimaOneV3.js +2 -0
- package/lib/commonjs/components/ItemTimaOneV3.js.flow +558 -0
- package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -0
- package/lib/commonjs/components/MText.js +1 -1
- package/lib/commonjs/components/MText.js.flow +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js +2 -0
- package/lib/commonjs/components/ModalOptionLoan.js.flow +242 -0
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -0
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +12 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/eSign/index.js +1 -1
- package/lib/commonjs/screens/eSign/index.js.flow +53 -41
- package/lib/commonjs/screens/eSign/index.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +64 -625
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/mySignViettel/Layer_3.png +0 -0
- package/lib/commonjs/screens/mySignViettel/index.js +2 -0
- package/lib/commonjs/screens/mySignViettel/index.js.flow +278 -0
- package/lib/commonjs/screens/mySignViettel/index.js.map +1 -0
- package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +57 -43
- package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +9 -2
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +110 -7
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.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 +9 -8
- 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 +43 -169
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +17 -14
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.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 +71 -12
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +133 -43
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +2 -2
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js +2 -0
- package/lib/commonjs/screens/v3/AssetInformation.js.flow +690 -0
- package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -0
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +196 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/index.js.flow +2 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/assets/v3/home.svg +5 -0
- package/lib/module/assets/v3/index.js +2 -0
- package/lib/module/assets/v3/index.js.map +1 -0
- package/lib/module/assets/v3/option1.svg +27 -0
- package/lib/module/assets/v3/option2.svg +25 -0
- package/lib/module/assets/v3/step1-success.svg +39 -0
- package/lib/module/assets/v3/step1.svg +90 -0
- package/lib/module/assets/v3/step2-disable.svg +14 -0
- package/lib/module/assets/v3/step2-success.svg +8 -0
- package/lib/module/assets/v3/step2.svg +37 -0
- package/lib/module/assets/v3/step3-disable.svg +17 -0
- package/lib/module/assets/v3/step3-success.svg +17 -0
- package/lib/module/assets/v3/step3.svg +45 -0
- package/lib/module/assets/v3/step4-disable.svg +11 -0
- package/lib/module/assets/v3/step4-success.svg +11 -0
- package/lib/module/assets/v3/step4.svg +29 -0
- package/lib/module/assets/v3/step5-disable.svg +17 -0
- package/lib/module/assets/v3/step5-success.svg +17 -0
- package/lib/module/assets/v3/step5.svg +45 -0
- package/lib/module/components/ItemTimaOneV2.js +2 -0
- package/lib/module/components/ItemTimaOneV2.js.map +1 -0
- package/lib/module/components/ItemTimaOneV3.js +2 -0
- package/lib/module/components/ItemTimaOneV3.js.map +1 -0
- package/lib/module/components/MText.js +1 -1
- package/lib/module/components/ModalOptionLoan.js +2 -0
- package/lib/module/components/ModalOptionLoan.js.map +1 -0
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/eSign/index.js +1 -1
- package/lib/module/screens/eSign/index.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/mySignViettel/Layer_3.png +0 -0
- package/lib/module/screens/mySignViettel/index.js +2 -0
- package/lib/module/screens/mySignViettel/index.js.map +1 -0
- package/lib/module/screens/sign-tima/ViewContract.js +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.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/TTSNationalIDBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.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/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/screens/v3/AssetInformation.js +2 -0
- package/lib/module/screens/v3/AssetInformation.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/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/AppStore.d.ts +2 -2
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/assets/v3/index.d.ts +19 -0
- package/lib/typescript/assets/v3/index.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOneV2.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOneV2.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOneV3.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts +8 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -0
- 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/eSign/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/mySignViettel/index.d.ts +2 -0
- package/lib/typescript/screens/mySignViettel/index.d.ts.map +1 -0
- package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.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/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/v3/AssetInformation.d.ts +2 -0
- package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +192 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AppStore.tsx +4 -2
- package/src/assets/v3/home.svg +5 -0
- package/src/assets/v3/index.tsx +38 -0
- package/src/assets/v3/option1.svg +27 -0
- package/src/assets/v3/option2.svg +25 -0
- package/src/assets/v3/step1-success.svg +39 -0
- package/src/assets/v3/step1.svg +90 -0
- package/src/assets/v3/step2-disable.svg +14 -0
- package/src/assets/v3/step2-success.svg +8 -0
- package/src/assets/v3/step2.svg +37 -0
- package/src/assets/v3/step3-disable.svg +17 -0
- package/src/assets/v3/step3-success.svg +17 -0
- package/src/assets/v3/step3.svg +45 -0
- package/src/assets/v3/step4-disable.svg +11 -0
- package/src/assets/v3/step4-success.svg +11 -0
- package/src/assets/v3/step4.svg +29 -0
- package/src/assets/v3/step5-disable.svg +17 -0
- package/src/assets/v3/step5-success.svg +17 -0
- package/src/assets/v3/step5.svg +45 -0
- package/src/components/ItemTimaOneV2.tsx +617 -0
- package/src/components/ItemTimaOneV3.tsx +558 -0
- package/src/components/MText.tsx +1 -1
- package/src/components/ModalOptionLoan.tsx +242 -0
- package/src/navigation/primary-navigator.tsx +12 -0
- package/src/screens/eSign/index.tsx +53 -41
- package/src/screens/home/index.tsx +64 -625
- package/src/screens/mySignViettel/Layer_3.png +0 -0
- package/src/screens/mySignViettel/index.tsx +278 -0
- package/src/screens/sign-tima/ViewContract.tsx +57 -43
- package/src/screens/toan-trinh-so/OCR.tsx +1 -1
- package/src/screens/toan-trinh-so/RegisterBack.tsx +9 -2
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +110 -7
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +9 -8
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +43 -169
- package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +1 -1
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +1 -1
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +17 -14
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +71 -12
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +133 -43
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +1 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +1 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +1 -1
- package/src/screens/toan-trinh-so/store.ts +2 -2
- package/src/screens/v3/AssetInformation.tsx +690 -0
- package/src/services/api/api.ts +196 -0
- package/src/utils/index.tsx +2 -0
|
@@ -2715,6 +2715,23 @@ export class Api {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
2717
|
|
|
2718
|
+
// Lấy thông tin khách hàng (luồng mới)
|
|
2719
|
+
async getInfoCustomerV2(id) {
|
|
2720
|
+
// make the api call
|
|
2721
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_customer?loanBriefId=${id}`)
|
|
2722
|
+
// the typical ways to die when calling an api
|
|
2723
|
+
if (!response.ok) {
|
|
2724
|
+
const problem = getGeneralApiProblem(response)
|
|
2725
|
+
if (problem) return problem
|
|
2726
|
+
}
|
|
2727
|
+
// transform the data into the format we are expecting
|
|
2728
|
+
try {
|
|
2729
|
+
return { kind: "ok", data: response.data }
|
|
2730
|
+
} catch {
|
|
2731
|
+
return { kind: "bad-data" }
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2718
2735
|
// API cập nhập thông tin khách hàng (luồng mới)
|
|
2719
2736
|
|
|
2720
2737
|
async updateInfoCustomer(body) {
|
|
@@ -2733,6 +2750,24 @@ export class Api {
|
|
|
2733
2750
|
}
|
|
2734
2751
|
}
|
|
2735
2752
|
|
|
2753
|
+
// API cập nhập thông tin khách hàng (luồng mới)
|
|
2754
|
+
|
|
2755
|
+
async updateInfoCustomerV2(body) {
|
|
2756
|
+
// make the api call
|
|
2757
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_customer`, body)
|
|
2758
|
+
// the typical ways to die when calling an api
|
|
2759
|
+
if (!response.ok) {
|
|
2760
|
+
const problem = getGeneralApiProblem(response)
|
|
2761
|
+
if (problem) return problem
|
|
2762
|
+
}
|
|
2763
|
+
// transform the data into the format we are expecting
|
|
2764
|
+
try {
|
|
2765
|
+
return { kind: "ok", data: response.data }
|
|
2766
|
+
} catch {
|
|
2767
|
+
return { kind: "bad-data" }
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2736
2771
|
// Lấy thông tin khoản vay (luồng mới)
|
|
2737
2772
|
async getInfoLoan(id) {
|
|
2738
2773
|
// make the api call
|
|
@@ -2831,6 +2866,22 @@ export class Api {
|
|
|
2831
2866
|
}
|
|
2832
2867
|
}
|
|
2833
2868
|
|
|
2869
|
+
async updateInfoLoanV2(body) {
|
|
2870
|
+
// make the api call
|
|
2871
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_loan`, body)
|
|
2872
|
+
// the typical ways to die when calling an api
|
|
2873
|
+
if (!response.ok) {
|
|
2874
|
+
const problem = getGeneralApiProblem(response)
|
|
2875
|
+
if (problem) return problem
|
|
2876
|
+
}
|
|
2877
|
+
// transform the data into the format we are expecting
|
|
2878
|
+
try {
|
|
2879
|
+
return { kind: "ok", data: response.data }
|
|
2880
|
+
} catch {
|
|
2881
|
+
return { kind: "bad-data" }
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2834
2885
|
// Lấy thông tin công việc (luồng mới)
|
|
2835
2886
|
async getInfoJob(id) {
|
|
2836
2887
|
// make the api call
|
|
@@ -2848,6 +2899,23 @@ export class Api {
|
|
|
2848
2899
|
}
|
|
2849
2900
|
}
|
|
2850
2901
|
|
|
2902
|
+
// Lấy thông tin công việc (luồng mới)
|
|
2903
|
+
async getInfoJobV2(id) {
|
|
2904
|
+
// make the api call
|
|
2905
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_job?loanBriefId=${id}`)
|
|
2906
|
+
// the typical ways to die when calling an api
|
|
2907
|
+
if (!response.ok) {
|
|
2908
|
+
const problem = getGeneralApiProblem(response)
|
|
2909
|
+
if (problem) return problem
|
|
2910
|
+
}
|
|
2911
|
+
// transform the data into the format we are expecting
|
|
2912
|
+
try {
|
|
2913
|
+
return { kind: "ok", data: response.data }
|
|
2914
|
+
} catch {
|
|
2915
|
+
return { kind: "bad-data" }
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2851
2919
|
async updateInfoJob(body) {
|
|
2852
2920
|
// make the api call
|
|
2853
2921
|
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_job`, body)
|
|
@@ -2864,6 +2932,22 @@ export class Api {
|
|
|
2864
2932
|
}
|
|
2865
2933
|
}
|
|
2866
2934
|
|
|
2935
|
+
async updateInfoJobV2(body) {
|
|
2936
|
+
// make the api call
|
|
2937
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_job`, body)
|
|
2938
|
+
// the typical ways to die when calling an api
|
|
2939
|
+
if (!response.ok) {
|
|
2940
|
+
const problem = getGeneralApiProblem(response)
|
|
2941
|
+
if (problem) return problem
|
|
2942
|
+
}
|
|
2943
|
+
// transform the data into the format we are expecting
|
|
2944
|
+
try {
|
|
2945
|
+
return { kind: "ok", data: response.data }
|
|
2946
|
+
} catch {
|
|
2947
|
+
return { kind: "bad-data" }
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2867
2951
|
async getRelationship() {
|
|
2868
2952
|
// make the api call
|
|
2869
2953
|
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_relative_family`)
|
|
@@ -2928,6 +3012,22 @@ export class Api {
|
|
|
2928
3012
|
}
|
|
2929
3013
|
}
|
|
2930
3014
|
|
|
3015
|
+
async getFirstPaymentTTSV2(id) {
|
|
3016
|
+
// make the api call
|
|
3017
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_first_payment_date?id=${id}`)
|
|
3018
|
+
// the typical ways to die when calling an api
|
|
3019
|
+
if (!response.ok) {
|
|
3020
|
+
const problem = getGeneralApiProblem(response)
|
|
3021
|
+
if (problem) return problem
|
|
3022
|
+
}
|
|
3023
|
+
// transform the data into the format we are expecting
|
|
3024
|
+
try {
|
|
3025
|
+
return { kind: "ok", data: response.data }
|
|
3026
|
+
} catch {
|
|
3027
|
+
return { kind: "bad-data" }
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
|
|
2931
3031
|
async verifySign(body) {
|
|
2932
3032
|
// make the api call
|
|
2933
3033
|
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/transactions_secured`, body)
|
|
@@ -3028,4 +3128,100 @@ export class Api {
|
|
|
3028
3128
|
return { kind: "bad-data" }
|
|
3029
3129
|
}
|
|
3030
3130
|
}
|
|
3131
|
+
|
|
3132
|
+
async uploadImageAutoDE(data) {
|
|
3133
|
+
// make the api call
|
|
3134
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/upload_image`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
|
|
3135
|
+
// the typical ways to die when calling an api
|
|
3136
|
+
if (!response.ok) {
|
|
3137
|
+
const problem = getGeneralApiProblem(response)
|
|
3138
|
+
if (problem) return problem
|
|
3139
|
+
}
|
|
3140
|
+
// transform the data into the format we are expecting
|
|
3141
|
+
try {
|
|
3142
|
+
return { kind: "ok", data: response.data }
|
|
3143
|
+
} catch {
|
|
3144
|
+
return { kind: "bad-data" }
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
async getAssetAutoDE(id: any) {
|
|
3149
|
+
// make the api call
|
|
3150
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_property?loanBriefId=${id}`)
|
|
3151
|
+
// the typical ways to die when calling an api
|
|
3152
|
+
if (!response.ok) {
|
|
3153
|
+
const problem = getGeneralApiProblem(response)
|
|
3154
|
+
if (problem) return problem
|
|
3155
|
+
}
|
|
3156
|
+
// transform the data into the format we are expecting
|
|
3157
|
+
try {
|
|
3158
|
+
return { kind: "ok", data: response.data }
|
|
3159
|
+
} catch {
|
|
3160
|
+
return { kind: "bad-data" }
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
async updateAssetAutoDE(body: any) {
|
|
3165
|
+
// make the api call
|
|
3166
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_property`, body)
|
|
3167
|
+
// the typical ways to die when calling an api
|
|
3168
|
+
if (!response.ok) {
|
|
3169
|
+
const problem = getGeneralApiProblem(response)
|
|
3170
|
+
if (problem) return problem
|
|
3171
|
+
}
|
|
3172
|
+
// transform the data into the format we are expecting
|
|
3173
|
+
try {
|
|
3174
|
+
return { kind: "ok", data: response.data }
|
|
3175
|
+
} catch {
|
|
3176
|
+
return { kind: "bad-data" }
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
async getInfoLoanAutoDEV2(id) {
|
|
3181
|
+
// make the api call
|
|
3182
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_loan?loanBriefId=${id}`)
|
|
3183
|
+
// the typical ways to die when calling an api
|
|
3184
|
+
if (!response.ok) {
|
|
3185
|
+
const problem = getGeneralApiProblem(response)
|
|
3186
|
+
if (problem) return problem
|
|
3187
|
+
}
|
|
3188
|
+
// transform the data into the format we are expecting
|
|
3189
|
+
try {
|
|
3190
|
+
return { kind: "ok", data: response.data }
|
|
3191
|
+
} catch {
|
|
3192
|
+
return { kind: "bad-data" }
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
async getSuggestProduct(id) {
|
|
3197
|
+
// make the api call
|
|
3198
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_product_suggerst?loanBriefId=${id}`)
|
|
3199
|
+
// the typical ways to die when calling an api
|
|
3200
|
+
if (!response.ok) {
|
|
3201
|
+
const problem = getGeneralApiProblem(response)
|
|
3202
|
+
if (problem) return problem
|
|
3203
|
+
}
|
|
3204
|
+
// transform the data into the format we are expecting
|
|
3205
|
+
try {
|
|
3206
|
+
return { kind: "ok", data: response.data }
|
|
3207
|
+
} catch {
|
|
3208
|
+
return { kind: "bad-data" }
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
async updateProductLoan(body) {
|
|
3213
|
+
// make the api call
|
|
3214
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_product`, body)
|
|
3215
|
+
// the typical ways to die when calling an api
|
|
3216
|
+
if (!response.ok) {
|
|
3217
|
+
const problem = getGeneralApiProblem(response)
|
|
3218
|
+
if (problem) return problem
|
|
3219
|
+
}
|
|
3220
|
+
// transform the data into the format we are expecting
|
|
3221
|
+
try {
|
|
3222
|
+
return { kind: "ok", data: response.data }
|
|
3223
|
+
} catch {
|
|
3224
|
+
return { kind: "bad-data" }
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3031
3227
|
}
|