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.
- package/lib/commonjs/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +56 -0
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/assets/icons/add_info_disable.svg +3 -8
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +4 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/topup.svg +16 -0
- package/lib/commonjs/assets/icons/topup_success.svg +16 -0
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +9 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +65 -0
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness/index.js +1 -1
- package/lib/commonjs/screens/liveness/index.js.flow +8 -8
- package/lib/commonjs/screens/liveness/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +3 -1
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +304 -0
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
- package/lib/commonjs/screens/loan/UpdateLoan.js +2 -0
- package/lib/commonjs/screens/loan/UpdateLoan.js.flow +773 -0
- package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -0
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +1 -1
- package/lib/commonjs/services/api/api-config.js +1 -1
- package/lib/commonjs/services/api/api-config.js.flow +2 -2
- package/lib/commonjs/services/api/api-config.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +136 -0
- 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/assets/icons/add_info_disable.svg +3 -8
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/topup.svg +16 -0
- package/lib/module/assets/icons/topup_success.svg +16 -0
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.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/liveness/index.js +1 -1
- package/lib/module/screens/liveness/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/loan/PreviewSchedulePaymentTopup.js +2 -0
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
- package/lib/module/screens/loan/UpdateLoan.js +2 -0
- package/lib/module/screens/loan/UpdateLoan.js.map +1 -0
- package/lib/module/screens/register/index.js +1 -1
- package/lib/module/services/api/api-config.js +1 -1
- package/lib/module/services/api/api-config.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/AppStore.d.ts +8 -0
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +3 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
- package/lib/typescript/navigation/primary-navigator.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/loan/PreviewSchedulePaymentTopup.d.ts +2 -0
- package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -0
- package/lib/typescript/screens/loan/UpdateLoan.d.ts +2 -0
- package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +128 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AppStore.tsx +56 -0
- package/src/assets/icons/add_info_disable.svg +3 -8
- package/src/assets/icons/index.tsx +4 -0
- package/src/assets/icons/topup.svg +16 -0
- package/src/assets/icons/topup_success.svg +16 -0
- package/src/navigation/primary-navigator.tsx +9 -0
- package/src/screens/home/index.tsx +65 -0
- package/src/screens/liveness/index.tsx +8 -8
- package/src/screens/liveness-v2/index.tsx +3 -1
- package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +304 -0
- package/src/screens/loan/UpdateLoan.tsx +773 -0
- package/src/screens/register/index.tsx +1 -1
- package/src/services/api/api-config.ts +2 -2
- 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
|
}
|