react-native-mytatva-rn-sdk 1.0.0 → 1.2.0

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 (228) hide show
  1. package/android/app/build.gradle +5 -0
  2. package/android/build.gradle +5 -5
  3. package/android/gradle.properties +13 -5
  4. package/android/settings.gradle +9 -0
  5. package/android/src/main/AndroidManifest.xml +22 -1
  6. package/android/src/main/AndroidManifestNew.xml +59 -1
  7. package/android/src/main/java/com/{visitrnsdk/VisitRnSdkPackage.kt → mytatvarnsdk/MyTatvaRnSdkPackage.kt} +2 -2
  8. package/android/src/main/java/com/{visitrnsdk/VisitRnSdkViewManager.kt → mytatvarnsdk/MyTatvaRnSdkViewManager.kt} +1 -1
  9. package/lib/commonjs/BcaDeviceListSheet.js +286 -0
  10. package/lib/commonjs/BcaDeviceListSheet.js.map +1 -0
  11. package/lib/commonjs/MainWebView.js +68 -0
  12. package/lib/commonjs/MainWebView.js.map +1 -0
  13. package/lib/commonjs/ProgressWebView.js +547 -0
  14. package/lib/commonjs/ProgressWebView.js.map +1 -0
  15. package/lib/commonjs/Services.js +27 -1
  16. package/lib/commonjs/Services.js.map +1 -1
  17. package/lib/commonjs/Sheets.js +7 -0
  18. package/lib/commonjs/Sheets.js.map +1 -0
  19. package/lib/commonjs/api/auth.js +167 -0
  20. package/lib/commonjs/api/auth.js.map +1 -0
  21. package/lib/commonjs/api/base.js +224 -0
  22. package/lib/commonjs/api/base.js.map +1 -0
  23. package/lib/commonjs/api/index.js +12 -0
  24. package/lib/commonjs/api/index.js.map +1 -0
  25. package/lib/commonjs/assets/icons/achieve.svg +3 -0
  26. package/lib/commonjs/assets/icons/heart.svg +3 -0
  27. package/lib/commonjs/assets/icons/smartWatch.svg +3 -0
  28. package/lib/commonjs/constants/asyncstorage.js +29 -0
  29. package/lib/commonjs/constants/asyncstorage.js.map +1 -0
  30. package/lib/commonjs/constants/constants.js +1373 -0
  31. package/lib/commonjs/constants/constants.js.map +1 -0
  32. package/lib/commonjs/constants.js +12 -2
  33. package/lib/commonjs/constants.js.map +1 -1
  34. package/lib/commonjs/helpers/Matrics.js +49 -0
  35. package/lib/commonjs/helpers/Matrics.js.map +1 -0
  36. package/lib/commonjs/helpers/bluetoothPermissionHelper.js +114 -0
  37. package/lib/commonjs/helpers/bluetoothPermissionHelper.js.map +1 -0
  38. package/lib/commonjs/helpers/colors.js +304 -0
  39. package/lib/commonjs/helpers/colors.js.map +1 -0
  40. package/lib/commonjs/helpers/common.js +46 -0
  41. package/lib/commonjs/helpers/common.js.map +1 -0
  42. package/lib/commonjs/helpers/fonts.js +33 -0
  43. package/lib/commonjs/helpers/fonts.js.map +1 -0
  44. package/lib/commonjs/helpers/globalStyles.js +188 -0
  45. package/lib/commonjs/helpers/globalStyles.js.map +1 -0
  46. package/lib/commonjs/helpers/icons.js +16 -0
  47. package/lib/commonjs/helpers/icons.js.map +1 -0
  48. package/lib/commonjs/index.android.js +163 -414
  49. package/lib/commonjs/index.android.js.map +1 -1
  50. package/lib/commonjs/index.ios.js +138 -187
  51. package/lib/commonjs/index.ios.js.map +1 -1
  52. package/lib/commonjs/redux/Store.js +42 -0
  53. package/lib/commonjs/redux/Store.js.map +1 -0
  54. package/lib/commonjs/redux/hooks.js +8 -0
  55. package/lib/commonjs/redux/hooks.js.map +1 -0
  56. package/lib/commonjs/redux/sagas/AuthSaga.js +44 -0
  57. package/lib/commonjs/redux/sagas/AuthSaga.js.map +1 -0
  58. package/lib/commonjs/redux/sagas/index.js +15 -0
  59. package/lib/commonjs/redux/sagas/index.js.map +1 -0
  60. package/lib/commonjs/redux/slices/authSlice.js +80 -0
  61. package/lib/commonjs/redux/slices/authSlice.js.map +1 -0
  62. package/lib/commonjs/redux/slices/index.js +44 -0
  63. package/lib/commonjs/redux/slices/index.js.map +1 -0
  64. package/lib/commonjs/types/auth.js +2 -0
  65. package/lib/commonjs/types/auth.js.map +1 -0
  66. package/lib/commonjs/types/common.js +2 -0
  67. package/lib/commonjs/types/common.js.map +1 -0
  68. package/lib/commonjs/types/index.js +13 -0
  69. package/lib/commonjs/types/index.js.map +1 -0
  70. package/lib/module/BcaDeviceListSheet.js +277 -0
  71. package/lib/module/BcaDeviceListSheet.js.map +1 -0
  72. package/lib/module/MainWebView.js +61 -0
  73. package/lib/module/MainWebView.js.map +1 -0
  74. package/lib/module/ProgressWebView.js +536 -0
  75. package/lib/module/ProgressWebView.js.map +1 -0
  76. package/lib/module/Services.js +24 -0
  77. package/lib/module/Services.js.map +1 -1
  78. package/lib/module/Sheets.js +4 -0
  79. package/lib/module/Sheets.js.map +1 -0
  80. package/lib/module/api/auth.js +160 -0
  81. package/lib/module/api/auth.js.map +1 -0
  82. package/lib/module/api/base.js +212 -0
  83. package/lib/module/api/base.js.map +1 -0
  84. package/lib/module/api/index.js +5 -0
  85. package/lib/module/api/index.js.map +1 -0
  86. package/lib/module/assets/icons/achieve.svg +3 -0
  87. package/lib/module/assets/icons/heart.svg +3 -0
  88. package/lib/module/assets/icons/smartWatch.svg +3 -0
  89. package/lib/module/constants/asyncstorage.js +23 -0
  90. package/lib/module/constants/asyncstorage.js.map +1 -0
  91. package/lib/module/constants/constants.js +1367 -0
  92. package/lib/module/constants/constants.js.map +1 -0
  93. package/lib/module/constants.js +12 -2
  94. package/lib/module/constants.js.map +1 -1
  95. package/lib/module/helpers/Matrics.js +44 -0
  96. package/lib/module/helpers/Matrics.js.map +1 -0
  97. package/lib/module/helpers/bluetoothPermissionHelper.js +103 -0
  98. package/lib/module/helpers/bluetoothPermissionHelper.js.map +1 -0
  99. package/lib/module/helpers/colors.js +298 -0
  100. package/lib/module/helpers/colors.js.map +1 -0
  101. package/lib/module/helpers/common.js +34 -0
  102. package/lib/module/helpers/common.js.map +1 -0
  103. package/lib/module/helpers/fonts.js +27 -0
  104. package/lib/module/helpers/fonts.js.map +1 -0
  105. package/lib/module/helpers/globalStyles.js +181 -0
  106. package/lib/module/helpers/globalStyles.js.map +1 -0
  107. package/lib/module/helpers/icons.js +9 -0
  108. package/lib/module/helpers/icons.js.map +1 -0
  109. package/lib/module/index.android.js +165 -413
  110. package/lib/module/index.android.js.map +1 -1
  111. package/lib/module/index.ios.js +138 -187
  112. package/lib/module/index.ios.js.map +1 -1
  113. package/lib/module/redux/Store.js +34 -0
  114. package/lib/module/redux/Store.js.map +1 -0
  115. package/lib/module/redux/hooks.js +7 -0
  116. package/lib/module/redux/hooks.js.map +1 -0
  117. package/lib/module/redux/sagas/AuthSaga.js +34 -0
  118. package/lib/module/redux/sagas/AuthSaga.js.map +1 -0
  119. package/lib/module/redux/sagas/index.js +8 -0
  120. package/lib/module/redux/sagas/index.js.map +1 -0
  121. package/lib/module/redux/slices/authSlice.js +68 -0
  122. package/lib/module/redux/slices/authSlice.js.map +1 -0
  123. package/lib/module/redux/slices/index.js +24 -0
  124. package/lib/module/redux/slices/index.js.map +1 -0
  125. package/lib/module/types/auth.js +2 -0
  126. package/lib/module/types/auth.js.map +1 -0
  127. package/lib/module/types/common.js +2 -0
  128. package/lib/module/types/common.js.map +1 -0
  129. package/lib/module/types/index.js +4 -0
  130. package/lib/module/types/index.js.map +1 -0
  131. package/lib/typescript/BcaDeviceListSheet.d.ts +7 -0
  132. package/lib/typescript/BcaDeviceListSheet.d.ts.map +1 -0
  133. package/lib/typescript/MainWebView.d.ts +4 -0
  134. package/lib/typescript/MainWebView.d.ts.map +1 -0
  135. package/lib/typescript/ProgressWebView.d.ts +4 -0
  136. package/lib/typescript/ProgressWebView.d.ts.map +1 -0
  137. package/lib/typescript/Services.d.ts +5 -0
  138. package/lib/typescript/Services.d.ts.map +1 -0
  139. package/lib/typescript/Sheets.d.ts +2 -0
  140. package/lib/typescript/Sheets.d.ts.map +1 -0
  141. package/lib/typescript/api/auth.d.ts +33 -0
  142. package/lib/typescript/api/auth.d.ts.map +1 -0
  143. package/lib/typescript/api/base.d.ts +20 -0
  144. package/lib/typescript/api/base.d.ts.map +1 -0
  145. package/lib/typescript/api/index.d.ts +35 -0
  146. package/lib/typescript/api/index.d.ts.map +1 -0
  147. package/lib/typescript/constants/asyncstorage.d.ts +23 -0
  148. package/lib/typescript/constants/asyncstorage.d.ts.map +1 -0
  149. package/lib/typescript/constants/constants.d.ts +1081 -0
  150. package/lib/typescript/constants/constants.d.ts.map +1 -0
  151. package/lib/typescript/constants.d.ts +16 -0
  152. package/lib/typescript/constants.d.ts.map +1 -0
  153. package/lib/typescript/helpers/Matrics.d.ts +14 -0
  154. package/lib/typescript/helpers/Matrics.d.ts.map +1 -0
  155. package/lib/typescript/helpers/bluetoothPermissionHelper.d.ts +18 -0
  156. package/lib/typescript/helpers/bluetoothPermissionHelper.d.ts.map +1 -0
  157. package/lib/typescript/helpers/colors.d.ts +297 -0
  158. package/lib/typescript/helpers/colors.d.ts.map +1 -0
  159. package/lib/typescript/helpers/common.d.ts +8 -0
  160. package/lib/typescript/helpers/common.d.ts.map +1 -0
  161. package/lib/typescript/helpers/fonts.d.ts +23 -0
  162. package/lib/typescript/helpers/fonts.d.ts.map +1 -0
  163. package/lib/typescript/helpers/globalStyles.d.ts +176 -0
  164. package/lib/typescript/helpers/globalStyles.d.ts.map +1 -0
  165. package/lib/typescript/helpers/icons.d.ts +6 -0
  166. package/lib/typescript/helpers/icons.d.ts.map +1 -0
  167. package/lib/typescript/index.android.d.ts +30 -0
  168. package/lib/typescript/index.android.d.ts.map +1 -0
  169. package/lib/typescript/index.ios.d.ts +28 -0
  170. package/lib/typescript/index.ios.d.ts.map +1 -0
  171. package/lib/typescript/redux/Store.d.ts +13 -0
  172. package/lib/typescript/redux/Store.d.ts.map +1 -0
  173. package/lib/typescript/redux/hooks.d.ts +1 -0
  174. package/lib/typescript/redux/hooks.d.ts.map +1 -0
  175. package/lib/typescript/redux/sagas/AuthSaga.d.ts +3 -0
  176. package/lib/typescript/redux/sagas/AuthSaga.d.ts.map +1 -0
  177. package/lib/typescript/redux/sagas/index.d.ts +3 -0
  178. package/lib/typescript/redux/sagas/index.d.ts.map +1 -0
  179. package/lib/typescript/redux/slices/authSlice.d.ts +5 -0
  180. package/lib/typescript/redux/slices/authSlice.d.ts.map +1 -0
  181. package/lib/typescript/redux/slices/index.d.ts +6 -0
  182. package/lib/typescript/redux/slices/index.d.ts.map +1 -0
  183. package/lib/typescript/types/auth.d.ts +485 -0
  184. package/lib/typescript/types/auth.d.ts.map +1 -0
  185. package/lib/typescript/types/common.d.ts +19 -0
  186. package/lib/typescript/types/common.d.ts.map +1 -0
  187. package/lib/typescript/types/index.d.ts +4 -0
  188. package/lib/typescript/types/index.d.ts.map +1 -0
  189. package/package.json +38 -8
  190. package/src/BcaDeviceListSheet.tsx +331 -0
  191. package/src/MainWebView.tsx +67 -0
  192. package/src/ProgressWebView.tsx +602 -0
  193. package/src/Services.js +40 -0
  194. package/src/Sheets.js +4 -0
  195. package/src/api/auth.ts +156 -0
  196. package/src/api/base.ts +247 -0
  197. package/src/api/index.ts +5 -0
  198. package/src/assets/icons/achieve.svg +3 -0
  199. package/src/assets/icons/heart.svg +3 -0
  200. package/src/assets/icons/smartWatch.svg +3 -0
  201. package/src/constants/asyncstorage.ts +23 -0
  202. package/src/constants/constants.ts +1204 -0
  203. package/src/constants.ts +14 -0
  204. package/src/helpers/Matrics.ts +48 -0
  205. package/src/helpers/bluetoothPermissionHelper.ts +198 -0
  206. package/src/helpers/colors.ts +320 -0
  207. package/src/helpers/common.ts +46 -0
  208. package/src/helpers/fonts.ts +28 -0
  209. package/src/helpers/globalStyles.ts +179 -0
  210. package/src/helpers/icons.ts +11 -0
  211. package/src/index.android.js +164 -577
  212. package/src/index.ios.js +147 -215
  213. package/src/redux/Store.ts +36 -0
  214. package/src/redux/hooks.ts +6 -0
  215. package/src/redux/sagas/AuthSaga.ts +49 -0
  216. package/src/redux/sagas/index.ts +9 -0
  217. package/src/redux/slices/authSlice.ts +81 -0
  218. package/src/redux/slices/index.ts +29 -0
  219. package/src/types/auth.ts +533 -0
  220. package/src/types/common.ts +19 -0
  221. package/src/types/index.ts +8 -0
  222. package/lib/typescript/index.test.d.ts +0 -1
  223. package/lib/typescript/index.test.d.ts.map +0 -1
  224. package/src/constants.js +0 -4
  225. /package/ios/{VisitRnSdk.xcodeproj → MyTatvaRnSdk.xcodeproj}/project.pbxproj +0 -0
  226. /package/ios/{VisitRnSdkViewManager.h → MyTatvaRnSdkViewManager.h} +0 -0
  227. /package/ios/{VisitRnSdkViewManager.m → MyTatvaRnSdkViewManager.m} +0 -0
  228. /package/{react-native-visit-rn-sdk.podspec → react-native-mytatva-rn-sdk.podspec} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/redux/hooks.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare function authSaga(): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<never>>, void, unknown>;
