@taphealth/kafka 1.6.39 → 1.6.42

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,10 +1,11 @@
1
1
  import { Topics } from "../topics";
2
- import { PlanUpdatedTrigger } from "../types/plan";
2
+ import { PlanUpdatedTrigger, PlanUpdateTarget } from "../types/plan";
3
3
  export interface PlanUpdateEvent {
4
4
  topic: Topics.PlanUpdate;
5
5
  data: {
6
6
  userId: string;
7
7
  guidelines?: Record<string, string>;
8
8
  trigger: PlanUpdatedTrigger;
9
+ target?: PlanUpdateTarget;
9
10
  };
10
11
  }
@@ -1,10 +1,11 @@
1
1
  import { Topics } from "../topics";
2
- import { PlanUpdatedTrigger } from "../types/plan";
2
+ import { PlanUpdatedTrigger, PlanUpdateTarget } from "../types/plan";
3
3
  export interface PlanUpdatedEvent {
4
4
  topic: Topics.PlanUpdated;
5
5
  data: {
6
6
  userId: string;
7
7
  guidelines?: Record<string, string>;
8
8
  trigger: PlanUpdatedTrigger;
9
+ target?: PlanUpdateTarget;
9
10
  };
10
11
  }
@@ -5,7 +5,10 @@ export declare enum GlucoseType {
5
5
  POST_BREAKFAST = 3,
6
6
  POST_LUNCH = 4,
7
7
  POST_DINNER = 5,
8
- RANDOM = 6
8
+ RANDOM = 6,
9
+ PRE_MEAL = 7,
10
+ POST_MEAL = 8,
11
+ NIGHT = 9
9
12
  }
10
13
  export declare enum GlucoseRange {
11
14
  LOW = 0,
@@ -10,6 +10,9 @@ var GlucoseType;
10
10
  GlucoseType[GlucoseType["POST_LUNCH"] = 4] = "POST_LUNCH";
11
11
  GlucoseType[GlucoseType["POST_DINNER"] = 5] = "POST_DINNER";
12
12
  GlucoseType[GlucoseType["RANDOM"] = 6] = "RANDOM";
13
+ GlucoseType[GlucoseType["PRE_MEAL"] = 7] = "PRE_MEAL";
14
+ GlucoseType[GlucoseType["POST_MEAL"] = 8] = "POST_MEAL";
15
+ GlucoseType[GlucoseType["NIGHT"] = 9] = "NIGHT";
13
16
  })(GlucoseType || (exports.GlucoseType = GlucoseType = {}));
14
17
  var GlucoseRange;
15
18
  (function (GlucoseRange) {
@@ -3,3 +3,7 @@ export declare enum PlanUpdatedTrigger {
3
3
  Symptom = "Symptom",
4
4
  Routine = "Routine"
5
5
  }
6
+ export declare enum PlanUpdateTarget {
7
+ NextWeek = "NextWeek",
8
+ CurrentWeek = "CurrentWeek"
9
+ }
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlanUpdatedTrigger = void 0;
3
+ exports.PlanUpdateTarget = exports.PlanUpdatedTrigger = void 0;
4
4
  var PlanUpdatedTrigger;
5
5
  (function (PlanUpdatedTrigger) {
6
6
  PlanUpdatedTrigger["LabReport"] = "LabReport";
7
7
  PlanUpdatedTrigger["Symptom"] = "Symptom";
8
8
  PlanUpdatedTrigger["Routine"] = "Routine";
9
9
  })(PlanUpdatedTrigger || (exports.PlanUpdatedTrigger = PlanUpdatedTrigger = {}));
10
+ var PlanUpdateTarget;
11
+ (function (PlanUpdateTarget) {
12
+ PlanUpdateTarget["NextWeek"] = "NextWeek";
13
+ PlanUpdateTarget["CurrentWeek"] = "CurrentWeek";
14
+ })(PlanUpdateTarget || (exports.PlanUpdateTarget = PlanUpdateTarget = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taphealth/kafka",
3
- "version": "1.6.39",
3
+ "version": "1.6.42",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",