react-native-timacare 3.0.9 → 3.0.11-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.
Files changed (88) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +56 -0
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/assets/icons/add_info_disable.svg +3 -8
  5. package/lib/commonjs/assets/icons/index.js +1 -1
  6. package/lib/commonjs/assets/icons/index.js.flow +4 -0
  7. package/lib/commonjs/assets/icons/index.js.map +1 -1
  8. package/lib/commonjs/assets/icons/topup.svg +16 -0
  9. package/lib/commonjs/assets/icons/topup_success.svg +16 -0
  10. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  11. package/lib/commonjs/navigation/primary-navigator.js.flow +9 -0
  12. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  13. package/lib/commonjs/screens/home/index.js +1 -1
  14. package/lib/commonjs/screens/home/index.js.flow +65 -0
  15. package/lib/commonjs/screens/home/index.js.map +1 -1
  16. package/lib/commonjs/screens/liveness/index.js +1 -1
  17. package/lib/commonjs/screens/liveness/index.js.flow +8 -8
  18. package/lib/commonjs/screens/liveness/index.js.map +1 -1
  19. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  20. package/lib/commonjs/screens/liveness-v2/index.js.flow +3 -1
  21. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  22. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
  23. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +304 -0
  24. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
  25. package/lib/commonjs/screens/loan/UpdateLoan.js +2 -0
  26. package/lib/commonjs/screens/loan/UpdateLoan.js.flow +773 -0
  27. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -0
  28. package/lib/commonjs/screens/register/index.js +1 -1
  29. package/lib/commonjs/screens/register/index.js.flow +1 -1
  30. package/lib/commonjs/services/api/api-config.js +1 -1
  31. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  32. package/lib/commonjs/services/api/api-config.js.map +1 -1
  33. package/lib/commonjs/services/api/api.js +1 -1
  34. package/lib/commonjs/services/api/api.js.flow +136 -0
  35. package/lib/commonjs/services/api/api.js.map +1 -1
  36. package/lib/module/AppStore.js +1 -1
  37. package/lib/module/AppStore.js.map +1 -1
  38. package/lib/module/assets/icons/add_info_disable.svg +3 -8
  39. package/lib/module/assets/icons/index.js +1 -1
  40. package/lib/module/assets/icons/index.js.map +1 -1
  41. package/lib/module/assets/icons/topup.svg +16 -0
  42. package/lib/module/assets/icons/topup_success.svg +16 -0
  43. package/lib/module/navigation/primary-navigator.js +1 -1
  44. package/lib/module/navigation/primary-navigator.js.map +1 -1
  45. package/lib/module/screens/home/index.js +1 -1
  46. package/lib/module/screens/home/index.js.map +1 -1
  47. package/lib/module/screens/liveness/index.js +1 -1
  48. package/lib/module/screens/liveness/index.js.map +1 -1
  49. package/lib/module/screens/liveness-v2/index.js +1 -1
  50. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  51. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
  52. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
  53. package/lib/module/screens/loan/UpdateLoan.js +2 -0
  54. package/lib/module/screens/loan/UpdateLoan.js.map +1 -0
  55. package/lib/module/screens/register/index.js +1 -1
  56. package/lib/module/services/api/api-config.js +1 -1
  57. package/lib/module/services/api/api-config.js.map +1 -1
  58. package/lib/module/services/api/api.js +1 -1
  59. package/lib/module/services/api/api.js.map +1 -1
  60. package/lib/typescript/AppStore.d.ts +8 -0
  61. package/lib/typescript/AppStore.d.ts.map +1 -1
  62. package/lib/typescript/assets/icons/index.d.ts +3 -1
  63. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  64. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  65. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  66. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  67. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  68. package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts +2 -0
  69. package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -0
  70. package/lib/typescript/screens/loan/UpdateLoan.d.ts +2 -0
  71. package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -0
  72. package/lib/typescript/services/api/api.d.ts +128 -0
  73. package/lib/typescript/services/api/api.d.ts.map +1 -1
  74. package/package.json +1 -1
  75. package/src/AppStore.tsx +56 -0
  76. package/src/assets/icons/add_info_disable.svg +3 -8
  77. package/src/assets/icons/index.tsx +4 -0
  78. package/src/assets/icons/topup.svg +16 -0
  79. package/src/assets/icons/topup_success.svg +16 -0
  80. package/src/navigation/primary-navigator.tsx +9 -0
  81. package/src/screens/home/index.tsx +65 -0
  82. package/src/screens/liveness/index.tsx +8 -8
  83. package/src/screens/liveness-v2/index.tsx +3 -1
  84. package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +304 -0
  85. package/src/screens/loan/UpdateLoan.tsx +773 -0
  86. package/src/screens/register/index.tsx +1 -1
  87. package/src/services/api/api-config.ts +2 -2
  88. package/src/services/api/api.ts +136 -0
@@ -2491,4 +2491,140 @@ export class Api {
2491
2491
  }
2492
2492
  }
2493
2493
 
