@hedia/types 2.2.10-alpha.4 → 2.3.0-alpha.0
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,5 +1,14 @@
|
|
|
1
|
-
import { BloodGlucoseUnit, BloodKetonesUnit } from "../../v1";
|
|
2
1
|
export declare namespace TreamentModelEnums {
|
|
2
|
+
/** Represents a unit for measuring blood glucose levels. */
|
|
3
|
+
enum BloodGlucoseUnit {
|
|
4
|
+
MMOL_L = "mmol/l",
|
|
5
|
+
MG_DL = "mg/dl"
|
|
6
|
+
}
|
|
7
|
+
/** Represents a unit for measuring blood ketone levels. */
|
|
8
|
+
enum BloodKetonesUnit {
|
|
9
|
+
MMOL_L = "mmol/l",
|
|
10
|
+
MG_DL = "mg/dl"
|
|
11
|
+
}
|
|
3
12
|
enum FastActingInsulin {
|
|
4
13
|
Novorapid = "Novorapid",
|
|
5
14
|
Fiasp = "Fiasp",
|
|
@@ -79,16 +88,16 @@ export declare namespace TreatmentModel {
|
|
|
79
88
|
insulinSettings: ICalculationParameter<InsulinSettingsInterval>;
|
|
80
89
|
}
|
|
81
90
|
export interface BloodGlucose {
|
|
82
|
-
bloodGlucoseUnit: BloodGlucoseUnit;
|
|
91
|
+
bloodGlucoseUnit: TreamentModelEnums.BloodGlucoseUnit;
|
|
83
92
|
bloodGlucoseTargets: ICalculationParameter<BGLInterval>;
|
|
84
93
|
}
|
|
85
94
|
export interface BloodKetone {
|
|
86
|
-
bloodKetoneUnit: BloodKetonesUnit;
|
|
95
|
+
bloodKetoneUnit: TreamentModelEnums.BloodKetonesUnit;
|
|
87
96
|
}
|
|
88
97
|
export interface Notifications {
|
|
89
98
|
medicineNotification: IMedicineNotification;
|
|
90
99
|
remeasurementNotification: IRemeasurementNotification;
|
|
91
|
-
deviceIdentifiers
|
|
100
|
+
deviceIdentifiers: Array<INotificationDeviceIdentifier> | null;
|
|
92
101
|
}
|
|
93
102
|
export interface IMedicineNotification {
|
|
94
103
|
toggle: boolean;
|
|
@@ -146,7 +155,7 @@ export declare namespace TreatmentModel {
|
|
|
146
155
|
bloodKetone: BloodKetone;
|
|
147
156
|
physicalActivities: ActivitySettings;
|
|
148
157
|
notifications: Notifications;
|
|
149
|
-
|
|
158
|
+
personalInfo: PersonalInfo;
|
|
150
159
|
}
|
|
151
160
|
export {};
|
|
152
161
|
}
|
|
@@ -3,6 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TreamentModelEnums = void 0;
|
|
4
4
|
var TreamentModelEnums;
|
|
5
5
|
(function (TreamentModelEnums) {
|
|
6
|
+
let Units;
|
|
7
|
+
(function (Units) {
|
|
8
|
+
Units["MMOL_L"] = "mmol/l";
|
|
9
|
+
Units["MG_DL"] = "mg/dl";
|
|
10
|
+
})(Units || (Units = {}));
|
|
11
|
+
/** Represents a unit for measuring blood glucose levels. */
|
|
12
|
+
let BloodGlucoseUnit;
|
|
13
|
+
(function (BloodGlucoseUnit) {
|
|
14
|
+
BloodGlucoseUnit["MMOL_L"] = "mmol/l";
|
|
15
|
+
BloodGlucoseUnit["MG_DL"] = "mg/dl";
|
|
16
|
+
})(BloodGlucoseUnit = TreamentModelEnums.BloodGlucoseUnit || (TreamentModelEnums.BloodGlucoseUnit = {}));
|
|
17
|
+
/** Represents a unit for measuring blood ketone levels. */
|
|
18
|
+
let BloodKetonesUnit;
|
|
19
|
+
(function (BloodKetonesUnit) {
|
|
20
|
+
BloodKetonesUnit["MMOL_L"] = "mmol/l";
|
|
21
|
+
BloodKetonesUnit["MG_DL"] = "mg/dl";
|
|
22
|
+
})(BloodKetonesUnit = TreamentModelEnums.BloodKetonesUnit || (TreamentModelEnums.BloodKetonesUnit = {}));
|
|
6
23
|
let FastActingInsulin;
|
|
7
24
|
(function (FastActingInsulin) {
|
|
8
25
|
FastActingInsulin["Novorapid"] = "Novorapid";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Treatment.js","sourceRoot":"","sources":["../../../v3/treatment/Treatment.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Treatment.js","sourceRoot":"","sources":["../../../v3/treatment/Treatment.ts"],"names":[],"mappings":";;;AAAA,IAAiB,kBAAkB,CA6DlC;AA7DD,WAAiB,kBAAkB;IAClC,IAAK,KAGJ;IAHD,WAAK,KAAK;QACT,0BAAiB,CAAA;QACjB,wBAAe,CAAA;IAChB,CAAC,EAHI,KAAK,KAAL,KAAK,QAGT;IACD,4DAA4D;IAC5D,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC3B,qCAAqB,CAAA;QACrB,mCAAmB,CAAA;IACpB,CAAC,EAHW,gBAAgB,GAAhB,mCAAgB,KAAhB,mCAAgB,QAG3B;IACD,2DAA2D;IAC3D,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC3B,qCAAqB,CAAA;QACrB,mCAAmB,CAAA;IACpB,CAAC,EAHW,gBAAgB,GAAhB,mCAAgB,KAAhB,mCAAgB,QAG3B;IACD,IAAY,iBAOX;IAPD,WAAY,iBAAiB;QAC5B,4CAAuB,CAAA;QACvB,oCAAe,CAAA;QACf,wCAAmB,CAAA;QACnB,sCAAiB,CAAA;QACjB,oCAAe,CAAA;QACf,kCAAa,CAAA;IACd,CAAC,EAPW,iBAAiB,GAAjB,oCAAiB,KAAjB,oCAAiB,QAO5B;IACD,IAAY,iBAQX;IARD,WAAY,iBAAiB;QAC5B,sCAAiB,CAAA;QACjB,0CAAqB,CAAA;QACrB,sCAAiB,CAAA;QACjB,wCAAmB,CAAA;QACnB,wCAAmB,CAAA;QACnB,oCAAe,CAAA;QACf,kCAAa,CAAA;IACd,CAAC,EARW,iBAAiB,GAAjB,oCAAiB,KAAjB,oCAAiB,QAQ5B;IACD,IAAY,YAGX;IAHD,WAAY,YAAY;QACvB,iDAAS,CAAA;QACT,iDAAS,CAAA;IACV,CAAC,EAHW,YAAY,GAAZ,+BAAY,KAAZ,+BAAY,QAGvB;IACD,IAAY,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