@taphealth/kafka 1.2.42 → 1.2.43
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/dist/events/profile-updated.d.ts +1 -32
- package/dist/types/profile.d.ts +91 -27
- package/package.json +1 -1
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
import { Topics } from "../topics";
|
|
2
|
-
import {
|
|
3
|
-
interface ProfileUpdatedData {
|
|
4
|
-
id: string;
|
|
5
|
-
userId?: string;
|
|
6
|
-
patientId?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
relation?: string;
|
|
9
|
-
gender?: string;
|
|
10
|
-
age?: number;
|
|
11
|
-
location?: string;
|
|
12
|
-
email?: string;
|
|
13
|
-
deviceId?: string;
|
|
14
|
-
profileCompleted?: boolean;
|
|
15
|
-
smoking?: boolean;
|
|
16
|
-
drinking?: boolean;
|
|
17
|
-
pregnancy?: boolean;
|
|
18
|
-
diabetes?: boolean;
|
|
19
|
-
hypertension?: boolean;
|
|
20
|
-
followSymptom?: boolean;
|
|
21
|
-
metaQuestion?: boolean;
|
|
22
|
-
sharedOnWhatsApp?: boolean;
|
|
23
|
-
registeredOnMeradoc?: boolean;
|
|
24
|
-
sharedOnSMS?: boolean;
|
|
25
|
-
shareCount?: number;
|
|
26
|
-
preferredLanguage?: string;
|
|
27
|
-
createdAt?: Date;
|
|
28
|
-
updatedAt?: Date;
|
|
29
|
-
weight?: string;
|
|
30
|
-
height?: string;
|
|
31
|
-
settings?: settings;
|
|
32
|
-
}
|
|
2
|
+
import { ProfileUpdatedData } from "../types/profile";
|
|
33
3
|
export interface ProfileUpdatedEvent {
|
|
34
4
|
topic: Topics.ProfileUpdated;
|
|
35
5
|
data: ProfileUpdatedData;
|
|
36
6
|
}
|
|
37
|
-
export {};
|
package/dist/types/profile.d.ts
CHANGED
|
@@ -1,23 +1,42 @@
|
|
|
1
|
+
export interface ProfileUpdatedData {
|
|
2
|
+
id: string;
|
|
3
|
+
userId?: string;
|
|
4
|
+
patientId?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
relation?: string;
|
|
7
|
+
gender?: string;
|
|
8
|
+
age?: number;
|
|
9
|
+
location?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
deviceId?: string;
|
|
12
|
+
profileCompleted?: boolean;
|
|
13
|
+
smoking?: boolean;
|
|
14
|
+
drinking?: boolean;
|
|
15
|
+
pregnancy?: boolean;
|
|
16
|
+
diabetes?: boolean;
|
|
17
|
+
hypertension?: boolean;
|
|
18
|
+
followSymptom?: boolean;
|
|
19
|
+
metaQuestion?: boolean;
|
|
20
|
+
sharedOnWhatsApp?: boolean;
|
|
21
|
+
registeredOnMeradoc?: boolean;
|
|
22
|
+
sharedOnSMS?: boolean;
|
|
23
|
+
shareCount?: number;
|
|
24
|
+
preferredLanguage?: string;
|
|
25
|
+
createdAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
settings?: settings;
|
|
28
|
+
}
|
|
1
29
|
export interface settings {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
lunchPulseIntake: string;
|
|
11
|
-
hasMeatInLunch: boolean;
|
|
12
|
-
lunchMeatIntake: string;
|
|
13
|
-
hasRotiInLunch: boolean;
|
|
14
|
-
lunchRotiIntake: string;
|
|
15
|
-
medicalConditions: string[];
|
|
16
|
-
recentSurgery: boolean;
|
|
17
|
-
diet: DietPreferences;
|
|
18
|
-
diabetes: DiabetesPreferences;
|
|
30
|
+
personal: PersonalSettings;
|
|
31
|
+
breakfast: BreakfastSettings;
|
|
32
|
+
lunch: LunchSettings;
|
|
33
|
+
dinner: DinnerSettings;
|
|
34
|
+
diet: DietSettings;
|
|
35
|
+
lifestyleRoutine: LifeStyleRoutineSettings;
|
|
36
|
+
medical: MedicalSettings;
|
|
37
|
+
diabetes: DiabetesSettings;
|
|
19
38
|
}
|
|
20
|
-
export interface
|
|
39
|
+
export interface DiabetesSettings {
|
|
21
40
|
programReason: string[];
|
|
22
41
|
motivation: string[];
|
|
23
42
|
goal: string[];
|
|
@@ -31,20 +50,13 @@ export interface DiabetesPreferences {
|
|
|
31
50
|
hba1cLevel: string;
|
|
32
51
|
history: string[];
|
|
33
52
|
diabetesInFamily: boolean;
|
|
34
|
-
dietPreference: string;
|
|
35
|
-
cuisinePreferences: string[];
|
|
36
|
-
pulses: string[];
|
|
37
|
-
grains: string[];
|
|
38
|
-
vegetables: string[];
|
|
39
|
-
nonVegPreferences: string[];
|
|
40
|
-
nonVegDays: string[];
|
|
41
53
|
medications: string[];
|
|
42
54
|
}
|
|
43
|
-
export interface
|
|
55
|
+
export interface DietSettings {
|
|
44
56
|
dietReason: string;
|
|
45
57
|
activityLevel: string;
|
|
46
58
|
allergies: string[];
|
|
47
|
-
|
|
59
|
+
dietType: string;
|
|
48
60
|
cuisinePreferences: string[];
|
|
49
61
|
pulses: string[];
|
|
50
62
|
grains: string[];
|
|
@@ -53,3 +65,55 @@ export interface DietPreferences {
|
|
|
53
65
|
nonVegDays: string[];
|
|
54
66
|
medications: string[];
|
|
55
67
|
}
|
|
68
|
+
export interface LunchSettings {
|
|
69
|
+
hasLunch: boolean;
|
|
70
|
+
hasVegetablesInLunch: boolean;
|
|
71
|
+
hasPulsesInLunch: boolean;
|
|
72
|
+
hasMeatInLunch: boolean;
|
|
73
|
+
hasRotiInLunch: boolean;
|
|
74
|
+
hasRiceInLunch: boolean;
|
|
75
|
+
lunchVegetableIntake: string;
|
|
76
|
+
lunchPulseIntake: string;
|
|
77
|
+
lunchMeatIntake: string;
|
|
78
|
+
lunchRotiIntake: string;
|
|
79
|
+
lunchRiceIntake: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BreakfastSettings {
|
|
82
|
+
hasBreakfast: boolean;
|
|
83
|
+
breakfastMealSize: string;
|
|
84
|
+
hasMealInBreakfast: boolean;
|
|
85
|
+
hasBeverageInBreakfast: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface DinnerSettings {
|
|
88
|
+
hasDinner: boolean;
|
|
89
|
+
hasVegetablesInDinner: boolean;
|
|
90
|
+
hasPulsesInDinner: boolean;
|
|
91
|
+
hasMeatInDinner: boolean;
|
|
92
|
+
hasRotiInDinner: boolean;
|
|
93
|
+
hasRiceInDinner: boolean;
|
|
94
|
+
dinnerVegetableIntake: string;
|
|
95
|
+
dinnerPulseIntake: string;
|
|
96
|
+
dinnerMeatIntake: string;
|
|
97
|
+
dinnerRotiIntake: string;
|
|
98
|
+
dinnerRiceIntake: string;
|
|
99
|
+
}
|
|
100
|
+
export interface MedicalSettings {
|
|
101
|
+
medicalConditions: string[];
|
|
102
|
+
recentSurgery: boolean;
|
|
103
|
+
}
|
|
104
|
+
export interface LifeStyleRoutineSettings {
|
|
105
|
+
currentFamilyStructure: string;
|
|
106
|
+
employmentStatus: string;
|
|
107
|
+
workType: string;
|
|
108
|
+
workTimings: string;
|
|
109
|
+
postWorkRoutine: string;
|
|
110
|
+
sleepStartTime: string;
|
|
111
|
+
sleepEndTime: string;
|
|
112
|
+
sleepQuality: string;
|
|
113
|
+
}
|
|
114
|
+
export interface PersonalSettings {
|
|
115
|
+
weight: string;
|
|
116
|
+
height: string;
|
|
117
|
+
exerciseLevel?: number;
|
|
118
|
+
workoutDays?: string[];
|
|
119
|
+
}
|