@hedia/types 2.3.1-alpha.0 → 2.3.1-alpha.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.
@@ -1,7 +1,6 @@
1
1
  export declare namespace ForecastService {
2
2
  namespace Types {
3
3
  interface IForecastPacket {
4
- userId: string;
5
4
  inputDataTimestamp: string;
6
5
  calculationTimestamp: string;
7
6
  validPredictionTimestamp: string;
@@ -11,7 +10,6 @@ export declare namespace ForecastService {
11
10
  worstParkeBox: number;
12
11
  }
13
12
  interface IForecast {
14
- userId: string;
15
13
  inputDataTimestamp: Date;
16
14
  calculationTimestamp: Date;
17
15
  validPredictionTimestamp: Date;
@@ -22,22 +20,5 @@ export declare namespace ForecastService {
22
20
  glucoseForecastUpperDev: number;
23
21
  worstParkeBox: number;
24
22
  }
25
- interface IDevicePacketRequest {
26
- registrationToken: string;
27
- deviceId: string;
28
- timeOffset: number;
29
- }
30
- interface IDevicePacketResponse {
31
- id: string;
32
- registrationToken: string;
33
- deviceId: string;
34
- timeOffset: number;
35
- }
36
- interface IForecastNotificationSettings {
37
- enableHighAlerts: boolean;
38
- enableLowAlerts: boolean;
39
- lowAlertTimeSpanStart?: Date;
40
- lowAlertTimeSpanEnd?: Date;
41
- }
42
23
  }
43
24
  }
@@ -76,12 +76,16 @@ export declare namespace TreatmentModel {
76
76
  low: number;
77
77
  target: number;
78
78
  high: number;
79
- startTime: string;
79
+ startTime: TimeOfDay;
80
+ }
81
+ export interface TimeOfDay {
82
+ hours: number;
83
+ minutes: number;
80
84
  }
81
85
  export interface InsulinSettingsInterval {
82
86
  insulinSensitivity: number;
83
87
  carbohydrateRatio: number;
84
- startTime: string;
88
+ startTime: TimeOfDay;
85
89
  }
86
90
  export interface Insulin {
87
91
  injectionMethod: TreamentModelEnums.InjectionMethod;
@@ -101,7 +105,7 @@ export declare namespace TreatmentModel {
101
105
  }
102
106
  export interface IMedicineNotification {
103
107
  toggle: boolean;
104
- dailyReminderTime: string;
108
+ dailyReminderTime: TimeOfDay;
105
109
  }
106
110
  export interface IRemeasurementNotification {
107
111
  toggle: boolean;
@@ -145,7 +149,12 @@ export declare namespace TreatmentModel {
145
149
  gender: TreamentModelEnums.Gender;
146
150
  height: number;
147
151
  weight: number;
148
- birthday: string;
152
+ birthday: Birthday;
153
+ }
154
+ export interface Birthday {
155
+ date: number;
156
+ month: number;
157
+ year: number;
149
158
  }
150
159
  export interface TreatmentEntry {
151
160
  timestamps: Timestamps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.3.1-alpha.0",
3
+ "version": "2.3.1-alpha.2",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {