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.
Files changed (34) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +1 -1
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/components/AlertLoan.js +1 -1
  5. package/lib/commonjs/components/AlertLoan.js.flow +1 -1
  6. package/lib/commonjs/components/AlertLoan.js.map +1 -1
  7. package/lib/commonjs/components/ItemTimaOneV3.js +1 -1
  8. package/lib/commonjs/components/ItemTimaOneV3.js.flow +7 -2
  9. package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -1
  10. package/lib/commonjs/components/ModalOptionLoan.js +1 -1
  11. package/lib/commonjs/components/ModalOptionLoan.js.flow +1 -1
  12. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
  13. package/lib/commonjs/services/api/api.js +1 -1
  14. package/lib/commonjs/services/api/api.js.flow +18 -1
  15. package/lib/commonjs/services/api/api.js.map +1 -1
  16. package/lib/module/AppStore.js +1 -1
  17. package/lib/module/AppStore.js.map +1 -1
  18. package/lib/module/components/AlertLoan.js +1 -1
  19. package/lib/module/components/AlertLoan.js.map +1 -1
  20. package/lib/module/components/ItemTimaOneV3.js +1 -1
  21. package/lib/module/components/ItemTimaOneV3.js.map +1 -1
  22. package/lib/module/components/ModalOptionLoan.js +1 -1
  23. package/lib/module/components/ModalOptionLoan.js.map +1 -1
  24. package/lib/module/services/api/api.js +1 -1
  25. package/lib/module/services/api/api.js.map +1 -1
  26. package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -1
  27. package/lib/typescript/services/api/api.d.ts +16 -0
  28. package/lib/typescript/services/api/api.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/AppStore.tsx +1 -1
  31. package/src/components/AlertLoan.tsx +1 -1
  32. package/src/components/ItemTimaOneV3.tsx +7 -2
  33. package/src/components/ModalOptionLoan.tsx +1 -1
  34. 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/v1.0/landingpage/get_loan_time_timaone?rateTypeId=${rateTypeId}&typeLoan=${typeLoan}`)
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)