react-native-timacare 3.3.20 → 3.3.22

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 (116) hide show
  1. package/lib/commonjs/assets/tts/f88.png +0 -0
  2. package/lib/commonjs/assets/v3/11.svg +13 -0
  3. package/lib/commonjs/assets/v3/12.svg +21 -0
  4. package/lib/commonjs/assets/v3/index.js +1 -1
  5. package/lib/commonjs/assets/v3/index.js.flow +4 -0
  6. package/lib/commonjs/assets/v3/index.js.map +1 -1
  7. package/lib/commonjs/components/MSelect.js +1 -1
  8. package/lib/commonjs/components/MSelect.js.flow +4 -2
  9. package/lib/commonjs/components/MSelect.js.map +1 -1
  10. package/lib/commonjs/components/ModalOptionLoanDigital.js +1 -1
  11. package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +7 -15
  12. package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -1
  13. package/lib/commonjs/components/select/index.js +1 -1
  14. package/lib/commonjs/components/select/index.js.flow +4 -2
  15. package/lib/commonjs/components/select/index.js.map +1 -1
  16. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  17. package/lib/commonjs/navigation/primary-navigator.js.flow +15 -0
  18. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  19. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +2 -0
  20. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +845 -0
  21. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -0
  22. package/lib/commonjs/screens/home/index.js +1 -1
  23. package/lib/commonjs/screens/home/index.js.flow +8 -3
  24. package/lib/commonjs/screens/home/index.js.map +1 -1
  25. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +2 -0
  26. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +674 -0
  27. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -0
  28. package/lib/commonjs/screens/motobike/PolicyF88.js +2 -0
  29. package/lib/commonjs/screens/motobike/PolicyF88.js.flow +131 -0
  30. package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -0
  31. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +2 -0
  32. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +453 -0
  33. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -0
  34. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  35. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +4 -0
  36. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  37. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  38. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +28 -12
  39. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  40. package/lib/commonjs/services/api/api.js +1 -1
  41. package/lib/commonjs/services/api/api.js.flow +80 -0
  42. package/lib/commonjs/services/api/api.js.map +1 -1
  43. package/lib/module/assets/tts/f88.png +0 -0
  44. package/lib/module/assets/v3/11.svg +13 -0
  45. package/lib/module/assets/v3/12.svg +21 -0
  46. package/lib/module/assets/v3/index.js +1 -1
  47. package/lib/module/assets/v3/index.js.map +1 -1
  48. package/lib/module/components/MSelect.js +1 -1
  49. package/lib/module/components/MSelect.js.map +1 -1
  50. package/lib/module/components/ModalOptionLoanDigital.js +1 -1
  51. package/lib/module/components/ModalOptionLoanDigital.js.map +1 -1
  52. package/lib/module/components/select/index.js +1 -1
  53. package/lib/module/components/select/index.js.map +1 -1
  54. package/lib/module/navigation/primary-navigator.js +1 -1
  55. package/lib/module/navigation/primary-navigator.js.map +1 -1
  56. package/lib/module/screens/home/ItemMotoBikeLoan.js +2 -0
  57. package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -0
  58. package/lib/module/screens/home/index.js +1 -1
  59. package/lib/module/screens/home/index.js.map +1 -1
  60. package/lib/module/screens/motobike/InfoLoanMotobike.js +2 -0
  61. package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -0
  62. package/lib/module/screens/motobike/PolicyF88.js +2 -0
  63. package/lib/module/screens/motobike/PolicyF88.js.map +1 -0
  64. package/lib/module/screens/motobike/ReviewLoanMotobike.js +2 -0
  65. package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -0
  66. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  67. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  68. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  69. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  70. package/lib/module/services/api/api.js +1 -1
  71. package/lib/module/services/api/api.js.map +1 -1
  72. package/lib/typescript/assets/v3/index.d.ts +3 -1
  73. package/lib/typescript/assets/v3/index.d.ts.map +1 -1
  74. package/lib/typescript/components/MSelect.d.ts.map +1 -1
  75. package/lib/typescript/components/ModalOptionLoanDigital.d.ts.map +1 -1
  76. package/lib/typescript/components/select/index.d.ts.map +1 -1
  77. package/lib/typescript/navigation/primary-navigator.d.ts +3 -0
  78. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  79. package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts +8 -0
  80. package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -0
  81. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  82. package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts +2 -0
  83. package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -0
  84. package/lib/typescript/screens/motobike/PolicyF88.d.ts +2 -0
  85. package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -0
  86. package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts +2 -0
  87. package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -0
  88. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  89. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
  90. package/lib/typescript/services/api/api.d.ts +80 -0
  91. package/lib/typescript/services/api/api.d.ts.map +1 -1
  92. package/package.json +1 -1
  93. package/src/assets/tts/f88.png +0 -0
  94. package/src/assets/v3/11.svg +13 -0
  95. package/src/assets/v3/12.svg +21 -0
  96. package/src/assets/v3/index.tsx +4 -0
  97. package/src/components/MSelect.tsx +4 -2
  98. package/src/components/ModalOptionLoanDigital.tsx +7 -15
  99. package/src/components/select/index.tsx +4 -2
  100. package/src/navigation/primary-navigator.tsx +15 -0
  101. package/src/screens/home/ItemMotoBikeLoan.tsx +845 -0
  102. package/src/screens/home/index.tsx +8 -3
  103. package/src/screens/motobike/InfoLoanMotobike.tsx +674 -0
  104. package/src/screens/motobike/PolicyF88.tsx +131 -0
  105. package/src/screens/motobike/ReviewLoanMotobike.tsx +453 -0
  106. package/src/screens/toan-trinh-so/TTSSelfie.tsx +4 -0
  107. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +28 -12
  108. package/src/services/api/api.ts +80 -0
  109. package/lib/commonjs/components/CommonSelect.js +0 -2
  110. package/lib/commonjs/components/CommonSelect.js.flow +0 -12
  111. package/lib/commonjs/components/CommonSelect.js.map +0 -1
  112. package/lib/module/components/CommonSelect.js +0 -2
  113. package/lib/module/components/CommonSelect.js.map +0 -1
  114. package/lib/typescript/components/CommonSelect.d.ts +0 -8
  115. package/lib/typescript/components/CommonSelect.d.ts.map +0 -1
  116. package/src/components/CommonSelect.tsx +0 -12
