@taphealth/kafka 1.6.34 → 1.6.37
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/plan-updated.d.ts +10 -0
- package/dist/events/plan-updated.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/topics.d.ts +1 -0
- package/dist/topics.js +1 -0
- package/dist/types/plan.d.ts +5 -0
- package/dist/types/plan.js +9 -0
- package/dist/types/profile.d.ts +12 -2
- package/package.json +7 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Topics } from "../topics";
|
|
2
|
+
import { PlanUpdatedTrigger } from "../types/plan";
|
|
3
|
+
export interface PlanUpdatedEvent {
|
|
4
|
+
topic: Topics.PlanUpdated;
|
|
5
|
+
data: {
|
|
6
|
+
userId: string;
|
|
7
|
+
guidelines?: Record<string, string>;
|
|
8
|
+
trigger: PlanUpdatedTrigger;
|
|
9
|
+
};
|
|
10
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./types/proactive";
|
|
|
13
13
|
export * from "./types/notification";
|
|
14
14
|
export * from "./types/challenge-task";
|
|
15
15
|
export * from "./types/habit";
|
|
16
|
+
export * from "./types/plan";
|
|
16
17
|
export * from "./events/payment-captured";
|
|
17
18
|
export * from "./events/payment-failed";
|
|
18
19
|
export * from "./events/appointment-created";
|
|
@@ -43,6 +44,7 @@ export * from "./events/subscription-downgrade";
|
|
|
43
44
|
export * from "./events/subscription-renewed";
|
|
44
45
|
export * from "./events/plan-created";
|
|
45
46
|
export * from "./events/plan-generate";
|
|
47
|
+
export * from "./events/plan-updated";
|
|
46
48
|
export * from "./events/notification";
|
|
47
49
|
export * from "./events/medication-reminder";
|
|
48
50
|
export * from "./events/medication-reminder-updated";
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./types/proactive"), exports);
|
|
|
29
29
|
__exportStar(require("./types/notification"), exports);
|
|
30
30
|
__exportStar(require("./types/challenge-task"), exports);
|
|
31
31
|
__exportStar(require("./types/habit"), exports);
|
|
32
|
+
__exportStar(require("./types/plan"), exports);
|
|
32
33
|
__exportStar(require("./events/payment-captured"), exports);
|
|
33
34
|
__exportStar(require("./events/payment-failed"), exports);
|
|
34
35
|
__exportStar(require("./events/appointment-created"), exports);
|
|
@@ -59,6 +60,7 @@ __exportStar(require("./events/subscription-downgrade"), exports);
|
|
|
59
60
|
__exportStar(require("./events/subscription-renewed"), exports);
|
|
60
61
|
__exportStar(require("./events/plan-created"), exports);
|
|
61
62
|
__exportStar(require("./events/plan-generate"), exports);
|
|
63
|
+
__exportStar(require("./events/plan-updated"), exports);
|
|
62
64
|
__exportStar(require("./events/notification"), exports);
|
|
63
65
|
__exportStar(require("./events/medication-reminder"), exports);
|
|
64
66
|
__exportStar(require("./events/medication-reminder-updated"), exports);
|
package/dist/topics.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare enum Topics {
|
|
|
31
31
|
SubscriptionRenewed = "subscription-renewed",
|
|
32
32
|
PlanCreated = "plan-created",
|
|
33
33
|
PlanGenerate = "plan-generate",
|
|
34
|
+
PlanUpdated = "plan-updated",
|
|
34
35
|
Notification = "notification",
|
|
35
36
|
MedicationReminder = "medication-reminder",
|
|
36
37
|
MedicationReminderUpdated = "medication-reminder-updated",
|
package/dist/topics.js
CHANGED
|
@@ -35,6 +35,7 @@ var Topics;
|
|
|
35
35
|
Topics["SubscriptionRenewed"] = "subscription-renewed";
|
|
36
36
|
Topics["PlanCreated"] = "plan-created";
|
|
37
37
|
Topics["PlanGenerate"] = "plan-generate";
|
|
38
|
+
Topics["PlanUpdated"] = "plan-updated";
|
|
38
39
|
Topics["Notification"] = "notification";
|
|
39
40
|
Topics["MedicationReminder"] = "medication-reminder";
|
|
40
41
|
Topics["MedicationReminderUpdated"] = "medication-reminder-updated";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlanUpdatedTrigger = void 0;
|
|
4
|
+
var PlanUpdatedTrigger;
|
|
5
|
+
(function (PlanUpdatedTrigger) {
|
|
6
|
+
PlanUpdatedTrigger["LabReport"] = "LabReport";
|
|
7
|
+
PlanUpdatedTrigger["Symptom"] = "Symptom";
|
|
8
|
+
PlanUpdatedTrigger["Routine"] = "Routine";
|
|
9
|
+
})(PlanUpdatedTrigger || (exports.PlanUpdatedTrigger = PlanUpdatedTrigger = {}));
|
package/dist/types/profile.d.ts
CHANGED
|
@@ -92,9 +92,19 @@ export interface DietSettings {
|
|
|
92
92
|
lunchPreference?: string[];
|
|
93
93
|
dinnerPreference?: string[];
|
|
94
94
|
}
|
|
95
|
+
export interface MedicalConditionData {
|
|
96
|
+
id: string;
|
|
97
|
+
snomedConceptId?: string;
|
|
98
|
+
label: string;
|
|
99
|
+
clinicalCourse?: "EPISODIC" | "CHRONIC" | "ACUTE" | "RECURRENT";
|
|
100
|
+
status: "ACTIVE" | "RESOLVED" | "IN_REMISSION";
|
|
101
|
+
certainty: "CONFIRMED" | "SUSPECTED" | "RULED_OUT";
|
|
102
|
+
source: "SELF_REPORTED" | "CLINICAL" | "LAB_RESULT";
|
|
103
|
+
}
|
|
95
104
|
export interface MedicalSettings {
|
|
96
|
-
medicalConditions
|
|
97
|
-
|
|
105
|
+
medicalConditions?: string[];
|
|
106
|
+
conditions?: MedicalConditionData[];
|
|
107
|
+
recentSurgery?: boolean;
|
|
98
108
|
}
|
|
99
109
|
export interface LifeStyleRoutineSettings {
|
|
100
110
|
currentFamilyStructure: string;
|
package/package.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taphealth/kafka",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"/dist/**/*"
|
|
9
9
|
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"clean": "del-cli ./dist/*",
|
|
12
|
-
"build": "pnpm clean && tsc",
|
|
13
|
-
"pub": "pnpm version patch --no-git-checks && pnpm build && pnpm publish --no-git-checks"
|
|
14
|
-
},
|
|
15
10
|
"keywords": [],
|
|
16
11
|
"author": "",
|
|
17
12
|
"license": "ISC",
|
|
@@ -23,5 +18,10 @@
|
|
|
23
18
|
"dependencies": {
|
|
24
19
|
"@taphealth/errors": "^1.1.8",
|
|
25
20
|
"kafkajs": "^2.2.4"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"clean": "del-cli ./dist/*",
|
|
24
|
+
"build": "pnpm clean && tsc",
|
|
25
|
+
"pub": "pnpm version patch --no-git-checks && pnpm build && pnpm publish --no-git-checks"
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}
|