@hedia/types 2.4.0-alpha.0 → 2.4.1-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.
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/v1/activity/activity.d.ts +57 -63
- package/dist/v1/activity/activity.js +24 -30
- package/dist/v1/activity/activity.js.map +1 -1
- package/dist/v1/boluscalculator/boluscalculator.d.ts +72 -80
- package/dist/v1/boluscalculator/boluscalculator.js +17 -26
- package/dist/v1/boluscalculator/boluscalculator.js.map +1 -1
- package/dist/v1/enums.js +10 -10
- package/dist/v1/enums.js.map +1 -1
- package/dist/v1/index.js +5 -1
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/logbook/logbook.d.ts +133 -139
- package/dist/v1/logbook/logbook.js +10 -16
- package/dist/v1/logbook/logbook.js.map +1 -1
- package/dist/v1/userdetails/userdetails.d.ts +7 -11
- package/dist/v1/usersettings/usersettings.d.ts +122 -128
- package/dist/v1/usersettings/usersettings.js +46 -52
- package/dist/v1/usersettings/usersettings.js.map +1 -1
- package/package.json +44 -41
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -14
- package/dist/index.js.map +0 -1
|
@@ -1,140 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
activity_reduction: number | null;
|
|
135
|
-
active_insulin: number | null;
|
|
136
|
-
blood_glucose_millimolar_sample_id: string | null;
|
|
137
|
-
smart_pen_sync_timestamp?: string;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
1
|
+
/** Used to differentiate the different moods that users can select. */
|
|
2
|
+
export declare enum MoodEnum {
|
|
3
|
+
Sad = 1,
|
|
4
|
+
SemiSad = 2,
|
|
5
|
+
Neutral = 3,
|
|
6
|
+
SemiHappy = 4,
|
|
7
|
+
Happy = 5
|
|
8
|
+
}
|
|
9
|
+
export interface IEditedUUID {
|
|
10
|
+
oldUUID: string;
|
|
11
|
+
newUUID: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IClientSyncObject {
|
|
14
|
+
last_sync_timestamp: string;
|
|
15
|
+
created: ILogbookEntry[];
|
|
16
|
+
edited: IEditedUUID[];
|
|
17
|
+
deleted: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface IBackendSyncObject {
|
|
20
|
+
last_sync_timestamp: string;
|
|
21
|
+
created: ILogbookEntry[];
|
|
22
|
+
deleted: string[];
|
|
23
|
+
}
|
|
24
|
+
export interface ILogbookEntry {
|
|
25
|
+
/** Unique id for each logbook*/
|
|
26
|
+
uuid: string;
|
|
27
|
+
/**
|
|
28
|
+
* The timestamp at which this logbook entry should be displayed in to the user.
|
|
29
|
+
* This may differ from client_timestamp if the user created the logbook entry manually after the fact
|
|
30
|
+
* or they edited the entry timestamp of the logbook entry after it was first created.
|
|
31
|
+
*/
|
|
32
|
+
entry_timestamp: Date;
|
|
33
|
+
/**
|
|
34
|
+
* The timestamp at which this logbook entry was saved in the server's database.
|
|
35
|
+
* This can be expected to be the time of the first syncrhonization after the logbook entry was created on the client.
|
|
36
|
+
*/
|
|
37
|
+
server_timestamp: Date | null;
|
|
38
|
+
/**
|
|
39
|
+
* The timestamp at which the logbook entry was created on the client.
|
|
40
|
+
* This may differ from entry_timestamp if the user created the logbook entry manually after the fact
|
|
41
|
+
* or they edited the entry timestamp of the logbook entry after it was first created.
|
|
42
|
+
*/
|
|
43
|
+
client_timestamp: Date;
|
|
44
|
+
/**
|
|
45
|
+
* When the user makes changes to an existing logbook entry, the changes will be saved as a completely new logbook entry.
|
|
46
|
+
* For the old entry, this field will then be updated with the uuid of the new version of the logbook entry.
|
|
47
|
+
* The value is null by default (that is if the entry hasn't been replaced with a newer version).
|
|
48
|
+
* Logbook entries that don't contain null in this field are considered outdated and should gerenerally be excluded when computing statistics and the like.
|
|
49
|
+
*/
|
|
50
|
+
overwritten_by_id: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The uuid of the settings object that was used on the client when the logbook entry was created.
|
|
53
|
+
* Note that if the user updates their settings later this field will not be updated.
|
|
54
|
+
* This allows us to exactly which settings were used to make an old insulin calculation
|
|
55
|
+
*/
|
|
56
|
+
settings_uuid: string;
|
|
57
|
+
/** The version of the app that was used to create the logbook entry. e.g. "2.7.3" */
|
|
58
|
+
client_version: string;
|
|
59
|
+
/** For keeping track of which version of the server that was used when the logbook entry was synchronized and saved to the database. */
|
|
60
|
+
server_version: number | null;
|
|
61
|
+
/**
|
|
62
|
+
* For keeping track of which os and os version the app was running on when the logbook entry was created.
|
|
63
|
+
* For android this is the API level, e.g. "android 28" or "android 24".
|
|
64
|
+
* For iOS this is the version of the os, e.g. "ios 13.3.1" or "ios 13.5.1"
|
|
65
|
+
*/
|
|
66
|
+
device_and_os: string;
|
|
67
|
+
/**
|
|
68
|
+
* The exact result of the insulin recommendation calculation without rounding.
|
|
69
|
+
* Should be 0 if the user made a calculation and didn't get a recommendation
|
|
70
|
+
* (because it was recommended that they should eat additional carbohydrates instead).
|
|
71
|
+
*/
|
|
72
|
+
insulin_suggested_units: number | null;
|
|
73
|
+
/**
|
|
74
|
+
* The value in the insulin field when the logbook entry was saved.
|
|
75
|
+
* By default the value in the insulin field is the suggested amount of insulin that has been rounded based on the user's injection method,
|
|
76
|
+
* so most often that is the value that will be saved in this field.
|
|
77
|
+
* If the user has changed the value of the field, then that is of course the value that will be saved here.
|
|
78
|
+
*/
|
|
79
|
+
insulin_entered_units: number | null;
|
|
80
|
+
/**
|
|
81
|
+
* The amount of extra carbohydrates that was recommended to the user if they made a calculation.
|
|
82
|
+
* If they were recommended to take insulin instead this should be 0.
|
|
83
|
+
* Should be <null> if they did not get a recommendation at all (e.g. because they made a manual entry instead
|
|
84
|
+
*/
|
|
85
|
+
carbohydrates_suggested_grams: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* The total amount (sum) of carbohydrates that the user ingested for this logbook entry including from the food database,
|
|
88
|
+
* manual entry of carbohydrates, and additional carbohdyrates that they are eating.
|
|
89
|
+
*/
|
|
90
|
+
carbohydrates_entered_grams: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* The amount of carbohydrates that was entered in the “additional carbohydrates” field on the recommendation screen if the user got a carbohydrate recommendation.
|
|
93
|
+
* The field defaults to the carbohydrates_suggested_grams, so those should be identical unless the user modified the value.
|
|
94
|
+
*/
|
|
95
|
+
carbohydrates_modified_suggested_grams: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* The user's blood glucose level in mmol/L (millimolar) for the logbook entry.
|
|
98
|
+
* Should be <null> if the user didn't actually enter their BGL for the logbook entry.
|
|
99
|
+
*/
|
|
100
|
+
blood_glucose_millimolar: number | null;
|
|
101
|
+
/**
|
|
102
|
+
* The user's blood ketones level in mmol/L (millimolar) for the logbook entry.
|
|
103
|
+
* Should be <null> if the user didn't actually enter their BGL for the logbook entry.
|
|
104
|
+
*/
|
|
105
|
+
blood_ketones_millimolar: number | null;
|
|
106
|
+
/**
|
|
107
|
+
* The mood the the user selected with the logbook entry from 1 (sad) to 5 (happy).
|
|
108
|
+
* Should be <null> if the user didn't select a mood.
|
|
109
|
+
*/
|
|
110
|
+
mood: MoodEnum | null;
|
|
111
|
+
/**
|
|
112
|
+
* The uuid of the event (physical activity) that was associated with the logbook entry.
|
|
113
|
+
* Should be <null> if no event is associated with the logbook entry.
|
|
114
|
+
*/
|
|
115
|
+
event_uuid: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* We never actually delete logbook entries, but this field indicates if a logbook entry shoulb be considered removed by the user.
|
|
118
|
+
* The value is <null> by default.
|
|
119
|
+
* If an entry is removed then this field is updated with the timestamp when it was removed.
|
|
120
|
+
*/
|
|
121
|
+
is_deleted: Date | null;
|
|
122
|
+
/**
|
|
123
|
+
* Indicates the timezone of the client device at the time when the logbook entry was created as an offset from UTC.
|
|
124
|
+
* Example values: "+01:00", "-05:00", "+05:30", "+08:00".
|
|
125
|
+
* Can be used in combination with entry_timestamp and client_timestamp (which are both in UTC)
|
|
126
|
+
* to determine what time those timestamps represented in the users local time.
|
|
127
|
+
*/
|
|
128
|
+
utc_timezone_offset: string | null;
|
|
129
|
+
timezone: string;
|
|
130
|
+
activity_reduction: number | null;
|
|
131
|
+
active_insulin: number | null;
|
|
132
|
+
blood_glucose_millimolar_sample_id: string | null;
|
|
133
|
+
smart_pen_sync_timestamp?: string;
|
|
140
134
|
}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
MoodEnum[MoodEnum["Neutral"] = 3] = "Neutral";
|
|
14
|
-
MoodEnum[MoodEnum["SemiHappy"] = 4] = "SemiHappy";
|
|
15
|
-
MoodEnum[MoodEnum["Happy"] = 5] = "Happy";
|
|
16
|
-
})(MoodEnum = Enums.MoodEnum || (Enums.MoodEnum = {}));
|
|
17
|
-
})(Enums = Logbook.Enums || (Logbook.Enums = {}));
|
|
18
|
-
})(Logbook = exports.Logbook || (exports.Logbook = {}));
|
|
3
|
+
exports.MoodEnum = void 0;
|
|
4
|
+
/** Used to differentiate the different moods that users can select. */
|
|
5
|
+
var MoodEnum;
|
|
6
|
+
(function (MoodEnum) {
|
|
7
|
+
MoodEnum[MoodEnum["Sad"] = 1] = "Sad";
|
|
8
|
+
MoodEnum[MoodEnum["SemiSad"] = 2] = "SemiSad";
|
|
9
|
+
MoodEnum[MoodEnum["Neutral"] = 3] = "Neutral";
|
|
10
|
+
MoodEnum[MoodEnum["SemiHappy"] = 4] = "SemiHappy";
|
|
11
|
+
MoodEnum[MoodEnum["Happy"] = 5] = "Happy";
|
|
12
|
+
})(MoodEnum || (exports.MoodEnum = MoodEnum = {}));
|
|
19
13
|
//# sourceMappingURL=logbook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../v1/logbook/logbook.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../v1/logbook/logbook.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AACvE,IAAY,QAMX;AAND,WAAY,QAAQ;IACnB,qCAAO,CAAA;IACP,6CAAW,CAAA;IACX,6CAAW,CAAA;IACX,iDAAa,CAAA;IACb,yCAAS,CAAA;AACV,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Languages } from "../enums";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
country?: string;
|
|
10
|
-
language?: keyof typeof Languages;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
2
|
+
export interface IUserDetails {
|
|
3
|
+
name?: string;
|
|
4
|
+
email: string;
|
|
5
|
+
research_consent: Date | null;
|
|
6
|
+
newsletter_consent: Date | null;
|
|
7
|
+
country?: string;
|
|
8
|
+
language?: keyof typeof Languages;
|
|
13
9
|
}
|
|
@@ -1,130 +1,124 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActivitySettings } from "../activity/activity";
|
|
2
2
|
import { BloodGlucoseUnit, BloodKetonesUnit } from "../enums";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
enum InjectionMethod {
|
|
125
|
-
PenHalf = "Pen-half",
|
|
126
|
-
PenWhole = "Pen-whole",
|
|
127
|
-
Pump = "Pump"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
3
|
+
export interface IUserSettings {
|
|
4
|
+
diabetesType?: DiabetesType;
|
|
5
|
+
insulinDependent?: boolean;
|
|
6
|
+
gender?: Gender;
|
|
7
|
+
height?: number;
|
|
8
|
+
email?: string;
|
|
9
|
+
weight?: number;
|
|
10
|
+
birthday?: string;
|
|
11
|
+
treatmentType?: InjectionMethod;
|
|
12
|
+
bloodGlucoseUnits?: BloodGlucoseUnit;
|
|
13
|
+
bloodKetonesUnit?: BloodKetonesUnit;
|
|
14
|
+
parameters?: IParameters;
|
|
15
|
+
glucoseLevelTargets?: IBGLTargets;
|
|
16
|
+
fastActingInsulin?: FastActingInsulin;
|
|
17
|
+
longActingInsulin?: LongActingInsulin;
|
|
18
|
+
uuidOld?: string;
|
|
19
|
+
uuid?: string;
|
|
20
|
+
created?: string;
|
|
21
|
+
activity?: ActivitySettings;
|
|
22
|
+
notifications?: IUSerSettingsNotifications;
|
|
23
|
+
}
|
|
24
|
+
export interface IUserSettingsPostgresRaw {
|
|
25
|
+
id: number;
|
|
26
|
+
uuid: string;
|
|
27
|
+
user_id: number;
|
|
28
|
+
created_date: string;
|
|
29
|
+
client_created_date: string;
|
|
30
|
+
diabetes_type: DiabetesType;
|
|
31
|
+
insulin_dependent: boolean;
|
|
32
|
+
gender: Gender;
|
|
33
|
+
height: number;
|
|
34
|
+
weight: number;
|
|
35
|
+
date_of_birth: string;
|
|
36
|
+
injection_method: InjectionMethod;
|
|
37
|
+
bgl_units: BloodGlucoseUnit;
|
|
38
|
+
blood_ketones_unit: BloodKetonesUnit;
|
|
39
|
+
fast_acting_insulin: string;
|
|
40
|
+
long_acting_insulin: string;
|
|
41
|
+
treatment_parameters: IUserSettings["parameters"];
|
|
42
|
+
bgl_targets: IUserSettings["glucoseLevelTargets"];
|
|
43
|
+
activity: IUserSettings["activity"];
|
|
44
|
+
notifications: IUserSettings["notifications"];
|
|
45
|
+
}
|
|
46
|
+
export interface IUSerSettingsNotifications {
|
|
47
|
+
medicineNotification: IMedicineNotification;
|
|
48
|
+
remeasurementNotification: IRemeasurementNotification;
|
|
49
|
+
deviceIdentifiers?: INotificationDeviceIdentifier[];
|
|
50
|
+
}
|
|
51
|
+
export interface INotifications {
|
|
52
|
+
toggle: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface IMedicineNotification extends INotifications {
|
|
55
|
+
dailyReminderTime: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IRemeasurementNotification extends INotifications {
|
|
58
|
+
remeasurement: number;
|
|
59
|
+
}
|
|
60
|
+
export interface IInterval {
|
|
61
|
+
startTime: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IParameters {
|
|
64
|
+
parameterIntervals: IParameterInterval[];
|
|
65
|
+
overallParameters: IParameterInterval;
|
|
66
|
+
use?: Usage;
|
|
67
|
+
}
|
|
68
|
+
export interface IParameterInterval extends IInterval {
|
|
69
|
+
insulinSensitivity: number;
|
|
70
|
+
carbohydrateRatio: number;
|
|
71
|
+
}
|
|
72
|
+
export interface IBGLTargets {
|
|
73
|
+
targetBGLIntervals?: IBGLInterval[];
|
|
74
|
+
overallTargetBGL?: IBGLInterval;
|
|
75
|
+
use?: Usage;
|
|
76
|
+
}
|
|
77
|
+
export interface IBGLInterval extends IInterval {
|
|
78
|
+
low: number;
|
|
79
|
+
target: number;
|
|
80
|
+
high: number;
|
|
81
|
+
}
|
|
82
|
+
export interface INotificationDeviceIdentifier {
|
|
83
|
+
token: string;
|
|
84
|
+
timestamp: number;
|
|
85
|
+
}
|
|
86
|
+
export declare enum Usage {
|
|
87
|
+
Overall = "overall",
|
|
88
|
+
Intervals = "intervals"
|
|
89
|
+
}
|
|
90
|
+
export declare enum FastActingInsulin {
|
|
91
|
+
Novorapid = "Novorapid",
|
|
92
|
+
Fiasp = "Fiasp",
|
|
93
|
+
Humalog = "Humalog",
|
|
94
|
+
Apidra = "Apidra",
|
|
95
|
+
Other = "Other",
|
|
96
|
+
None = "None"
|
|
97
|
+
}
|
|
98
|
+
export declare enum LongActingInsulin {
|
|
99
|
+
Lantus = "Lantus",
|
|
100
|
+
Basaglar = "Basaglar",
|
|
101
|
+
Tuojeo = "Tuojeo",
|
|
102
|
+
Levemir = "Levemir",
|
|
103
|
+
Tresiba = "Tresiba",
|
|
104
|
+
Other = "Other",
|
|
105
|
+
None = "None"
|
|
106
|
+
}
|
|
107
|
+
export declare enum DiabetesType {
|
|
108
|
+
Type1 = 1,
|
|
109
|
+
Type2 = 2
|
|
110
|
+
}
|
|
111
|
+
export declare enum Gender {
|
|
112
|
+
Male = "Male",
|
|
113
|
+
Female = "Female",
|
|
114
|
+
Unspecified = "Unspecified"
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* String enum for differentiating between different methods by which someone can inject insulin into the body.
|
|
118
|
+
* Mainly used to determine how insulin amounts should be rounded.
|
|
119
|
+
*/
|
|
120
|
+
export declare enum InjectionMethod {
|
|
121
|
+
PenHalf = "Pen-half",
|
|
122
|
+
PenWhole = "Pen-whole",
|
|
123
|
+
Pump = "Pump"
|
|
130
124
|
}
|