react-native-timacare 3.3.4 → 3.3.6
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 +1 -1
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/components/AlertLoan.js +1 -1
- package/lib/commonjs/components/AlertLoan.js.flow +1 -1
- package/lib/commonjs/components/AlertLoan.js.map +1 -1
- package/lib/commonjs/components/ItemTimaOneV3.js +1 -1
- package/lib/commonjs/components/ItemTimaOneV3.js.flow +7 -2
- package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js.flow +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +18 -1
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.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/ItemTimaOneV3.js +1 -1
- package/lib/module/components/ItemTimaOneV3.js.map +1 -1
- package/lib/module/components/ModalOptionLoan.js +1 -1
- package/lib/module/components/ModalOptionLoan.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/components/ItemTimaOneV3.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/AppStore.tsx +1 -1
- package/src/components/AlertLoan.tsx +1 -1
- package/src/components/ItemTimaOneV3.tsx +7 -2
- package/src/components/ModalOptionLoan.tsx +1 -1
- package/src/services/api/api.ts +18 -1
|
@@ -2551,6 +2551,23 @@ export class Api {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
|
+
async getRateTypeAllNew() {
|
|
2555
|
+
// make the api call
|
|
2556
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_rate_type`)
|
|
2557
|
+
myLog(response)
|
|
2558
|
+
// the typical ways to die when calling an api
|
|
2559
|
+
if (!response.ok) {
|
|
2560
|
+
const problem = getGeneralApiProblem(response)
|
|
2561
|
+
if (problem) return problem
|
|
2562
|
+
}
|
|
2563
|
+
// transform the data into the format we are expecting
|
|
2564
|
+
try {
|
|
2565
|
+
return { kind: "ok", data: response.data }
|
|
2566
|
+
} catch {
|
|
2567
|
+
return { kind: "bad-data" }
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2554
2571
|
async getInsurenceTimeAll() {
|
|
2555
2572
|
// make the api call
|
|
2556
2573
|
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_insurence_time_all`)
|
|
@@ -3052,7 +3069,7 @@ export class Api {
|
|
|
3052
3069
|
|
|
3053
3070
|
async getLoanTimeByType(rateTypeId, typeLoan) {
|
|
3054
3071
|
// make the api call
|
|
3055
|
-
const response: ApiResponse<any> = await this.apisauce.get(`api/
|
|
3072
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_loan_time?rateTypeId=${rateTypeId}`)
|
|
3056
3073
|
// the typical ways to die when calling an api
|
|
3057
3074
|
if (!response.ok) {
|
|
3058
3075
|
const problem = getGeneralApiProblem(response)
|