2
+ export default authSaga;
3
+ //# sourceMappingURL=AuthSaga.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthSaga.d.ts","sourceRoot":"","sources":["../../../../src/redux/sagas/AuthSaga.ts"],"names":[],"mappings":"AAyCA,iBAAU,QAAQ,qHAKjB;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const rootSaga: () => Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<never>>, void, unknown>>, void, unknown>;
2
+ export default rootSaga;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/sagas/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ,0LAIb,CAAC;AACF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { auth } from "../../types";
2
+ export declare const authenticateUserRequest: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/authenticateUserRequest">, authenticateUserSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/authenticateUserSuccess">, authenticateUserError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/authenticateUserError">, setClientSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setClientSource">, setMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setMode">;
3
+ declare const _default: import("redux").Reducer<auth.UsersStateType, import("redux").UnknownAction, auth.UsersStateType>;
4
+ export default _default;
5
+ //# sourceMappingURL=authSlice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authSlice.d.ts","sourceRoot":"","sources":["../../../../src/redux/slices/authSlice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAsEnC,eAAO,MACL,uBAAuB,4FACvB,uBAAuB,4FACvB,qBAAqB,6FACrB,eAAe,oFACf,OAAO,0EACY,CAAC;;AAEtB,wBAAiC"}
@@ -0,0 +1,6 @@
1
+ export * from './authSlice';
2
+ declare const rootReducer: (state: any, action: any) => {
3
+ Auth: import("../../types/auth").UsersStateType;
4
+ };
5
+ export default rootReducer;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/slices/index.ts"],"names":[],"mappings":"AAUA,cAAc,aAAa,CAAC;AAE5B,QAAA,MAAM,WAAW,UAAW,GAAG,UAAU,GAAG;;CAc3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,485 @@
1
+ interface BMRDetails {
2
+ activity_level: string;
3
+ bmr: string;
4
+ created_at: string;
5
+ current_weight: string;
6
+ goal_weight: string;
7
+ height: string;
8
+ is_active: string;
9
+ is_deleted: string;
10
+ months: string;
11
+ patient_goal_weight_rel_id: string;
12
+ patient_id: string;
13
+ rate: string;
14
+ target_calories: string;
15
+ type: string;
16
+ updated_at: string;
17
+ updated_by: string;
18
+ }
19
+ interface DeviceInfo {
20
+ api_version: null | string;
21
+ app_version: string;
22
+ build_version_number: string;
23
+ created_at: string;
24
+ device_name: string;
25
+ device_token: null | string;
26
+ device_type: string;
27
+ ip: string;
28
+ last_active: string;
29
+ lat: null | number;
30
+ long: null | number;
31
+ model_name: string;
32
+ os_version: string;
33
+ patient_id: string;
34
+ skip_optional: string;
35
+ update_device_info_id: string;
36
+ updated_at: string;
37
+ uuid: string;
38
+ version_number: null | string;
39
+ }
40
+ interface Devices {
41
+ key: string;
42
+ last_sync_date: string;
43
+ title: string;
44
+ }
45
+ interface DoctorSays {
46
+ created_at: string;
47
+ deep_link: string;
48
+ description: string;
49
+ doctor_says_master_id: string;
50
+ is_active: string;
51
+ is_deleted: string;
52
+ title: string;
53
+ updated_at: string;
54
+ updated_by: string;
55
+ }
56
+ interface HcServiceLongestPlan {
57
+ admin_users_id: null | string;
58
+ android_package_id: string;
59
+ app_features_session_count: number;
60
+ card_image: string;
61
+ card_image_detail: string;
62
+ colour_scheme: string;
63
+ created_at: string;
64
+ description: string;
65
+ device_names: string;
66
+ device_type: string;
67
+ diagnostic_test_session_count: number;
68
+ diagnostic_test_used_count: number;
69
+ diagnostic_tests: string;
70
+ discount_amount: null | string;
71
+ discount_percentage: string;
72
+ discount_type: null | string;
73
+ discounts_master_id: null | string;
74
+ duration_name: string;
75
+ duration_title: string;
76
+ enable_rent_buy: string;
77
+ expiry_date: string;
78
+ gst_percentage: string;
79
+ invoice_no: null | string;
80
+ ios_package_id: string;
81
+ is_active: string;
82
+ is_deleted: string;
83
+ nutritionist_session_count: number;
84
+ offer_price: number;
85
+ offer_tag: string;
86
+ order_id: null | string;
87
+ order_no: number;
88
+ original_transaction_id: null | string;
89
+ patient_address_rel_id: string;
90
+ patient_data: null | string;
91
+ patient_id: string;
92
+ patient_plan_rel_id: string;
93
+ physiotherapist_session_count: number;
94
+ plan_cancel_datetime: null | string;
95
+ plan_master_id: string;
96
+ plan_name: string;
97
+ plan_package_duration_rel_id: string;
98
+ plan_purchase_datetime: string;
99
+ plan_type: string;
100
+ purchase_amount: string;
101
+ purchased_at: string;
102
+ receipt_data: null | string;
103
+ remaining_days: number;
104
+ renewal_reminder_days: number;
105
+ rent_buy_type: null | string;
106
+ sub_title: string;
107
+ subscription_id: null | string;
108
+ total_days: number;
109
+ transaction_id: string;
110
+ transaction_type: string;
111
+ updated_at: string;
112
+ updated_by: string;
113
+ what_to_expect: string;
114
+ }
115
+ interface MedicialConditionName {
116
+ medical_condition_name: string;
117
+ }
118
+ interface PatientLinkDoctorDetails {
119
+ about: string;
120
+ access_code: string;
121
+ added_by: string | null;
122
+ business_id: string;
123
+ city: string | null;
124
+ clinic_address: string;
125
+ clinic_id: string;
126
+ clinic_name: string;
127
+ contact_no: string;
128
+ country: string;
129
+ country_code: string;
130
+ created_at: string;
131
+ deep_link: string;
132
+ division: string | null;
133
+ dob: string | null;
134
+ doctor_id: string;
135
+ doctor_uniq_id: string;
136
+ email: string;
137
+ experience: string | null;
138
+ gender: string | null;
139
+ is_active: string;
140
+ is_deleted: string;
141
+ language_spoken: string | null;
142
+ languages_id: string | null;
143
+ medical_id_proof: string | null;
144
+ name: string;
145
+ patient_doctor_rel_id: string;
146
+ patient_id: string;
147
+ plan: string | null;
148
+ profile_image: string;
149
+ qualification: string;
150
+ region: string;
151
+ source: string | null;
152
+ specialization: string;
153
+ state: string | null;
154
+ updated_at: string;
155
+ updated_by: string;
156
+ }
157
+ export interface FeaturesRes {
158
+ feature: string;
159
+ feature_keys: string;
160
+ patient_plan_rel_id: string;
161
+ plan_features_id: string;
162
+ plan_features_rel_id: string;
163
+ plan_master_id: string;
164
+ sub_features_ids: string;
165
+ sub_features_keys: string;
166
+ sub_features_names: string;
167
+ }
168
+ export interface PlanInfo {
169
+ admin_users_id: null | string;
170
+ android_per_month_price: number;
171
+ android_price: number;
172
+ card_image: string;
173
+ card_image_detail: string;
174
+ colour_scheme: string;
175
+ created_at: string;
176
+ description: string;
177
+ device_type: string;
178
+ discount_amount: null | string;
179
+ discount_type: null | string;
180
+ discounts_master_id: null | string;
181
+ enable_rent_buy: string;
182
+ expiry_date: string;
183
+ features_res: FeaturesRes[];
184
+ gst_percentage: string;
185
+ image_url: string;
186
+ invoice_no: null | string;
187
+ ios_per_month_price: number;
188
+ ios_price: number;
189
+ ios_product_id: string;
190
+ is_active: string;
191
+ is_deleted: string;
192
+ offer_per_month_price: number;
193
+ offer_price: number;
194
+ order_id: null | string;
195
+ original_transaction_id: null | string;
196
+ patient_id: string;
197
+ patient_plan_rel_id: string;
198
+ plan_cancel_datetime: null | string;
199
+ plan_end_date: string;
200
+ plan_master_id: string;
201
+ plan_name: string;
202
+ plan_purchase_datetime: string;
203
+ plan_start_date: string;
204
+ plan_type: string;
205
+ purchased_at: string;
206
+ razorpay_plan_id: null | string;
207
+ receipt_data: null | string;
208
+ renewal_reminder_days: number;
209
+ sub_title: string;
210
+ subscription_id: null | string;
211
+ transaction_id: string;
212
+ transaction_type: string;
213
+ updated_at: string;
214
+ updated_by: string;
215
+ what_to_expect: string;
216
+ base_amount: string | null;
217
+ wallet_amount: string | null;
218
+ }
219
+ interface Setting {
220
+ attribute_name: string;
221
+ attribute_value: 'Y' | 'N';
222
+ created_at: string;
223
+ settings_master_id: string;
224
+ }
225
+ interface chatHCListState {
226
+ about_me: string;
227
+ first_name: string;
228
+ health_coach_id: string;
229
+ is_active: string;
230
+ is_deleted: string;
231
+ last_name: string;
232
+ profile_pic: string;
233
+ role: string;
234
+ years_of_experience: number;
235
+ chief_hc?: string;
236
+ }
237
+ export type UserType = {
238
+ get_active_id: string;
239
+ doctor_details: {
240
+ doctor_id: string;
241
+ doctor_name: string;
242
+ access_code: string;
243
+ doctor_contact_no: string;
244
+ doctor_city: string;
245
+ doctor_state?: string;
246
+ clinic_master_id: string;
247
+ clinic_name: string;
248
+ clinic_address?: string;
249
+ };
250
+ patient_meta_info: any;
251
+ account_role: string;
252
+ active_deactive_id: string;
253
+ address: string;
254
+ admin_users_id: string | null;
255
+ bca_sync: {
256
+ biometric_setting?: any;
257
+ };
258
+ biometric_setting: null;
259
+ bmr_details?: BMRDetails;
260
+ city: string;
261
+ contact_no: string;
262
+ country: string;
263
+ country_code: string;
264
+ created_at: string;
265
+ current_status: string;
266
+ device_info: DeviceInfo[];
267
+ devices: Devices[];
268
+ dob: string;
269
+ doctor_says: DoctorSays;
270
+ email: string;
271
+ email_verified: string;
272
+ ethnicity: null;
273
+ gender: 'M' | 'F';
274
+ greeting_text: string;
275
+ hc_list: any[];
276
+ hc_service_longest_plan: HcServiceLongestPlan;
277
+ height: string;
278
+ height_unit: string;
279
+ is_accept_terms_accept: string;
280
+ is_active: string;
281
+ is_deleted: string;
282
+ language_name: string;
283
+ language_version: null;
284
+ languages_id: string;
285
+ last_active_date: null;
286
+ last_login_date: string;
287
+ lock_till: null;
288
+ login_user: string;
289
+ medical_condition_name: MedicialConditionName[];
290
+ name: string;
291
+ non_relevant: null;
292
+ password: string;
293
+ patient_address_rel_id: string;
294
+ patient_age: number;
295
+ patient_guid: null;
296
+ patient_id: string;
297
+ patient_link_doctor_details: PatientLinkDoctorDetails[];
298
+ patient_plans: PlanInfo[];
299
+ pincode: null;
300
+ profile_completion: string;
301
+ profile_completion_status: {
302
+ drug_prescription: 'Y' | 'N';
303
+ goal_reading: 'Y' | 'N';
304
+ location: 'Y' | 'N';
305
+ };
306
+ profile_pic: string;
307
+ relation: null;
308
+ relevance_admin_users_id: null;
309
+ relevant: null;
310
+ restore_id: null;
311
+ settings: Setting[];
312
+ severity_id: null;
313
+ severity_name: null;
314
+ spirometer_sync: object;
315
+ spirometer_target_vol: number;
316
+ state: string;
317
+ sub_relation: null;
318
+ sync_at: string;
319
+ token: string;
320
+ unit_data: any[];
321
+ unread_notifications: number;
322
+ updated_at: string;
323
+ updated_by: string;
324
+ user_from: string;
325
+ weight: string;
326
+ weight_unit: string;
327
+ whatsapp_optin: string;
328
+ access_code: string | null;
329
+ doctor_access_code: null;
330
+ image_url: string;
331
+ indication_name: string | null;
332
+ medical_condition_group_id: string | null;
333
+ step: number;
334
+ temp_patient_signup_id: string;
335
+ version: number;
336
+ devices_name: any;
337
+ wallet_id: null | string;
338
+ chat_hc_list: chatHCListState[];
339
+ is_plan_expired: boolean;
340
+ walletRuleEngine: null | string;
341
+ newUser: boolean;
342
+ };
343
+ export type PatientData = {
344
+ access_code: string | null;
345
+ contact_no: string;
346
+ created_at: string;
347
+ dob: string | null;
348
+ doctor_access_code: null;
349
+ email: string | null;
350
+ gender: string | null;
351
+ image_url: string;
352
+ indication_name: string | null;
353
+ medical_condition_group_id: string | null;
354
+ name: string | null;
355
+ patient_id: string;
356
+ relation: string | null;
357
+ step: number;
358
+ sub_relation: string | null;
359
+ temp_patient_signup_id: string;
360
+ token: string;
361
+ updated_at: string;
362
+ version: number;
363
+ patient_guid: string;
364
+ country_code: string;
365
+ hc_list: any;
366
+ };
367
+ export interface MedicalCondition {
368
+ created_at: string;
369
+ is_active: 'Y' | 'N';
370
+ is_deleted: 'Y' | 'N';
371
+ is_other: 'Yes' | 'No';
372
+ medical_condition_group_id: string;
373
+ medical_condition_name: string;
374
+ selected_image: null | string;
375
+ unselected_image: null | string;
376
+ unselected_imagess: null | string;
377
+ selected_imagess: null | string;
378
+ updated_at: string;
379
+ updated_by: string;
380
+ meta_data?: {
381
+ alias?: string;
382
+ subtitle?: string;
383
+ };
384
+ }
385
+ export type IUserState = {
386
+ data: UserType;
387
+ isLoading: boolean;
388
+ errors: string;
389
+ isOnco?: boolean;
390
+ isZydus?: boolean;
391
+ platform?: string;
392
+ };
393
+ export type IMedicalConditionState = {
394
+ data: MedicalCondition[];
395
+ isLoading: boolean;
396
+ errors: string;
397
+ isSuccess: boolean | null;
398
+ };
399
+ export type OnBoardingState = {
400
+ data: OnBoardingType[];
401
+ isLoading: boolean;
402
+ errors: string;
403
+ isSuccess: boolean | null;
404
+ };
405
+ type NavBarHeight = {
406
+ navBarHeight: number;
407
+ };
408
+ type OtpState = {
409
+ isLoading: boolean;
410
+ data: any;
411
+ error: string;
412
+ };
413
+ export type UsersStateType = {
414
+ sendOtp?: OtpState;
415
+ verifyOtp?: OtpState;
416
+ clientSource?: string;
417
+ mode?: string;
418
+ user: IUserState;
419
+ isUserLoggedIn?: boolean;
420
+ isConnectGoogleFit?: boolean;
421
+ medicalConditionList?: IMedicalConditionState;
422
+ onBoardingList?: OnBoardingState;
423
+ deeplink?: Record<string, string>;
424
+ DeviceInfo?: NavBarHeight;
425
+ oncoCoins?: string;
426
+ userMetaInfo?: IUserMetaInfo;
427
+ updateUserMetaInfo?: boolean;
428
+ getBcaReadings?: boolean;
429
+ };
430
+ type Range = {
431
+ to: number;
432
+ from: number;
433
+ label: string;
434
+ };
435
+ type Ranges = {
436
+ BMI: Range[];
437
+ fat: Range[];
438
+ weight: Range[];
439
+ protein: Range[];
440
+ bone_mass: Range[];
441
+ hydration: Range[];
442
+ muscle_mass: Range[];
443
+ visceral_fat: Range[];
444
+ metabolic_age: Range[];
445
+ skeletal_muscle: Range[];
446
+ subcutaneous_fat: Range[];
447
+ };
448
+ type PatientMetaForRuleEngineInfo = {
449
+ user_type: string;
450
+ step_count: string;
451
+ last_coined_assigned_date_bca_criteria: string;
452
+ support_program_type: string;
453
+ BMI: number;
454
+ BMR: number;
455
+ ranges: Ranges;
456
+ weight: number;
457
+ protein: number;
458
+ fat_mass: number;
459
+ bone_mass: number;
460
+ hydration: number;
461
+ muscle_mass: number;
462
+ visceral_fat: number;
463
+ metabolic_age: number;
464
+ skeletal_muscle_percent: number;
465
+ subcutaneous_fat_percent: number;
466
+ };
467
+ export type IUserMetaInfo = {
468
+ data: PatientMetaForRuleEngineInfo;
469
+ isLoading: boolean;
470
+ errors: string;
471
+ };
472
+ export type OnBoardingType = {
473
+ created_at: string;
474
+ description: string;
475
+ imag: string;
476
+ image_url: string;
477
+ is_active: 'Y' | 'N';
478
+ is_deleted: 'Y' | 'N';
479
+ order_no: number;
480
+ signup_onbording_id: string;
481
+ title: string;
482
+ updated_at: string;
483
+ };
484
+ export {};
485
+ //# sourceMappingURL=auth.d.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E,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,4BAA4B,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC;IACrB,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type ResponseGenerator = {
2
+ dev: any;
3
+ order_master_id: string;
4
+ remark: string;
5
+ config?: any;
6
+ data?: any;
7
+ headers?: any;
8
+ request?: any;
9
+ status: number | "error" | 'success';
10
+ statusText?: string;
11
+ message?: string;
12
+ code: '0' | '1' | '2' | '3' | '-1' | '5' | 0 | 1 | 2 | -1 | 5;
13
+ msg?: string;
14
+ };
15
+ export type firebaseRemoteConfig = {
16
+ key: string;
17
+ value: string;
18
+ };
19
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,EAAE,GAAG,CAAC;IACT,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import * as auth from './auth';
2
+ import * as common from './common';
3
+ export { auth, common };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAGnC,OAAO,EACL,IAAI,EACJ,MAAM,EACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mytatva-rn-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "a package to inject data into visit health pwa",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -61,9 +61,12 @@
61
61
  "@evilmartians/lefthook": "^1.2.2",
