@taphealth/kafka 1.2.59 → 1.2.61

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.
@@ -4,14 +4,12 @@ export interface DietCreatedEvent {
4
4
  data: {
5
5
  userId: string;
6
6
  scheduledDate: string;
7
- meals: [
8
- {
9
- date: Date;
10
- mealTime: string;
11
- mealType: string;
12
- hasLogged: boolean;
13
- hadHealthyMeal?: boolean;
14
- }
15
- ];
7
+ meals: {
8
+ date: Date;
9
+ mealTime: string;
10
+ mealType: string;
11
+ hasLogged: boolean;
12
+ hadHealthyMeal?: boolean;
13
+ }[];
16
14
  };
17
15
  }
@@ -4,13 +4,11 @@ export interface EducationCreatedEvent {
4
4
  data: {
5
5
  userId: string;
6
6
  scheduledDate: string;
7
- plans: [
8
- {
9
- date: Date;
10
- title: string;
11
- description: string;
12
- completionStatus: boolean;
13
- }
14
- ];
7
+ plans: {
8
+ date: Date;
9
+ title: string;
10
+ description: string;
11
+ completionStatus: boolean;
12
+ }[];
15
13
  };
16
14
  }
@@ -1,17 +1,15 @@
1
1
  import { Topics } from "../topics";
2
- import { ExerciseDifficulty, ExerciseStatus } from "../types/exercise";
2
+ import { WorkoutStatus, WorkoutDifficulty } from "../types/exercise";
3
3
  export interface ExerciseCreatedEvent {
4
4
  topic: Topics.ExerciseCreated;
5
5
  data: {
6
6
  userId: string;
7
7
  scheduledDate: string;
8
- exercises: [
9
- {
10
- date: Date;
11
- name: string;
12
- status: ExerciseStatus;
13
- difficulty: ExerciseDifficulty;
14
- }
15
- ];
8
+ exercises: {
9
+ date: Date;
10
+ name: string;
11
+ status: WorkoutStatus;
12
+ difficulty: WorkoutDifficulty;
13
+ }[];
16
14
  };
17
15
  }
@@ -5,13 +5,11 @@ export interface GlucoseCreatedEvent {
5
5
  data: {
6
6
  userId: string;
7
7
  scheduledDate: string;
8
- schedules: [
9
- {
10
- date: Date;
11
- type: GlucoseType;
12
- dueTime: string;
13
- hasLogged: boolean;
14
- }
15
- ];
8
+ schedules: {
9
+ date: Date;
10
+ type: GlucoseType;
11
+ dueTime: string;
12
+ hasLogged: boolean;
13
+ }[];
16
14
  };
17
15
  }
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./types/payment";
8
8
  export * from "./types/profile";
9
9
  export * from "./types/glucose";
10
10
  export * from "./types/activity";
11
+ export * from "./types/exercise";
11
12
  export * from "./events/payment-captured";
12
13
  export * from "./events/payment-failed";
13
14
  export * from "./events/appointment-created";
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./types/payment"), exports);
24
24
  __exportStar(require("./types/profile"), exports);
25
25
  __exportStar(require("./types/glucose"), exports);
26
26
  __exportStar(require("./types/activity"), exports);
27
+ __exportStar(require("./types/exercise"), exports);
27
28
  __exportStar(require("./events/payment-captured"), exports);
28
29
  __exportStar(require("./events/payment-failed"), exports);
29
30
  __exportStar(require("./events/appointment-created"), exports);
@@ -1,8 +1,8 @@
1
- export declare enum ExerciseStatus {
1
+ export declare enum WorkoutStatus {
2
2
  INCOMPLETE = 0,
3
3
  COMPLETE = 1
4
4
  }
5
- export declare enum ExerciseDifficulty {
5
+ export declare enum WorkoutDifficulty {
6
6
  EASY = 0,
7
7
  MODERATE = 1,
8
8
  CHALLENGING = 2
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExerciseDifficulty = exports.ExerciseStatus = void 0;
4
- var ExerciseStatus;
5
- (function (ExerciseStatus) {
6
- ExerciseStatus[ExerciseStatus["INCOMPLETE"] = 0] = "INCOMPLETE";
7
- ExerciseStatus[ExerciseStatus["COMPLETE"] = 1] = "COMPLETE";
8
- })(ExerciseStatus || (exports.ExerciseStatus = ExerciseStatus = {}));
9
- var ExerciseDifficulty;
10
- (function (ExerciseDifficulty) {
11
- ExerciseDifficulty[ExerciseDifficulty["EASY"] = 0] = "EASY";
12
- ExerciseDifficulty[ExerciseDifficulty["MODERATE"] = 1] = "MODERATE";
13
- ExerciseDifficulty[ExerciseDifficulty["CHALLENGING"] = 2] = "CHALLENGING";
14
- })(ExerciseDifficulty || (exports.ExerciseDifficulty = ExerciseDifficulty = {}));
3
+ exports.WorkoutDifficulty = exports.WorkoutStatus = void 0;
4
+ var WorkoutStatus;
5
+ (function (WorkoutStatus) {
6
+ WorkoutStatus[WorkoutStatus["INCOMPLETE"] = 0] = "INCOMPLETE";
7
+ WorkoutStatus[WorkoutStatus["COMPLETE"] = 1] = "COMPLETE";
8
+ })(WorkoutStatus || (exports.WorkoutStatus = WorkoutStatus = {}));
9
+ var WorkoutDifficulty;
10
+ (function (WorkoutDifficulty) {
11
+ WorkoutDifficulty[WorkoutDifficulty["EASY"] = 0] = "EASY";
12
+ WorkoutDifficulty[WorkoutDifficulty["MODERATE"] = 1] = "MODERATE";
13
+ WorkoutDifficulty[WorkoutDifficulty["CHALLENGING"] = 2] = "CHALLENGING";
14
+ })(WorkoutDifficulty || (exports.WorkoutDifficulty = WorkoutDifficulty = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taphealth/kafka",
3
- "version": "1.2.59",
3
+ "version": "1.2.61",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",