@taphealth/kafka 1.2.38 → 1.2.40

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.
@@ -1,35 +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
- settings?: settings;
30
- }
2
+ import { ProfileUpdatedData } from "../types/profile";
31
3
  export interface ProfileUpdatedEvent {
32
4
  topic: Topics.ProfileUpdated;
33
5
  data: ProfileUpdatedData;
34
6
  }
35
- export {};
@@ -1,11 +1,39 @@
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
- personalDetails: PersonalDetails;
3
- breakfastDetails: BreakfastSettings;
4
- lunchDetails: LunchSettings;
5
- dinnerDetails: DinnerSettings;
30
+ personal: PersonalSettings;
31
+ breakfast: BreakfastSettings;
32
+ lunch: LunchSettings;
33
+ dinner: DinnerSettings;
6
34
  diet: DietSettings;
7
35
  lifestyleRoutine: LifeStyleRoutineSettings;
8
- medicalDetails: MedicalSettings;
36
+ medical: MedicalSettings;
9
37
  diabetes: DiabetesSettings;
10
38
  }
11
39
  export interface DiabetesSettings {
@@ -83,7 +111,7 @@ export interface LifeStyleRoutineSettings {
83
111
  sleepEndTime: string;
84
112
  sleepQuality: string;
85
113
  }
86
- export interface PersonalDetails {
114
+ export interface PersonalSettings {
87
115
  weight: string;
88
116
  height: string;
89
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taphealth/kafka",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",