62
62
  "@react-native-community/eslint-config": "^3.0.2",
63
63
  "@release-it/conventional-changelog": "^5.0.0",
64
+ "@tsconfig/react-native": "^3.0.0",
64
65
  "@types/jest": "^28.1.2",
65
- "@types/react": "~17.0.21",
66
- "@types/react-native": "0.70.0",
66
+ "@types/node": "^22.13.14",
67
+ "@types/react": "^18.0.24",
68
+ "@types/react-native": "^0.70.0",
69
+ "@types/redux-saga": "^0.10.5",
67
70
  "commitlint": "^17.0.2",
68
71
  "del-cli": "^5.0.0",
69
72
  "eslint": "^8.4.1",
@@ -77,14 +80,17 @@
77
80
  "react-native-builder-bob": "^0.20.0",
78
81
  "release-it": "^15.0.0",
79
82
  "turbo": "^1.10.7",
80
- "typescript": "^5.0.2"
83
+ "typescript": "^4.8.4"
81
84
  },
82
85
  "resolutions": {
83
86
  "@types/react": "17.0.21"
84
87
  },
85
88
  "peerDependencies": {
86
89
  "react": "*",
87
- "react-native": "*"
90
+ "react-native": "*",
91
+ "react-native-ble-manager": "*",
92
+ "react-native-device-info": "*",
93
+ "react-native-permissions": "*"
88
94
  },
