react-native-mytatva-rn-sdk 1.0.0 → 1.1.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.
- package/android/app/build.gradle +5 -0
- package/android/build.gradle +5 -5
- package/android/gradle.properties +13 -5
- package/android/settings.gradle +9 -0
- package/android/src/main/AndroidManifest.xml +22 -1
- package/android/src/main/AndroidManifestNew.xml +59 -1
- package/android/src/main/java/com/{visitrnsdk/VisitRnSdkPackage.kt → mytatvarnsdk/MyTatvaRnSdkPackage.kt} +2 -2
- package/android/src/main/java/com/{visitrnsdk/VisitRnSdkViewManager.kt → mytatvarnsdk/MyTatvaRnSdkViewManager.kt} +1 -1
- package/lib/commonjs/BcaDeviceListSheet.js +286 -0
- package/lib/commonjs/BcaDeviceListSheet.js.map +1 -0
- package/lib/commonjs/MainWebView.js +68 -0
- package/lib/commonjs/MainWebView.js.map +1 -0
- package/lib/commonjs/ProgressWebView.js +547 -0
- package/lib/commonjs/ProgressWebView.js.map +1 -0
- package/lib/commonjs/Services.js +27 -1
- package/lib/commonjs/Services.js.map +1 -1
- package/lib/commonjs/Sheets.js +7 -0
- package/lib/commonjs/Sheets.js.map +1 -0
- package/lib/commonjs/api/auth.js +167 -0
- package/lib/commonjs/api/auth.js.map +1 -0
- package/lib/commonjs/api/base.js +224 -0
- package/lib/commonjs/api/base.js.map +1 -0
- package/lib/commonjs/api/index.js +12 -0
- package/lib/commonjs/api/index.js.map +1 -0
- package/lib/commonjs/assets/icons/achieve.svg +3 -0
- package/lib/commonjs/assets/icons/heart.svg +3 -0
- package/lib/commonjs/assets/icons/smartWatch.svg +3 -0
- package/lib/commonjs/constants/asyncstorage.js +29 -0
- package/lib/commonjs/constants/asyncstorage.js.map +1 -0
- package/lib/commonjs/constants/constants.js +1373 -0
- package/lib/commonjs/constants/constants.js.map +1 -0
- package/lib/commonjs/constants.js +12 -2
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/helpers/Matrics.js +49 -0
- package/lib/commonjs/helpers/Matrics.js.map +1 -0
- package/lib/commonjs/helpers/bluetoothPermissionHelper.js +114 -0
- package/lib/commonjs/helpers/bluetoothPermissionHelper.js.map +1 -0
- package/lib/commonjs/helpers/colors.js +304 -0
- package/lib/commonjs/helpers/colors.js.map +1 -0
- package/lib/commonjs/helpers/common.js +46 -0
- package/lib/commonjs/helpers/common.js.map +1 -0
- package/lib/commonjs/helpers/fonts.js +33 -0
- package/lib/commonjs/helpers/fonts.js.map +1 -0
- package/lib/commonjs/helpers/globalStyles.js +188 -0
- package/lib/commonjs/helpers/globalStyles.js.map +1 -0
- package/lib/commonjs/helpers/icons.js +16 -0
- package/lib/commonjs/helpers/icons.js.map +1 -0
- package/lib/commonjs/index.android.js +163 -414
- package/lib/commonjs/index.android.js.map +1 -1
- package/lib/commonjs/index.ios.js +138 -187
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/commonjs/redux/Store.js +42 -0
- package/lib/commonjs/redux/Store.js.map +1 -0
- package/lib/commonjs/redux/hooks.js +8 -0
- package/lib/commonjs/redux/hooks.js.map +1 -0
- package/lib/commonjs/redux/sagas/AuthSaga.js +44 -0
- package/lib/commonjs/redux/sagas/AuthSaga.js.map +1 -0
- package/lib/commonjs/redux/sagas/index.js +15 -0
- package/lib/commonjs/redux/sagas/index.js.map +1 -0
- package/lib/commonjs/redux/slices/authSlice.js +80 -0
- package/lib/commonjs/redux/slices/authSlice.js.map +1 -0
- package/lib/commonjs/redux/slices/index.js +44 -0
- package/lib/commonjs/redux/slices/index.js.map +1 -0
- package/lib/commonjs/types/auth.js +2 -0
- package/lib/commonjs/types/auth.js.map +1 -0
- package/lib/commonjs/types/common.js +2 -0
- package/lib/commonjs/types/common.js.map +1 -0
- package/lib/commonjs/types/index.js +13 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/module/BcaDeviceListSheet.js +277 -0
- package/lib/module/BcaDeviceListSheet.js.map +1 -0
- package/lib/module/MainWebView.js +61 -0
- package/lib/module/MainWebView.js.map +1 -0
- package/lib/module/ProgressWebView.js +536 -0
- package/lib/module/ProgressWebView.js.map +1 -0
- package/lib/module/Services.js +24 -0
- package/lib/module/Services.js.map +1 -1
- package/lib/module/Sheets.js +4 -0
- package/lib/module/Sheets.js.map +1 -0
- package/lib/module/api/auth.js +160 -0
- package/lib/module/api/auth.js.map +1 -0
- package/lib/module/api/base.js +212 -0
- package/lib/module/api/base.js.map +1 -0
- package/lib/module/api/index.js +5 -0
- package/lib/module/api/index.js.map +1 -0
- package/lib/module/assets/icons/achieve.svg +3 -0
- package/lib/module/assets/icons/heart.svg +3 -0
- package/lib/module/assets/icons/smartWatch.svg +3 -0
- package/lib/module/constants/asyncstorage.js +23 -0
- package/lib/module/constants/asyncstorage.js.map +1 -0
- package/lib/module/constants/constants.js +1367 -0
- package/lib/module/constants/constants.js.map +1 -0
- package/lib/module/constants.js +12 -2
- package/lib/module/constants.js.map +1 -1
- package/lib/module/helpers/Matrics.js +44 -0
- package/lib/module/helpers/Matrics.js.map +1 -0
- package/lib/module/helpers/bluetoothPermissionHelper.js +103 -0
- package/lib/module/helpers/bluetoothPermissionHelper.js.map +1 -0
- package/lib/module/helpers/colors.js +298 -0
- package/lib/module/helpers/colors.js.map +1 -0
- package/lib/module/helpers/common.js +34 -0
- package/lib/module/helpers/common.js.map +1 -0
- package/lib/module/helpers/fonts.js +27 -0
- package/lib/module/helpers/fonts.js.map +1 -0
- package/lib/module/helpers/globalStyles.js +181 -0
- package/lib/module/helpers/globalStyles.js.map +1 -0
- package/lib/module/helpers/icons.js +9 -0
- package/lib/module/helpers/icons.js.map +1 -0
- package/lib/module/index.android.js +165 -413
- package/lib/module/index.android.js.map +1 -1
- package/lib/module/index.ios.js +138 -187
- package/lib/module/index.ios.js.map +1 -1
- package/lib/module/redux/Store.js +34 -0
- package/lib/module/redux/Store.js.map +1 -0
- package/lib/module/redux/hooks.js +7 -0
- package/lib/module/redux/hooks.js.map +1 -0
- package/lib/module/redux/sagas/AuthSaga.js +34 -0
- package/lib/module/redux/sagas/AuthSaga.js.map +1 -0
- package/lib/module/redux/sagas/index.js +8 -0
- package/lib/module/redux/sagas/index.js.map +1 -0
- package/lib/module/redux/slices/authSlice.js +68 -0
- package/lib/module/redux/slices/authSlice.js.map +1 -0
- package/lib/module/redux/slices/index.js +24 -0
- package/lib/module/redux/slices/index.js.map +1 -0
- package/lib/module/types/auth.js +2 -0
- package/lib/module/types/auth.js.map +1 -0
- package/lib/module/types/common.js +2 -0
- package/lib/module/types/common.js.map +1 -0
- package/lib/module/types/index.js +4 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/typescript/BcaDeviceListSheet.d.ts +7 -0
- package/lib/typescript/BcaDeviceListSheet.d.ts.map +1 -0
- package/lib/typescript/MainWebView.d.ts +4 -0
- package/lib/typescript/MainWebView.d.ts.map +1 -0
- package/lib/typescript/ProgressWebView.d.ts +4 -0
- package/lib/typescript/ProgressWebView.d.ts.map +1 -0
- package/lib/typescript/Services.d.ts +5 -0
- package/lib/typescript/Services.d.ts.map +1 -0
- package/lib/typescript/Sheets.d.ts +2 -0
- package/lib/typescript/Sheets.d.ts.map +1 -0
- package/lib/typescript/api/auth.d.ts +33 -0
- package/lib/typescript/api/auth.d.ts.map +1 -0
- package/lib/typescript/api/base.d.ts +20 -0
- package/lib/typescript/api/base.d.ts.map +1 -0
- package/lib/typescript/api/index.d.ts +35 -0
- package/lib/typescript/api/index.d.ts.map +1 -0
- package/lib/typescript/constants/asyncstorage.d.ts +23 -0
- package/lib/typescript/constants/asyncstorage.d.ts.map +1 -0
- package/lib/typescript/constants/constants.d.ts +1081 -0
- package/lib/typescript/constants/constants.d.ts.map +1 -0
- package/lib/typescript/constants.d.ts +16 -0
- package/lib/typescript/constants.d.ts.map +1 -0
- package/lib/typescript/helpers/Matrics.d.ts +14 -0
- package/lib/typescript/helpers/Matrics.d.ts.map +1 -0
- package/lib/typescript/helpers/bluetoothPermissionHelper.d.ts +18 -0
- package/lib/typescript/helpers/bluetoothPermissionHelper.d.ts.map +1 -0
- package/lib/typescript/helpers/colors.d.ts +297 -0
- package/lib/typescript/helpers/colors.d.ts.map +1 -0
- package/lib/typescript/helpers/common.d.ts +8 -0
- package/lib/typescript/helpers/common.d.ts.map +1 -0
- package/lib/typescript/helpers/fonts.d.ts +23 -0
- package/lib/typescript/helpers/fonts.d.ts.map +1 -0
- package/lib/typescript/helpers/globalStyles.d.ts +176 -0
- package/lib/typescript/helpers/globalStyles.d.ts.map +1 -0
- package/lib/typescript/helpers/icons.d.ts +6 -0
- package/lib/typescript/helpers/icons.d.ts.map +1 -0
- package/lib/typescript/index.android.d.ts +30 -0
- package/lib/typescript/index.android.d.ts.map +1 -0
- package/lib/typescript/index.ios.d.ts +28 -0
- package/lib/typescript/index.ios.d.ts.map +1 -0
- package/lib/typescript/redux/Store.d.ts +13 -0
- package/lib/typescript/redux/Store.d.ts.map +1 -0
- package/lib/typescript/redux/hooks.d.ts +1 -0
- package/lib/typescript/redux/hooks.d.ts.map +1 -0
- package/lib/typescript/redux/sagas/AuthSaga.d.ts +3 -0
- package/lib/typescript/redux/sagas/AuthSaga.d.ts.map +1 -0
- package/lib/typescript/redux/sagas/index.d.ts +3 -0
- package/lib/typescript/redux/sagas/index.d.ts.map +1 -0
- package/lib/typescript/redux/slices/authSlice.d.ts +5 -0
- package/lib/typescript/redux/slices/authSlice.d.ts.map +1 -0
- package/lib/typescript/redux/slices/index.d.ts +6 -0
- package/lib/typescript/redux/slices/index.d.ts.map +1 -0
- package/lib/typescript/types/auth.d.ts +485 -0
- package/lib/typescript/types/auth.d.ts.map +1 -0
- package/lib/typescript/types/common.d.ts +19 -0
- package/lib/typescript/types/common.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +4 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/package.json +39 -8
- package/src/BcaDeviceListSheet.tsx +331 -0
- package/src/MainWebView.tsx +67 -0
- package/src/ProgressWebView.tsx +602 -0
- package/src/Services.js +40 -0
- package/src/Sheets.js +4 -0
- package/src/api/auth.ts +156 -0
- package/src/api/base.ts +247 -0
- package/src/api/index.ts +5 -0
- package/src/assets/icons/achieve.svg +3 -0
- package/src/assets/icons/heart.svg +3 -0
- package/src/assets/icons/smartWatch.svg +3 -0
- package/src/constants/asyncstorage.ts +23 -0
- package/src/constants/constants.ts +1204 -0
- package/src/constants.ts +14 -0
- package/src/helpers/Matrics.ts +48 -0
- package/src/helpers/bluetoothPermissionHelper.ts +198 -0
- package/src/helpers/colors.ts +320 -0
- package/src/helpers/common.ts +46 -0
- package/src/helpers/fonts.ts +28 -0
- package/src/helpers/globalStyles.ts +179 -0
- package/src/helpers/icons.ts +11 -0
- package/src/index.android.js +164 -577
- package/src/index.ios.js +147 -215
- package/src/redux/Store.ts +36 -0
- package/src/redux/hooks.ts +6 -0
- package/src/redux/sagas/AuthSaga.ts +49 -0
- package/src/redux/sagas/index.ts +9 -0
- package/src/redux/slices/authSlice.ts +81 -0
- package/src/redux/slices/index.ts +29 -0
- package/src/types/auth.ts +533 -0
- package/src/types/common.ts +19 -0
- package/src/types/index.ts +8 -0
- package/lib/typescript/index.test.d.ts +0 -1
- package/lib/typescript/index.test.d.ts.map +0 -1
- package/src/constants.js +0 -4
- /package/ios/{VisitRnSdk.xcodeproj → MyTatvaRnSdk.xcodeproj}/project.pbxproj +0 -0
- /package/ios/{VisitRnSdkViewManager.h → MyTatvaRnSdkViewManager.h} +0 -0
- /package/ios/{VisitRnSdkViewManager.m → MyTatvaRnSdkViewManager.m} +0 -0
- /package/{react-native-visit-rn-sdk.podspec → react-native-mytatva-rn-sdk.podspec} +0 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
//bmr_details
|
|
2
|
+
interface BMRDetails {
|
|
3
|
+
activity_level: string;
|
|
4
|
+
bmr: string;
|
|
5
|
+
created_at: string;
|
|
6
|
+
current_weight: string;
|
|
7
|
+
goal_weight: string;
|
|
8
|
+
height: string;
|
|
9
|
+
is_active: string;
|
|
10
|
+
is_deleted: string;
|
|
11
|
+
months: string;
|
|
12
|
+
patient_goal_weight_rel_id: string;
|
|
13
|
+
patient_id: string;
|
|
14
|
+
rate: string;
|
|
15
|
+
target_calories: string;
|
|
16
|
+
type: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
updated_by: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface DeviceInfo {
|
|
22
|
+
api_version: null | string;
|
|
23
|
+
app_version: string;
|
|
24
|
+
build_version_number: string;
|
|
25
|
+
created_at: string;
|
|
26
|
+
device_name: string;
|
|
27
|
+
device_token: null | string;
|
|
28
|
+
device_type: string;
|
|
29
|
+
ip: string;
|
|
30
|
+
last_active: string;
|
|
31
|
+
lat: null | number;
|
|
32
|
+
long: null | number;
|
|
33
|
+
model_name: string;
|
|
34
|
+
os_version: string;
|
|
35
|
+
patient_id: string;
|
|
36
|
+
skip_optional: string;
|
|
37
|
+
update_device_info_id: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
uuid: string;
|
|
40
|
+
version_number: null | string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface Devices {
|
|
44
|
+
key: string;
|
|
45
|
+
last_sync_date: string;
|
|
46
|
+
title: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface DoctorSays {
|
|
50
|
+
created_at: string;
|
|
51
|
+
deep_link: string;
|
|
52
|
+
description: string;
|
|
53
|
+
doctor_says_master_id: string;
|
|
54
|
+
is_active: string;
|
|
55
|
+
is_deleted: string;
|
|
56
|
+
title: string;
|
|
57
|
+
updated_at: string;
|
|
58
|
+
updated_by: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface HcServiceLongestPlan {
|
|
62
|
+
admin_users_id: null | string;
|
|
63
|
+
android_package_id: string;
|
|
64
|
+
app_features_session_count: number;
|
|
65
|
+
card_image: string;
|
|
66
|
+
card_image_detail: string;
|
|
67
|
+
colour_scheme: string;
|
|
68
|
+
created_at: string;
|
|
69
|
+
description: string;
|
|
70
|
+
device_names: string;
|
|
71
|
+
device_type: string;
|
|
72
|
+
diagnostic_test_session_count: number;
|
|
73
|
+
diagnostic_test_used_count: number;
|
|
74
|
+
diagnostic_tests: string;
|
|
75
|
+
discount_amount: null | string;
|
|
76
|
+
discount_percentage: string;
|
|
77
|
+
discount_type: null | string;
|
|
78
|
+
discounts_master_id: null | string;
|
|
79
|
+
duration_name: string;
|
|
80
|
+
duration_title: string;
|
|
81
|
+
enable_rent_buy: string;
|
|
82
|
+
expiry_date: string;
|
|
83
|
+
gst_percentage: string;
|
|
84
|
+
invoice_no: null | string;
|
|
85
|
+
ios_package_id: string;
|
|
86
|
+
is_active: string;
|
|
87
|
+
is_deleted: string;
|
|
88
|
+
nutritionist_session_count: number;
|
|
89
|
+
offer_price: number;
|
|
90
|
+
offer_tag: string;
|
|
91
|
+
order_id: null | string;
|
|
92
|
+
order_no: number;
|
|
93
|
+
original_transaction_id: null | string;
|
|
94
|
+
patient_address_rel_id: string;
|
|
95
|
+
patient_data: null | string;
|
|
96
|
+
patient_id: string;
|
|
97
|
+
patient_plan_rel_id: string;
|
|
98
|
+
physiotherapist_session_count: number;
|
|
99
|
+
plan_cancel_datetime: null | string;
|
|
100
|
+
plan_master_id: string;
|
|
101
|
+
plan_name: string;
|
|
102
|
+
plan_package_duration_rel_id: string;
|
|
103
|
+
plan_purchase_datetime: string;
|
|
104
|
+
plan_type: string;
|
|
105
|
+
purchase_amount: string;
|
|
106
|
+
purchased_at: string;
|
|
107
|
+
receipt_data: null | string;
|
|
108
|
+
remaining_days: number;
|
|
109
|
+
renewal_reminder_days: number;
|
|
110
|
+
rent_buy_type: null | string;
|
|
111
|
+
sub_title: string;
|
|
112
|
+
subscription_id: null | string;
|
|
113
|
+
total_days: number;
|
|
114
|
+
transaction_id: string;
|
|
115
|
+
transaction_type: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
updated_by: string;
|
|
118
|
+
what_to_expect: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface MedicialConditionName {
|
|
122
|
+
medical_condition_name: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface PatientLinkDoctorDetails {
|
|
126
|
+
about: string;
|
|
127
|
+
access_code: string;
|
|
128
|
+
added_by: string | null;
|
|
129
|
+
business_id: string;
|
|
130
|
+
city: string | null;
|
|
131
|
+
clinic_address: string;
|
|
132
|
+
clinic_id: string;
|
|
133
|
+
clinic_name: string;
|
|
134
|
+
contact_no: string;
|
|
135
|
+
country: string;
|
|
136
|
+
country_code: string;
|
|
137
|
+
created_at: string;
|
|
138
|
+
deep_link: string;
|
|
139
|
+
division: string | null;
|
|
140
|
+
dob: string | null;
|
|
141
|
+
doctor_id: string;
|
|
142
|
+
doctor_uniq_id: string;
|
|
143
|
+
email: string;
|
|
144
|
+
experience: string | null;
|
|
145
|
+
gender: string | null;
|
|
146
|
+
is_active: string;
|
|
147
|
+
is_deleted: string;
|
|
148
|
+
language_spoken: string | null;
|
|
149
|
+
languages_id: string | null;
|
|
150
|
+
medical_id_proof: string | null;
|
|
151
|
+
name: string;
|
|
152
|
+
patient_doctor_rel_id: string;
|
|
153
|
+
patient_id: string;
|
|
154
|
+
plan: string | null;
|
|
155
|
+
profile_image: string;
|
|
156
|
+
qualification: string;
|
|
157
|
+
region: string;
|
|
158
|
+
source: string | null;
|
|
159
|
+
specialization: string;
|
|
160
|
+
state: string | null;
|
|
161
|
+
updated_at: string;
|
|
162
|
+
updated_by: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface FeaturesRes {
|
|
166
|
+
feature: string;
|
|
167
|
+
feature_keys: string;
|
|
168
|
+
patient_plan_rel_id: string;
|
|
169
|
+
plan_features_id: string;
|
|
170
|
+
plan_features_rel_id: string;
|
|
171
|
+
plan_master_id: string;
|
|
172
|
+
sub_features_ids: string;
|
|
173
|
+
sub_features_keys: string;
|
|
174
|
+
sub_features_names: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface PlanInfo {
|
|
178
|
+
admin_users_id: null | string;
|
|
179
|
+
android_per_month_price: number;
|
|
180
|
+
android_price: number;
|
|
181
|
+
card_image: string;
|
|
182
|
+
card_image_detail: string;
|
|
183
|
+
colour_scheme: string;
|
|
184
|
+
created_at: string;
|
|
185
|
+
description: string;
|
|
186
|
+
device_type: string;
|
|
187
|
+
discount_amount: null | string;
|
|
188
|
+
discount_type: null | string;
|
|
189
|
+
discounts_master_id: null | string;
|
|
190
|
+
enable_rent_buy: string;
|
|
191
|
+
expiry_date: string;
|
|
192
|
+
features_res: FeaturesRes[];
|
|
193
|
+
gst_percentage: string;
|
|
194
|
+
image_url: string;
|
|
195
|
+
invoice_no: null | string;
|
|
196
|
+
ios_per_month_price: number;
|
|
197
|
+
ios_price: number;
|
|
198
|
+
ios_product_id: string;
|
|
199
|
+
is_active: string;
|
|
200
|
+
is_deleted: string;
|
|
201
|
+
offer_per_month_price: number;
|
|
202
|
+
offer_price: number;
|
|
203
|
+
order_id: null | string;
|
|
204
|
+
original_transaction_id: null | string;
|
|
205
|
+
patient_id: string;
|
|
206
|
+
patient_plan_rel_id: string;
|
|
207
|
+
plan_cancel_datetime: null | string;
|
|
208
|
+
plan_end_date: string;
|
|
209
|
+
plan_master_id: string;
|
|
210
|
+
plan_name: string;
|
|
211
|
+
plan_purchase_datetime: string;
|
|
212
|
+
plan_start_date: string;
|
|
213
|
+
plan_type: string;
|
|
214
|
+
purchased_at: string;
|
|
215
|
+
razorpay_plan_id: null | string;
|
|
216
|
+
receipt_data: null | string;
|
|
217
|
+
renewal_reminder_days: number;
|
|
218
|
+
sub_title: string;
|
|
219
|
+
subscription_id: null | string;
|
|
220
|
+
transaction_id: string;
|
|
221
|
+
transaction_type: string;
|
|
222
|
+
updated_at: string;
|
|
223
|
+
updated_by: string;
|
|
224
|
+
what_to_expect: string;
|
|
225
|
+
base_amount: string | null;
|
|
226
|
+
wallet_amount: string | null;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface Setting {
|
|
230
|
+
attribute_name: string;
|
|
231
|
+
attribute_value: 'Y' | 'N';
|
|
232
|
+
created_at: string;
|
|
233
|
+
settings_master_id: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface chatHCListState {
|
|
237
|
+
about_me: string;
|
|
238
|
+
first_name: string;
|
|
239
|
+
health_coach_id: string;
|
|
240
|
+
is_active: string;
|
|
241
|
+
is_deleted: string;
|
|
242
|
+
last_name: string;
|
|
243
|
+
profile_pic: string;
|
|
244
|
+
role: string;
|
|
245
|
+
years_of_experience: number;
|
|
246
|
+
chief_hc?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// Define the user type
|
|
250
|
+
export type UserType = {
|
|
251
|
+
get_active_id: string;
|
|
252
|
+
doctor_details: {
|
|
253
|
+
doctor_id: string;
|
|
254
|
+
doctor_name: string;
|
|
255
|
+
access_code: string;
|
|
256
|
+
doctor_contact_no: string;
|
|
257
|
+
doctor_city: string;
|
|
258
|
+
doctor_state?: string;
|
|
259
|
+
clinic_master_id: string;
|
|
260
|
+
clinic_name: string;
|
|
261
|
+
clinic_address?: string;
|
|
262
|
+
};
|
|
263
|
+
patient_meta_info: any;
|
|
264
|
+
account_role: string;
|
|
265
|
+
active_deactive_id: string;
|
|
266
|
+
address: string;
|
|
267
|
+
admin_users_id: string | null;
|
|
268
|
+
bca_sync: {
|
|
269
|
+
biometric_setting?: any;
|
|
270
|
+
};
|
|
271
|
+
biometric_setting: null;
|
|
272
|
+
bmr_details?: BMRDetails;
|
|
273
|
+
city: string;
|
|
274
|
+
contact_no: string;
|
|
275
|
+
country: string;
|
|
276
|
+
country_code: string;
|
|
277
|
+
created_at: string;
|
|
278
|
+
current_status: string;
|
|
279
|
+
device_info: DeviceInfo[];
|
|
280
|
+
devices: Devices[];
|
|
281
|
+
dob: string;
|
|
282
|
+
doctor_says: DoctorSays;
|
|
283
|
+
email: string;
|
|
284
|
+
email_verified: string;
|
|
285
|
+
ethnicity: null;
|
|
286
|
+
gender: 'M' | 'F';
|
|
287
|
+
greeting_text: string;
|
|
288
|
+
hc_list: any[];
|
|
289
|
+
hc_service_longest_plan: HcServiceLongestPlan;
|
|
290
|
+
height: string;
|
|
291
|
+
height_unit: string;
|
|
292
|
+
is_accept_terms_accept: string;
|
|
293
|
+
is_active: string;
|
|
294
|
+
is_deleted: string;
|
|
295
|
+
language_name: string;
|
|
296
|
+
language_version: null;
|
|
297
|
+
languages_id: string;
|
|
298
|
+
last_active_date: null;
|
|
299
|
+
last_login_date: string;
|
|
300
|
+
lock_till: null;
|
|
301
|
+
login_user: string;
|
|
302
|
+
medical_condition_name: MedicialConditionName[];
|
|
303
|
+
name: string;
|
|
304
|
+
non_relevant: null;
|
|
305
|
+
password: string;
|
|
306
|
+
patient_address_rel_id: string;
|
|
307
|
+
patient_age: number;
|
|
308
|
+
patient_guid: null;
|
|
309
|
+
patient_id: string;
|
|
310
|
+
patient_link_doctor_details: PatientLinkDoctorDetails[];
|
|
311
|
+
patient_plans: PlanInfo[];
|
|
312
|
+
pincode: null;
|
|
313
|
+
profile_completion: string;
|
|
314
|
+
profile_completion_status: {
|
|
315
|
+
drug_prescription: 'Y' | 'N';
|
|
316
|
+
goal_reading: 'Y' | 'N';
|
|
317
|
+
location: 'Y' | 'N';
|
|
318
|
+
};
|
|
319
|
+
profile_pic: string;
|
|
320
|
+
relation: null;
|
|
321
|
+
relevance_admin_users_id: null;
|
|
322
|
+
relevant: null;
|
|
323
|
+
restore_id: null;
|
|
324
|
+
settings: Setting[];
|
|
325
|
+
severity_id: null;
|
|
326
|
+
severity_name: null;
|
|
327
|
+
spirometer_sync: object;
|
|
328
|
+
spirometer_target_vol: number;
|
|
329
|
+
state: string;
|
|
330
|
+
sub_relation: null;
|
|
331
|
+
sync_at: string;
|
|
332
|
+
token: string;
|
|
333
|
+
unit_data: any[];
|
|
334
|
+
unread_notifications: number;
|
|
335
|
+
updated_at: string;
|
|
336
|
+
updated_by: string;
|
|
337
|
+
user_from: string;
|
|
338
|
+
weight: string;
|
|
339
|
+
weight_unit: string;
|
|
340
|
+
whatsapp_optin: string;
|
|
341
|
+
access_code: string | null;
|
|
342
|
+
// contact_no: string;
|
|
343
|
+
// created_at: string;
|
|
344
|
+
// dob: string | null;
|
|
345
|
+
doctor_access_code: null;
|
|
346
|
+
// email: string | null;
|
|
347
|
+
// gender: string | null;
|
|
348
|
+
image_url: string;
|
|
349
|
+
indication_name: string | null;
|
|
350
|
+
medical_condition_group_id: string | null;
|
|
351
|
+
// name: string | null;
|
|
352
|
+
// patient_id: string;
|
|
353
|
+
// relation: string | null;
|
|
354
|
+
step: number;
|
|
355
|
+
// sub_relation: string | null;
|
|
356
|
+
temp_patient_signup_id: string;
|
|
357
|
+
// token: string;
|
|
358
|
+
// updated_at: string;
|
|
359
|
+
version: number;
|
|
360
|
+
devices_name: any;
|
|
361
|
+
// patient_guid: string;
|
|
362
|
+
// country_code: string;
|
|
363
|
+
// hc_list: any;
|
|
364
|
+
wallet_id: null | string;
|
|
365
|
+
chat_hc_list: chatHCListState[];
|
|
366
|
+
is_plan_expired: boolean;
|
|
367
|
+
walletRuleEngine: null | string;
|
|
368
|
+
newUser: boolean;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
export type PatientData = {
|
|
372
|
+
access_code: string | null;
|
|
373
|
+
contact_no: string;
|
|
374
|
+
created_at: string;
|
|
375
|
+
dob: string | null;
|
|
376
|
+
doctor_access_code: null;
|
|
377
|
+
email: string | null;
|
|
378
|
+
gender: string | null;
|
|
379
|
+
image_url: string;
|
|
380
|
+
indication_name: string | null;
|
|
381
|
+
medical_condition_group_id: string | null;
|
|
382
|
+
name: string | null;
|
|
383
|
+
patient_id: string;
|
|
384
|
+
relation: string | null;
|
|
385
|
+
step: number;
|
|
386
|
+
sub_relation: string | null;
|
|
387
|
+
temp_patient_signup_id: string;
|
|
388
|
+
token: string;
|
|
389
|
+
updated_at: string;
|
|
390
|
+
version: number;
|
|
391
|
+
patient_guid: string;
|
|
392
|
+
country_code: string;
|
|
393
|
+
hc_list: any;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
export interface MedicalCondition {
|
|
397
|
+
created_at: string;
|
|
398
|
+
is_active: 'Y' | 'N';
|
|
399
|
+
is_deleted: 'Y' | 'N';
|
|
400
|
+
is_other: 'Yes' | 'No';
|
|
401
|
+
medical_condition_group_id: string;
|
|
402
|
+
medical_condition_name: string;
|
|
403
|
+
selected_image: null | string;
|
|
404
|
+
unselected_image: null | string;
|
|
405
|
+
unselected_imagess: null | string;
|
|
406
|
+
selected_imagess: null | string;
|
|
407
|
+
updated_at: string;
|
|
408
|
+
updated_by: string;
|
|
409
|
+
meta_data?: {
|
|
410
|
+
alias?: string;
|
|
411
|
+
subtitle?: string;
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// This type will represent the sub-state for getting a single user by ID
|
|
416
|
+
export type IUserState = {
|
|
417
|
+
data: UserType;
|
|
418
|
+
isLoading: boolean;
|
|
419
|
+
errors: string;
|
|
420
|
+
isOnco?: boolean;
|
|
421
|
+
isZydus?: boolean;
|
|
422
|
+
platform?: string;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
export type IMedicalConditionState = {
|
|
426
|
+
data: MedicalCondition[];
|
|
427
|
+
isLoading: boolean;
|
|
428
|
+
errors: string;
|
|
429
|
+
isSuccess: boolean | null;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
export type OnBoardingState = {
|
|
433
|
+
data: OnBoardingType[];
|
|
434
|
+
isLoading: boolean;
|
|
435
|
+
errors: string;
|
|
436
|
+
isSuccess: boolean | null;
|
|
437
|
+
};
|
|
438
|
+
type NavBarHeight = {
|
|
439
|
+
navBarHeight: number;
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
type OtpState = {
|
|
443
|
+
isLoading: boolean;
|
|
444
|
+
data: any;
|
|
445
|
+
error: string;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
// The users global state
|
|
449
|
+
export type UsersStateType = {
|
|
450
|
+
sendOtp?: OtpState;
|
|
451
|
+
verifyOtp?: OtpState;
|
|
452
|
+
clientSource?: string;
|
|
453
|
+
mode?: string;
|
|
454
|
+
user: IUserState;
|
|
455
|
+
isUserLoggedIn?: boolean;
|
|
456
|
+
isConnectGoogleFit?: boolean;
|
|
457
|
+
medicalConditionList?: IMedicalConditionState;
|
|
458
|
+
onBoardingList?: OnBoardingState;
|
|
459
|
+
deeplink?: Record<string, string>;
|
|
460
|
+
DeviceInfo?: NavBarHeight;
|
|
461
|
+
oncoCoins?: string;
|
|
462
|
+
userMetaInfo?: IUserMetaInfo;
|
|
463
|
+
updateUserMetaInfo?: boolean;
|
|
464
|
+
getBcaReadings?: boolean;
|
|
465
|
+
// Later, we can add other sub-states like:
|
|
466
|
+
// list,
|
|
467
|
+
// create,
|
|
468
|
+
// update,
|
|
469
|
+
// remove
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
type Range = {
|
|
473
|
+
to: number;
|
|
474
|
+
from: number;
|
|
475
|
+
label: string;
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
type Ranges = {
|
|
479
|
+
BMI: Range[];
|
|
480
|
+
fat: Range[];
|
|
481
|
+
weight: Range[];
|
|
482
|
+
protein: Range[];
|
|
483
|
+
bone_mass: Range[];
|
|
484
|
+
hydration: Range[];
|
|
485
|
+
muscle_mass: Range[];
|
|
486
|
+
visceral_fat: Range[];
|
|
487
|
+
metabolic_age: Range[];
|
|
488
|
+
skeletal_muscle: Range[];
|
|
489
|
+
subcutaneous_fat: Range[];
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
type PatientMetaForRuleEngineInfo = {
|
|
493
|
+
user_type: string;
|
|
494
|
+
step_count: string; // Should be a datetime string
|
|
495
|
+
last_coined_assigned_date_bca_criteria: string;
|
|
496
|
+
support_program_type: string;
|
|
497
|
+
BMI: number;
|
|
498
|
+
BMR: number;
|
|
499
|
+
ranges: Ranges;
|
|
500
|
+
weight: number;
|
|
501
|
+
protein: number;
|
|
502
|
+
fat_mass: number;
|
|
503
|
+
bone_mass: number;
|
|
504
|
+
hydration: number;
|
|
505
|
+
muscle_mass: number;
|
|
506
|
+
visceral_fat: number;
|
|
507
|
+
metabolic_age: number;
|
|
508
|
+
skeletal_muscle_percent: number;
|
|
509
|
+
subcutaneous_fat_percent: number;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
export type IUserMetaInfo = {
|
|
513
|
+
data: PatientMetaForRuleEngineInfo;
|
|
514
|
+
isLoading: boolean;
|
|
515
|
+
errors: string;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
export type OnBoardingType = {
|
|
519
|
+
created_at: string;
|
|
520
|
+
description: string;
|
|
521
|
+
imag: string;
|
|
522
|
+
image_url: string;
|
|
523
|
+
is_active: 'Y' | 'N';
|
|
524
|
+
is_deleted: 'Y' | 'N';
|
|
525
|
+
order_no: number;
|
|
526
|
+
signup_onbording_id: string;
|
|
527
|
+
title: string;
|
|
528
|
+
updated_at: string;
|
|
529
|
+
};
|
|
530
|
+
// (1)
|
|
531
|
+
// export const Auth = 'auth'; // slice name here
|
|
532
|
+
// export type USERS = typeof USERS; // Typescript line
|
|
533
|
+
|
|
@@ -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
|
+
|
|
16
|
+
export type firebaseRemoteConfig = {
|
|
17
|
+
key: string,
|
|
18
|
+
value: string
|
|
19
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.tsx"],"names":[],"mappings":""}
|
package/src/constants.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|