@@ -3343,4 +3343,84 @@ export class Api {
3343
3343
  return { kind: "bad-data" }
3344
3344
  }
3345
3345
  }
3346
+
3347
+ async getInfoMotobikeLoan(id) {
3348
+ // make the api call
3349
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_customer_motobike?loanBriefId=${id}`)
3350
+ // the typical ways to die when calling an api
3351
+ if (!response.ok) {
3352
+ const problem = getGeneralApiProblem(response)
3353
+ if (problem) return problem
3354
+ }
3355
+ // transform the data into the format we are expecting
3356
+ try {
3357
+ return { kind: "ok", data: response.data }
3358
+ } catch {
3359
+ return { kind: "bad-data" }
3360
+ }
3361
+ }
3362
+
3363
+ async getInfoMotobikeLoan2(id) {
3364
+ // make the api call
3365
+ const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autodev2/get_info_loan_motobike?loanBriefId=${id}`)
3366
+ // the typical ways to die when calling an api
3367
+ if (!response.ok) {
3368
+ const problem = getGeneralApiProblem(response)
3369
+ if (problem) return problem
3370
+ }
3371
+ // transform the data into the format we are expecting
3372
+ try {
3373
+ return { kind: "ok", data: response.data }
3374
+ } catch {
3375
+ return { kind: "bad-data" }
3376
+ }
3377
+ }
3378
+
3379
+ async updateInfoMotobikeLoan(body) {
3380
+ // make the api call
3381
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_customer_motobike`, body)
3382
+ // the typical ways to die when calling an api
3383
+ if (!response.ok) {
3384
+ const problem = getGeneralApiProblem(response)
3385
+ if (problem) return problem
3386
+ }
3387
+ // transform the data into the format we are expecting
3388
+ try {
3389
+ return { kind: "ok", data: response.data }
3390
+ } catch {
3391
+ return { kind: "bad-data" }
3392
+ }
3393
+ }
3394
+
3395
+ async updateInfoMotobikeLoan2(body) {
3396
+ // make the api call
3397
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/update_info_loan_motobike`, body)
3398
+ // the typical ways to die when calling an api
3399
+ if (!response.ok) {
3400
+ const problem = getGeneralApiProblem(response)
3401
+ if (problem) return problem
3402
+ }
3403
+ // transform the data into the format we are expecting
3404
+ try {
3405
+ return { kind: "ok", data: response.data }
3406
+ } catch {
3407
+ return { kind: "bad-data" }
3408
+ }
3409
+ }
3410
+
3411
+ async confirmF88(body) {
3412
+ // make the api call
3413
+ const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autodev2/confirm_pipeline_f88`, body)
3414
+ // the typical ways to die when calling an api
3415
+ if (!response.ok) {
3416
+ const problem = getGeneralApiProblem(response)
3417
+ if (problem) return problem
3418
+ }
3419
+ // transform the data into the format we are expecting
3420
+ try {
3421
+ return { kind: "ok", data: response.data }
3422
+ } catch {
3423
+ return { kind: "bad-data" }
3424
+ }
3425
+ }
3346
3426
  }
@@ -1,2 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=CommonSelect;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/components/CommonSelect.tsx";function CommonSelect(_ref){var title=_ref.title,data=_ref.data,callback=_ref.callback;return _react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:11,columnNumber:10}});}
2
- //# sourceMappingURL=CommonSelect.js.map
@@ -1,12 +0,0 @@
1
- //@ts-nocheck
2
- import React from 'react';
3
- import { View } from 'react-native';
4
-
5
- interface IProps {
6
- title: string;
7
- data?: any[];
8
- callback?: any;
9
- }
10
- export default function CommonSelect({ title, data, callback }: IProps) {
11
- return <View></View>;
12
- }
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxFileName","CommonSelect","_ref","title","data","callback","default","createElement","View","__self","__source","fileName","lineNumber","columnNumber"],"sourceRoot":"../../../src","sources":["components/CommonSelect.tsx"],"mappings":"yKACA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAAoC,IAAAE,YAAA,+EAOrB,QAAS,CAAAC,YAAYA,CAAAC,IAAA,CAAoC,IAAjC,CAAAC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAEC,IAAI,CAAAF,IAAA,CAAJE,IAAI,CAAEC,QAAQ,CAAAH,IAAA,CAARG,QAAQ,CAC1D,MAAO,CAAAT,MAAA,CAAAU,OAAA,CAAAC,aAAA,CAACR,YAAA,CAAAS,IAAI,EAAAC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAX,YAAA,CAAAY,UAAA,IAAAC,YAAA,KAAO,CAAC,CACtB"}
@@ -1,2 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=CommonSelect;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/components/CommonSelect.tsx";function CommonSelect(_ref){var title=_ref.title,data=_ref.data,callback=_ref.callback;return _react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:11,columnNumber:10}});}
2
- //# sourceMappingURL=CommonSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxFileName","CommonSelect","_ref","title","data","callback","default","createElement","View","__self","__source","fileName","lineNumber","columnNumber"],"sourceRoot":"../../../src","sources":["components/CommonSelect.tsx"],"mappings":"yKACA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAAoC,IAAAE,YAAA,+EAOrB,QAAS,CAAAC,YAAYA,CAAAC,IAAA,CAAoC,IAAjC,CAAAC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAEC,IAAI,CAAAF,IAAA,CAAJE,IAAI,CAAEC,QAAQ,CAAAH,IAAA,CAARG,QAAQ,CAC1D,MAAO,CAAAT,MAAA,CAAAU,OAAA,CAAAC,aAAA,CAACR,YAAA,CAAAS,IAAI,EAAAC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAX,YAAA,CAAAY,UAAA,IAAAC,YAAA,KAAO,CAAC,CACtB"}
@@ -1,8 +0,0 @@
1
- interface IProps {
2
- title: string;
3
- data?: any[];
4
- callback?: any;
5
- }
6
- export default function CommonSelect({ title, data, callback }: IProps): JSX.Element;
7
- export {};
8
- //# sourceMappingURL=CommonSelect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonSelect.d.ts","sourceRoot":"","sources":["../../../src/components/CommonSelect.tsx"],"names":[],"mappings":"AAIA,UAAU,MAAM;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,MAAM,eAErE"}
@@ -1,12 +0,0 @@
1
- //@ts-nocheck
2
- import React from 'react';
3
- import { View } from 'react-native';
4
-
5
- interface IProps {
6
- title: string;
7
- data?: any[];
8
- callback?: any;
9
- }
10
- export default function CommonSelect({ title, data, callback }: IProps) {
11
- return <View></View>;
12
- }