89
95
  "engines": {
90
96
  "node": ">= 16.0.0"
@@ -158,18 +164,42 @@
158
164
  [
159
165
  "typescript",
160
166
  {
161
- "project": "tsconfig.build.json"
167
+ "project": "tsconfig.build.json",
168
+ "tsc": "./node_modules/.bin/tsc"
162
169
  }
163
170
  ]
164
171
  ]
165
172
  },
166
173
  "dependencies": {
174
+ "@react-native-async-storage/async-storage": "^1.19.3",
175
+ "@react-navigation/native": "^6.1.7",
176
+ "@react-navigation/native-stack": "^6.9.13",
177
+ "@react-navigation/stack": "^6.3.18",
178
+ "@reduxjs/toolkit": "^2.6.1",
179
+ "@types/crypto-js": "^4.1.1",
167
180
  "axios": "^1.5.0",
181
+ "crypto-js": "^3.1.9-1",
168
182
  "moment": "^2.29.4",
169
- "react-native-device-info": "13.0.0",
183
+ "react-native-actions-sheet": "^0.9.0-alpha.24",
184
+ "react-native-ble-manager": "11.2.0",
185
+ "react-native-device-info": "*",
186
+ "react-native-dotenv": "^3.4.11",
170
187
  "react-native-event-listeners": "^1.0.7",
188
+ "react-native-gesture-handler": "^2.24.0",
189
+ "react-native-linear-gradient": "^2.8.3",
171
190
  "react-native-location-enabler": "git+https://github.com/sashko9807/react-native-location-enabler.git",
172
- "react-native-webview": "^13.12.1"
191
+ "react-native-permissions": "^5.2.4",
192
+ "react-native-safe-area-context": "^5.3.0",
193
+ "react-native-screens": "^4.9.2",
194
+ "react-native-size-matters": "^0.4.2",
195
+ "react-native-tracky-lib": "^0.2.6",
196
+ "react-native-webview": "12.4.0",
197
+ "react-native-get-random-values": "^1.11.0",
198
+ "react-redux": "^9.2.0",
199
+ "redux-saga": "^1.3.0",
200
+ "uuid": "^9.0.1",
201
+ "react-native-svg": "^13.11.0",
202
+ "react-native-svg-transformer": "^1.1.0"
173
203
  },
174
204
  "directories": {
175
205
  "example": "example"