@taphealth/kafka 1.3.1 → 1.3.2
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/proactive-check-in.d.ts +17 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/topics.d.ts +2 -3
- package/dist/topics.js +1 -2
- package/dist/types/proactive.d.ts +25 -0
- package/dist/types/proactive.js +30 -0
- package/package.json +1 -1
- package/dist/events/glucose-logging.d.ts +0 -11
- package/dist/events/nutrition-logging.d.ts +0 -10
- package/dist/events/nutrition-logging.js +0 -2
- /package/dist/events/{glucose-logging.js → proactive-check-in.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Topics } from "../topics";
|
|
2
|
+
import { Intervention, MessageCategory } from "../types/proactive";
|
|
3
|
+
export interface ProactiveCheckInEvent {
|
|
4
|
+
topic: Topics.ProactiveCheckIn;
|
|
5
|
+
data: {
|
|
6
|
+
userId: string;
|
|
7
|
+
scheduleDate: string;
|
|
8
|
+
data: {
|
|
9
|
+
category: MessageCategory;
|
|
10
|
+
userId: string;
|
|
11
|
+
data?: any;
|
|
12
|
+
date: string;
|
|
13
|
+
intervention: Intervention;
|
|
14
|
+
priority?: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./types/profile";
|
|
|
9
9
|
export * from "./types/glucose";
|
|
10
10
|
export * from "./types/activity";
|
|
11
11
|
export * from "./types/exercise";
|
|
12
|
+
export * from "./types/proactive";
|
|
12
13
|
export * from "./events/payment-captured";
|
|
13
14
|
export * from "./events/payment-failed";
|
|
14
15
|
export * from "./events/appointment-created";
|
|
@@ -24,12 +25,11 @@ export * from "./events/dtx-created";
|
|
|
24
25
|
export * from "./events/profile-updated";
|
|
25
26
|
export * from "./events/education-created";
|
|
26
27
|
export * from "./events/education-generate";
|
|
27
|
-
export * from "./events/nutrition-logging";
|
|
28
28
|
export * from "./events/exercise-generate";
|
|
29
29
|
export * from "./events/exercise-created";
|
|
30
30
|
export * from "./events/glucose-created";
|
|
31
31
|
export * from "./events/glucose-generate";
|
|
32
|
-
export * from "./events/glucose-logging";
|
|
33
32
|
export * from "./events/activity-logged";
|
|
34
33
|
export * from "./events/steps-logging";
|
|
35
34
|
export * from "./events/reward-created";
|
|
35
|
+
export * from "./events/proactive-check-in";
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./types/profile"), exports);
|
|
|
25
25
|
__exportStar(require("./types/glucose"), exports);
|
|
26
26
|
__exportStar(require("./types/activity"), exports);
|
|
27
27
|
__exportStar(require("./types/exercise"), exports);
|
|
28
|
+
__exportStar(require("./types/proactive"), exports);
|
|
28
29
|
__exportStar(require("./events/payment-captured"), exports);
|
|
29
30
|
__exportStar(require("./events/payment-failed"), exports);
|
|
30
31
|
__exportStar(require("./events/appointment-created"), exports);
|
|
@@ -40,12 +41,11 @@ __exportStar(require("./events/dtx-created"), exports);
|
|
|
40
41
|
__exportStar(require("./events/profile-updated"), exports);
|
|
41
42
|
__exportStar(require("./events/education-created"), exports);
|
|
42
43
|
__exportStar(require("./events/education-generate"), exports);
|
|
43
|
-
__exportStar(require("./events/nutrition-logging"), exports);
|
|
44
44
|
__exportStar(require("./events/exercise-generate"), exports);
|
|
45
45
|
__exportStar(require("./events/exercise-created"), exports);
|
|
46
46
|
__exportStar(require("./events/glucose-created"), exports);
|
|
47
47
|
__exportStar(require("./events/glucose-generate"), exports);
|
|
48
|
-
__exportStar(require("./events/glucose-logging"), exports);
|
|
49
48
|
__exportStar(require("./events/activity-logged"), exports);
|
|
50
49
|
__exportStar(require("./events/steps-logging"), exports);
|
|
51
50
|
__exportStar(require("./events/reward-created"), exports);
|
|
51
|
+
__exportStar(require("./events/proactive-check-in"), exports);
|
package/dist/topics.d.ts
CHANGED
|
@@ -16,13 +16,12 @@ export declare enum Topics {
|
|
|
16
16
|
ProfileUpdated = "profile-updated",
|
|
17
17
|
EducationCreated = "education-created",
|
|
18
18
|
EducationGenerate = "education-generate",
|
|
19
|
-
NutritionLogging = "nutrition-logging",
|
|
20
19
|
ExerciseCreated = "exercise-created",
|
|
21
20
|
ExerciseGenerate = "exercise-generate",
|
|
22
21
|
GlucoseCreated = "glucose-created",
|
|
23
22
|
GlucoseGenerate = "glucose-generate",
|
|
24
|
-
GlucoseLogging = "glucose-logging",
|
|
25
23
|
ActivityLogged = "activity-logged",
|
|
26
24
|
RewardCreated = "reward-created",
|
|
27
|
-
StepsLogging = "steps-logging"
|
|
25
|
+
StepsLogging = "steps-logging",
|
|
26
|
+
ProactiveCheckIn = "proactive-check-in"
|
|
28
27
|
}
|
package/dist/topics.js
CHANGED
|
@@ -20,13 +20,12 @@ var Topics;
|
|
|
20
20
|
Topics["ProfileUpdated"] = "profile-updated";
|
|
21
21
|
Topics["EducationCreated"] = "education-created";
|
|
22
22
|
Topics["EducationGenerate"] = "education-generate";
|
|
23
|
-
Topics["NutritionLogging"] = "nutrition-logging";
|
|
24
23
|
Topics["ExerciseCreated"] = "exercise-created";
|
|
25
24
|
Topics["ExerciseGenerate"] = "exercise-generate";
|
|
26
25
|
Topics["GlucoseCreated"] = "glucose-created";
|
|
27
26
|
Topics["GlucoseGenerate"] = "glucose-generate";
|
|
28
|
-
Topics["GlucoseLogging"] = "glucose-logging";
|
|
29
27
|
Topics["ActivityLogged"] = "activity-logged";
|
|
30
28
|
Topics["RewardCreated"] = "reward-created";
|
|
31
29
|
Topics["StepsLogging"] = "steps-logging";
|
|
30
|
+
Topics["ProactiveCheckIn"] = "proactive-check-in";
|
|
32
31
|
})(Topics || (exports.Topics = Topics = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum MessageCategory {
|
|
2
|
+
DIET = "DIET",
|
|
3
|
+
EXERCISE = "EXERCISE",
|
|
4
|
+
STEPS = "STEPS",
|
|
5
|
+
EDUCATION = "EDUCATION",
|
|
6
|
+
GLUCOSE = "GLUCOSE",
|
|
7
|
+
USER = "USER"
|
|
8
|
+
}
|
|
9
|
+
export declare enum Intervention {
|
|
10
|
+
MORNING_CHECK_IN = 0,
|
|
11
|
+
END_OF_DAY_CHECK_IN = 1,
|
|
12
|
+
FESTIVE_PERIOD_CHECK_IN = 2,
|
|
13
|
+
POST_MEAL_SATIETY_CHECK = 3,
|
|
14
|
+
POST_UNHEALTHY_MEAL = 4,
|
|
15
|
+
HEALTHY_MEALS_REINFORCEMENT = 5,
|
|
16
|
+
POST_WORKOUT_CHECK_IN = 6,
|
|
17
|
+
BLOOD_SUGAR_ENCOURAGEMENT = 7,
|
|
18
|
+
POST_HIGH_BLOOD_SUGAR_LOG = 8,
|
|
19
|
+
STEP_GOAL_ACHIEVEMENT = 9,
|
|
20
|
+
WEEKLY_STEP_TREND_ANALYSIS = 10,
|
|
21
|
+
CRAVING_CHECK_IN = 11,
|
|
22
|
+
GENERAL_HEALTH_CHECK_IN = 12,
|
|
23
|
+
SUPPORT_DURING_DEMOTIVATION = 13,
|
|
24
|
+
CELEBRATION_OF_MILESTONES = 14
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Intervention = exports.MessageCategory = void 0;
|
|
4
|
+
var MessageCategory;
|
|
5
|
+
(function (MessageCategory) {
|
|
6
|
+
MessageCategory["DIET"] = "DIET";
|
|
7
|
+
MessageCategory["EXERCISE"] = "EXERCISE";
|
|
8
|
+
MessageCategory["STEPS"] = "STEPS";
|
|
9
|
+
MessageCategory["EDUCATION"] = "EDUCATION";
|
|
10
|
+
MessageCategory["GLUCOSE"] = "GLUCOSE";
|
|
11
|
+
MessageCategory["USER"] = "USER";
|
|
12
|
+
})(MessageCategory || (exports.MessageCategory = MessageCategory = {}));
|
|
13
|
+
var Intervention;
|
|
14
|
+
(function (Intervention) {
|
|
15
|
+
Intervention[Intervention["MORNING_CHECK_IN"] = 0] = "MORNING_CHECK_IN";
|
|
16
|
+
Intervention[Intervention["END_OF_DAY_CHECK_IN"] = 1] = "END_OF_DAY_CHECK_IN";
|
|
17
|
+
Intervention[Intervention["FESTIVE_PERIOD_CHECK_IN"] = 2] = "FESTIVE_PERIOD_CHECK_IN";
|
|
18
|
+
Intervention[Intervention["POST_MEAL_SATIETY_CHECK"] = 3] = "POST_MEAL_SATIETY_CHECK";
|
|
19
|
+
Intervention[Intervention["POST_UNHEALTHY_MEAL"] = 4] = "POST_UNHEALTHY_MEAL";
|
|
20
|
+
Intervention[Intervention["HEALTHY_MEALS_REINFORCEMENT"] = 5] = "HEALTHY_MEALS_REINFORCEMENT";
|
|
21
|
+
Intervention[Intervention["POST_WORKOUT_CHECK_IN"] = 6] = "POST_WORKOUT_CHECK_IN";
|
|
22
|
+
Intervention[Intervention["BLOOD_SUGAR_ENCOURAGEMENT"] = 7] = "BLOOD_SUGAR_ENCOURAGEMENT";
|
|
23
|
+
Intervention[Intervention["POST_HIGH_BLOOD_SUGAR_LOG"] = 8] = "POST_HIGH_BLOOD_SUGAR_LOG";
|
|
24
|
+
Intervention[Intervention["STEP_GOAL_ACHIEVEMENT"] = 9] = "STEP_GOAL_ACHIEVEMENT";
|
|
25
|
+
Intervention[Intervention["WEEKLY_STEP_TREND_ANALYSIS"] = 10] = "WEEKLY_STEP_TREND_ANALYSIS";
|
|
26
|
+
Intervention[Intervention["CRAVING_CHECK_IN"] = 11] = "CRAVING_CHECK_IN";
|
|
27
|
+
Intervention[Intervention["GENERAL_HEALTH_CHECK_IN"] = 12] = "GENERAL_HEALTH_CHECK_IN";
|
|
28
|
+
Intervention[Intervention["SUPPORT_DURING_DEMOTIVATION"] = 13] = "SUPPORT_DURING_DEMOTIVATION";
|
|
29
|
+
Intervention[Intervention["CELEBRATION_OF_MILESTONES"] = 14] = "CELEBRATION_OF_MILESTONES";
|
|
30
|
+
})(Intervention || (exports.Intervention = Intervention = {}));
|
package/package.json
CHANGED
|
File without changes
|