@hedia/types 2.2.10-alpha.4 → 2.3.0-alpha.1
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/v3/index.d.ts +2 -2
- package/dist/v3/index.js +2 -2
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/physicalActivity/physicalActivity.d.ts +31 -0
- package/dist/v3/physicalActivity/{PhysicalActivity.js → physicalActivity.js} +6 -6
- package/dist/v3/physicalActivity/physicalActivity.js.map +1 -0
- package/dist/v3/sync/sync.d.ts +5 -0
- package/dist/v3/treatment/{Treatment.d.ts → treatment.d.ts} +15 -6
- package/dist/v3/treatment/{Treatment.js → treatment.js} +18 -1
- package/dist/v3/treatment/treatment.js.map +1 -0
- package/dist/v3/userDetails/userDetails.d.ts +1 -1
- package/package.json +1 -1
- package/dist/v3/physicalActivity/PhysicalActivity.d.ts +0 -34
- package/dist/v3/physicalActivity/PhysicalActivity.js.map +0 -1
- package/dist/v3/treatment/Treatment.js.map +0 -1
package/dist/v3/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export * from "./services/notification";
|
|
|
8
8
|
export * from "./services/forecast";
|
|
9
9
|
export * from "./services/report";
|
|
10
10
|
export * from "./services/user";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./physicalActivity/PhysicalActivity";
|
|
11
|
+
export * from "./physicalActivity/physicalActivity";
|
|
13
12
|
export * from "./userDetails/userDetails";
|
|
13
|
+
export * from "./treatment/treatment";
|
package/dist/v3/index.js
CHANGED
|
@@ -20,7 +20,7 @@ __exportStar(require("./services/notification"), exports);
|
|
|
20
20
|
__exportStar(require("./services/forecast"), exports);
|
|
21
21
|
__exportStar(require("./services/report"), exports);
|
|
22
22
|
__exportStar(require("./services/user"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./physicalActivity/PhysicalActivity"), exports);
|
|
23
|
+
__exportStar(require("./physicalActivity/physicalActivity"), exports);
|
|
25
24
|
__exportStar(require("./userDetails/userDetails"), exports);
|
|
25
|
+
__exportStar(require("./treatment/treatment"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/dist/v3/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,sEAAoD;AACpD,4DAA0C;AAC1C,wDAAsC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TreamentModelEnums } from "../treatment/treatment";
|
|
2
|
+
export declare namespace PhysicalActivityModel {
|
|
3
|
+
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
4
|
+
enum ActivityEnum {
|
|
5
|
+
Run = "Run",
|
|
6
|
+
Walk = "Walk",
|
|
7
|
+
Cycling = "Cycling",
|
|
8
|
+
Swim = "Swim",
|
|
9
|
+
Other = "Other"
|
|
10
|
+
}
|
|
11
|
+
interface Timestamps {
|
|
12
|
+
clientTimestamp: Date;
|
|
13
|
+
startTimestamp: string;
|
|
14
|
+
}
|
|
15
|
+
interface Identifiers {
|
|
16
|
+
uuid: string;
|
|
17
|
+
version: number;
|
|
18
|
+
}
|
|
19
|
+
interface PhysicalActivityProperties {
|
|
20
|
+
type: ActivityEnum;
|
|
21
|
+
activityIntensity: TreamentModelEnums.ActivityIntensity;
|
|
22
|
+
durationSeconds: number;
|
|
23
|
+
title: string | null;
|
|
24
|
+
}
|
|
25
|
+
interface PhysicalActivityEntry {
|
|
26
|
+
timestamps: Timestamps;
|
|
27
|
+
identifiers: Identifiers;
|
|
28
|
+
activityProperties: PhysicalActivityProperties;
|
|
29
|
+
isDeleted: boolean;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
3
|
+
exports.PhysicalActivityModel = void 0;
|
|
4
|
+
var PhysicalActivityModel;
|
|
5
|
+
(function (PhysicalActivityModel) {
|
|
6
6
|
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
7
7
|
let ActivityEnum;
|
|
8
8
|
(function (ActivityEnum) {
|
|
@@ -11,6 +11,6 @@ var ActivityModel;
|
|
|
11
11
|
ActivityEnum["Cycling"] = "Cycling";
|
|
12
12
|
ActivityEnum["Swim"] = "Swim";
|
|
13
13
|
ActivityEnum["Other"] = "Other";
|
|
14
|
-
})(ActivityEnum =
|
|
15
|
-
})(
|
|
16
|
-
//# sourceMappingURL=
|
|
14
|
+
})(ActivityEnum = PhysicalActivityModel.ActivityEnum || (PhysicalActivityModel.ActivityEnum = {}));
|
|
15
|
+
})(PhysicalActivityModel = exports.PhysicalActivityModel || (exports.PhysicalActivityModel = {}));
|
|
16
|
+
//# sourceMappingURL=physicalActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"physicalActivity.js","sourceRoot":"","sources":["../../../v3/physicalActivity/physicalActivity.ts"],"names":[],"mappings":";;;AAEA,IAAiB,qBAAqB,CA+BrC;AA/BD,WAAiB,qBAAqB;IACrC,iFAAiF;IACjF,IAAY,YAMX;IAND,WAAY,YAAY;QACvB,2BAAW,CAAA;QACX,6BAAa,CAAA;QACb,mCAAmB,CAAA;QACnB,6BAAa,CAAA;QACb,+BAAe,CAAA;IAChB,CAAC,EANW,YAAY,GAAZ,kCAAY,KAAZ,kCAAY,QAMvB;AAuBF,CAAC,EA/BgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QA+BrC"}
|
package/dist/v3/sync/sync.d.ts
CHANGED
|
@@ -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;
|
|
@@ -138,7 +147,7 @@ export declare namespace TreatmentModel {
|
|
|
138
147
|
weight: number;
|
|
139
148
|
birthday: string;
|
|
140
149
|
}
|
|
141
|
-
export interface
|
|
150
|
+
export interface TreatmentEntry {
|
|
142
151
|
timestamps: Timestamps;
|
|
143
152
|
identifiers: Identifiers;
|
|
144
153
|
insulin: Insulin;
|
|
@@ -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";
|
|
@@ -57,4 +74,4 @@ var TreamentModelEnums;
|
|
|
57
74
|
ActivityIntensity["hard"] = "hard";
|
|
58
75
|
})(ActivityIntensity = TreamentModelEnums.ActivityIntensity || (TreamentModelEnums.ActivityIntensity = {}));
|
|
59
76
|
})(TreamentModelEnums = exports.TreamentModelEnums || (exports.TreamentModelEnums = {}));
|
|
60
|
-
//# sourceMappingURL=
|
|
77
|
+
//# sourceMappingURL=treatment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,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
|
18
18
|
researchConsentTimestamp: Date | null;
|
|
19
19
|
newsletterConsentTimestamp: Date | null;
|
|
20
20
|
}
|
|
21
|
-
interface
|
|
21
|
+
interface UserDetailsEntry {
|
|
22
22
|
identifiers: Identifiers;
|
|
23
23
|
timestamps: Timestamps;
|
|
24
24
|
name: string | null;
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TreamentModelEnums } from "../treatment/Treatment";
|
|
2
|
-
export declare namespace ActivityModel {
|
|
3
|
-
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
4
|
-
enum ActivityEnum {
|
|
5
|
-
Run = "Run",
|
|
6
|
-
Walk = "Walk",
|
|
7
|
-
Cycling = "Cycling",
|
|
8
|
-
Swim = "Swim",
|
|
9
|
-
Other = "Other"
|
|
10
|
-
}
|
|
11
|
-
namespace Types {
|
|
12
|
-
interface Timestamps {
|
|
13
|
-
clientTimestamp: Date;
|
|
14
|
-
startTimestamp: string;
|
|
15
|
-
}
|
|
16
|
-
interface Identifiers {
|
|
17
|
-
uuid: string;
|
|
18
|
-
version: number;
|
|
19
|
-
}
|
|
20
|
-
interface ActivityBody {
|
|
21
|
-
type: ActivityEnum;
|
|
22
|
-
activityIntensity: TreamentModelEnums.ActivityIntensity;
|
|
23
|
-
durationSeconds: number;
|
|
24
|
-
title: string | null;
|
|
25
|
-
}
|
|
26
|
-
export interface ActivityEntry {
|
|
27
|
-
timestamps: Timestamps;
|
|
28
|
-
identifiers: Identifiers;
|
|
29
|
-
content: ActivityBody;
|
|
30
|
-
isDeleted: boolean;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalActivity.js","sourceRoot":"","sources":["../../../v3/physicalActivity/PhysicalActivity.ts"],"names":[],"mappings":";;;AAEA,IAAiB,aAAa,CAiC7B;AAjCD,WAAiB,aAAa;IAC7B,iFAAiF;IACjF,IAA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