2494
+
2495
+ async getInfoUpdateTopup(id) {
2496
+ // make the api call
2497
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/loanbrief/get_info_update_topup?id=${id}`)
2498
+ myLog(response)
2499
+ // the typical ways to die when calling an api
2500
+ if (!response.ok) {
2501
+ const problem = getGeneralApiProblem(response)
2502
+ if (problem) return problem
2503
+ }
2504
+ // transform the data into the format we are expecting
2505
+ try {
2506
+ return { kind: "ok", data: response.data }
2507
+ } catch {
2508
+ return { kind: "bad-data" }
2509
+ }
2510
+ }
2511
+
2512
+ async getLoanTimeAll() {
2513
+ // make the api call
2514
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_loan_time_all`)
2515
+ myLog(response)
2516
+ // the typical ways to die when calling an api
2517
+ if (!response.ok) {
2518
+ const problem = getGeneralApiProblem(response)
2519
+ if (problem) return problem
2520
+ }
2521
+ // transform the data into the format we are expecting
2522
+ try {
2523
+ return { kind: "ok", data: response.data }
2524
+ } catch {
2525
+ return { kind: "bad-data" }
2526
+ }
2527
+ }
2528
+
2529
+ async getRateTypeAll() {
2530
+ // make the api call
2531
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_rate_type_all`)
2532
+ myLog(response)
2533
+ // the typical ways to die when calling an api
2534
+ if (!response.ok) {
2535
+ const problem = getGeneralApiProblem(response)
2536
+ if (problem) return problem
2537
+ }
2538
+ // transform the data into the format we are expecting
2539
+ try {
2540
+ return { kind: "ok", data: response.data }
2541
+ } catch {
2542
+ return { kind: "bad-data" }
2543
+ }
2544
+ }
2545
+
2546
+ async getInsurenceTimeAll() {
2547
+ // make the api call
2548
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_insurence_time_all`)
2549
+ myLog(response)
2550
+ // the typical ways to die when calling an api
2551
+ if (!response.ok) {
2552
+ const problem = getGeneralApiProblem(response)
2553
+ if (problem) return problem
2554
+ }
2555
+ // transform the data into the format we are expecting
2556
+ try {
2557
+ return { kind: "ok", data: response.data }
2558
+ } catch {
2559
+ return { kind: "bad-data" }
2560
+ }
2561
+ }
2562
+
2563
+ async getFirstDayPayment(id, type) {
2564
+ // make the api call
2565
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/loanbrief/get_first_payment_date?id=${id}&typeLoan=${type}`)
2566
+ myLog(response)
2567
+ // the typical ways to die when calling an api
2568
+ if (!response.ok) {
2569
+ const problem = getGeneralApiProblem(response)
2570
+ if (problem) return problem
2571
+ }
2572
+ // transform the data into the format we are expecting
2573
+ try {
2574
+ return { kind: "ok", data: response.data }
2575
+ } catch {
2576
+ return { kind: "bad-data" }
2577
+ }
2578
+ }
2579
+
2580
+ async getInfoInsurence(id, loanAmount, loanTime, rateTypeId, timeInsurenceCustomer, timeInsuranceProperty) {
2581
+ // make the api call
2582
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/loanbrief/reget_info_insurence?id=${id}&loanAmount=${loanAmount}&loanTime=${loanTime}&rateTypeId=${rateTypeId}&timeInsurenceCustomer=${timeInsurenceCustomer}&timeInsuranceProperty=${timeInsuranceProperty}`)
2583
+ myLog(response)
2584
+ // the typical ways to die when calling an api
2585
+ if (!response.ok) {
2586
+ const problem = getGeneralApiProblem(response)
2587
+ if (problem) return problem
2588
+ }
2589
+ // transform the data into the format we are expecting
2590
+ try {
2591
+ return { kind: "ok", data: response.data }
2592
+ } catch {
2593
+ return { kind: "bad-data" }
2594
+ }
2595
+ }
2596
+
2597
+ async updateInfoTopup(body) {
2598
+ // make the api call
2599
+ const response: ApiResponse<any> = await this.apisauce.post("api/v2.0/loanbrief/update_info_topup", body)
2600
+ myLog(response)
2601
+ // the typical ways to die when calling an api
2602
+ if (!response.ok) {
2603
+ const problem = getGeneralApiProblem(response)
2604
+ if (problem) return problem
2605
+ }
2606
+ // transform the data into the format we are expecting
2607
+ try {
2608
+ return { kind: "ok", data: response.data }
2609
+ } catch {
2610
+ return { kind: "bad-data" }
2611
+ }
2612
+ }
2613
+
2614
+ async getPlanPaymentV2(id) {
2615
+ // make the api call
2616
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/loanbrief/payment_plan_tima_v2?id=${id}`)
2617
+ myLog(response)
2618
+ // the typical ways to die when calling an api
2619
+ if (!response.ok) {
2620
+ const problem = getGeneralApiProblem(response)
2621
+ if (problem) return problem
2622
+ }
2623
+ // transform the data into the format we are expecting
2624
+ try {
2625
+ return { kind: "ok", data: response.data }
2626
+ } catch {
2627
+ return { kind: "bad-data" }
2628
+ }
2629
+ }
2494
2630
  }