@taphealth/kafka 1.2.42 → 1.2.44

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.
@@ -0,0 +1,8 @@
1
+ import { Topics } from "../topics";
2
+ export interface EducationGenerateEvent {
3
+ topic: Topics.EducationGenerate;
4
+ data: {
5
+ userId: string;
6
+ date: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Topics } from "../topics";
2
+ export interface EducationPlanCreatedEvent {
3
+ topic: Topics.EducationPlanCreated;
4
+ data: {
5
+ userId: string;
6
+ date: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,37 +1,6 @@
1
1
  import { Topics } from "../topics";
2
- import { settings } from "../types/profile";
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/index.d.ts CHANGED
@@ -18,3 +18,5 @@ export * from "./events/diet-created";
18
18
  export * from "./events/diet-generate";
19
19
  export * from "./events/dtx-created";
20
20
  export * from "./events/profile-updated";
21
+ export * from "./events/education-plan-created";
22
+ export * from "./events/education-generate";
package/dist/index.js CHANGED
@@ -34,3 +34,5 @@ __exportStar(require("./events/diet-created"), exports);
34
34
  __exportStar(require("./events/diet-generate"), exports);
35
35
  __exportStar(require("./events/dtx-created"), exports);
36
36
  __exportStar(require("./events/profile-updated"), exports);
37
+ __exportStar(require("./events/education-plan-created"), exports);
38
+ __exportStar(require("./events/education-generate"), exports);
package/dist/topics.d.ts CHANGED
@@ -13,5 +13,7 @@ export declare enum Topics {
13
13
  ExpirationComplete = "expiration-complete",
14
14
  RefundInitiate = "refund-initiate",
15
15
  RefundProcessed = "refund-processed",
16
- ProfileUpdated = "profile-updated"
16
+ ProfileUpdated = "profile-updated",
17
+ EducationPlanCreated = "education-plan-created",
18
+ EducationGenerate = "education-generate"
17
19
  }
package/dist/topics.js CHANGED
@@ -18,4 +18,6 @@ var Topics;
18
18
  Topics["RefundInitiate"] = "refund-initiate";
19
19
  Topics["RefundProcessed"] = "refund-processed";
20
20
  Topics["ProfileUpdated"] = "profile-updated";
21
+ Topics["EducationPlanCreated"] = "education-plan-created";
22
+ Topics["EducationGenerate"] = "education-generate";
21
23
  })(Topics || (exports.Topics = Topics = {}));
@@ -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
- sleepTime: string;
3
- hasBreakfast: boolean;
4
- breakfastMealSize: string;
5
- hasBeverageInBreakfast: boolean;
6
- hasLunch: boolean;
7
- hasVegetables: boolean;
8
- vegetableIntake: string;
9
- hasPulsesInLunch: boolean;
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 DiabetesPreferences {
39
+ export interface DiabetesSettings {
21
40
  programReason: string[];
22
41
  motivation: string[];
23
42
  goal: string[];
@@ -31,20 +50,16 @@ 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[];
54
+ programPace: string;
55
+ coachType: string;
56
+ diabetesType: string;
42
57
  }
43
- export interface DietPreferences {
58
+ export interface DietSettings {
44
59
  dietReason: string;
45
60
  activityLevel: string;
46
61
  allergies: string[];
47
- dietPreference: string;
62
+ dietType: string;
48
63
  cuisinePreferences: string[];
49
64
  pulses: string[];
50
65
  grains: string[];
@@ -53,3 +68,55 @@ export interface DietPreferences {
53
68
  nonVegDays: string[];
54
69
  medications: string[];
55
70
  }
71
+ export interface LunchSettings {
72
+ hasLunch: boolean;
73
+ hasVegetablesInLunch: boolean;
74
+ hasPulsesInLunch: boolean;
75
+ hasMeatInLunch: boolean;
76
+ hasRotiInLunch: boolean;
77
+ hasRiceInLunch: boolean;
78
+ lunchVegetableIntake: string;
79
+ lunchPulseIntake: string;
80
+ lunchMeatIntake: string;
81
+ lunchRotiIntake: string;
82
+ lunchRiceIntake: string;
83
+ }
84
+ export interface BreakfastSettings {
85
+ hasBreakfast: boolean;
86
+ breakfastMealSize: string;
87
+ hasMealInBreakfast: boolean;
88
+ hasBeverageInBreakfast: boolean;
89
+ }
90
+ export interface DinnerSettings {
91
+ hasDinner: boolean;
92
+ hasVegetablesInDinner: boolean;
93
+ hasPulsesInDinner: boolean;
94
+ hasMeatInDinner: boolean;
95
+ hasRotiInDinner: boolean;
96
+ hasRiceInDinner: boolean;
97
+ dinnerVegetableIntake: string;
98
+ dinnerPulseIntake: string;
99
+ dinnerMeatIntake: string;
100
+ dinnerRotiIntake: string;
101
+ dinnerRiceIntake: string;
102
+ }
103
+ export interface MedicalSettings {
104
+ medicalConditions: string[];
105
+ recentSurgery: boolean;
106
+ }
107
+ export interface LifeStyleRoutineSettings {
108
+ currentFamilyStructure: string;
109
+ employmentStatus: string;
110
+ workType: string;
111
+ workTimings: string;
112
+ postWorkRoutine: string;
113
+ sleepStartTime: string;
114
+ sleepEndTime: string;
115
+ sleepQuality: string;
116
+ }
117
+ export interface PersonalSettings {
118
+ weight: string;
119
+ height: string;
120
+ exerciseLevel?: number;
121
+ workoutDays?: string[];
122
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taphealth/kafka",
3
- "version": "1.2.42",
3
+ "version": "1.2.44",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",