@hedia/types 2.3.25 → 2.3.26
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/v1/enums.d.ts +2 -1
- package/dist/v1/enums.js +1 -0
- package/dist/v1/enums.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/types/types.d.ts +0 -4
- package/dist/types/types/types.js +0 -3
- package/dist/types/types/types.js.map +0 -1
- package/dist/v3/cgm/cgm.d.ts +0 -23
- package/dist/v3/cgm/cgm.js +0 -18
- package/dist/v3/cgm/cgm.js.map +0 -1
- package/dist/v3/index.d.ts +0 -16
- package/dist/v3/index.js +0 -29
- package/dist/v3/index.js.map +0 -1
- package/dist/v3/logbook/logbook.d.ts +0 -131
- package/dist/v3/logbook/logbook.js +0 -17
- package/dist/v3/logbook/logbook.js.map +0 -1
- package/dist/v3/physicalActivity/physicalActivity.d.ts +0 -31
- package/dist/v3/physicalActivity/physicalActivity.js +0 -16
- package/dist/v3/physicalActivity/physicalActivity.js.map +0 -1
- package/dist/v3/report/report.d.ts +0 -5
- package/dist/v3/report/report.js +0 -11
- package/dist/v3/report/report.js.map +0 -1
- package/dist/v3/services/auth.d.ts +0 -17
- package/dist/v3/services/auth.js +0 -3
- package/dist/v3/services/auth.js.map +0 -1
- package/dist/v3/services/cgm.d.ts +0 -15
- package/dist/v3/services/cgm.js +0 -3
- package/dist/v3/services/cgm.js.map +0 -1
- package/dist/v3/services/email.d.ts +0 -19
- package/dist/v3/services/email.js +0 -16
- package/dist/v3/services/email.js.map +0 -1
- package/dist/v3/services/forecast.d.ts +0 -65
- package/dist/v3/services/forecast.js +0 -22
- package/dist/v3/services/forecast.js.map +0 -1
- package/dist/v3/services/logbook.d.ts +0 -13
- package/dist/v3/services/logbook.js +0 -3
- package/dist/v3/services/logbook.js.map +0 -1
- package/dist/v3/services/menarini.d.ts +0 -10
- package/dist/v3/services/menarini.js +0 -3
- package/dist/v3/services/menarini.js.map +0 -1
- package/dist/v3/services/notification.d.ts +0 -28
- package/dist/v3/services/notification.js +0 -3
- package/dist/v3/services/notification.js.map +0 -1
- package/dist/v3/services/report.d.ts +0 -18
- package/dist/v3/services/report.js +0 -3
- package/dist/v3/services/report.js.map +0 -1
- package/dist/v3/services/user.d.ts +0 -44
- package/dist/v3/services/user.js +0 -3
- package/dist/v3/services/user.js.map +0 -1
- package/dist/v3/sync/sync.d.ts +0 -49
- package/dist/v3/sync/sync.js +0 -3
- package/dist/v3/sync/sync.js.map +0 -1
- package/dist/v3/treatment/treatment.d.ts +0 -170
- package/dist/v3/treatment/treatment.js +0 -77
- package/dist/v3/treatment/treatment.js.map +0 -1
- package/dist/v3/userDetails/userDetails.d.ts +0 -28
- package/dist/v3/userDetails/userDetails.js +0 -17
- package/dist/v3/userDetails/userDetails.js.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAqB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAqB"}
|
package/dist/v1/enums.d.ts
CHANGED
package/dist/v1/enums.js
CHANGED
|
@@ -32,6 +32,7 @@ var Languages;
|
|
|
32
32
|
Languages["es"] = "Espa\u00F1ol";
|
|
33
33
|
Languages["fr"] = "Fran\u00E7ais";
|
|
34
34
|
Languages["it"] = "Italiano";
|
|
35
|
+
Languages["sv"] = "Svenska";
|
|
35
36
|
})(Languages = exports.Languages || (exports.Languages = {}));
|
|
36
37
|
/** Represents a user's sex. */
|
|
37
38
|
var Sex;
|
package/dist/v1/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../v1/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,KAGJ;AAHD,WAAK,KAAK;IACT,0BAAiB,CAAA;IACjB,wBAAe,CAAA;AAChB,CAAC,EAHI,KAAK,KAAL,KAAK,QAGT;AAED,4DAA4D;AAC5D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;AACpB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,2DAA2D;AAC3D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;AACpB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,qDAAqD;AACrD,IAAY,WAEX;AAFD,WAAY,WAAW;IACtB,wBAAS,CAAA;AACV,CAAC,EAFW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAEtB;AAED,8DAA8D;AAC9D,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../v1/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,KAGJ;AAHD,WAAK,KAAK;IACT,0BAAiB,CAAA;IACjB,wBAAe,CAAA;AAChB,CAAC,EAHI,KAAK,KAAL,KAAK,QAGT;AAED,4DAA4D;AAC5D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;AACpB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,2DAA2D;AAC3D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;AACpB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,qDAAqD;AACrD,IAAY,WAEX;AAFD,WAAY,WAAW;IACtB,wBAAS,CAAA;AACV,CAAC,EAFW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAEtB;AAED,8DAA8D;AAC9D,IAAY,SAQX;AARD,WAAY,SAAS;IACpB,yBAAY,CAAA;IACZ,2BAAc,CAAA;IACd,2BAAc,CAAA;IACd,gCAAc,CAAA;IACd,iCAAe,CAAA;IACf,4BAAe,CAAA;IACf,2BAAc,CAAA;AACf,CAAC,EARW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAQpB;AAED,+BAA+B;AAC/B,IAAY,GAGX;AAHD,WAAY,GAAG;IACd,iBAAU,CAAA;IACV,mBAAY,CAAA;AACb,CAAC,EAHW,GAAG,GAAH,WAAG,KAAH,WAAG,QAGd;AAED,qFAAqF;AACrF,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,sDAAa,CAAA;IACb,uDAAc,CAAA;IACd,qDAAc,CAAA;IACd,oDAAc,CAAA;AACf,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,6DAA6D;AAC7D,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,uDAAQ,CAAA;IACR,mDAAM,CAAA;IACN,yEAAiB,CAAA;IACjB,uDAAQ,CAAA;IACR,+CAAI,CAAA;AACL,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAED;;;;GAIG;AACH,IAAY,aAOX;AAPD,WAAY,aAAa;IACxB,uCAAsB,CAAA;IACtB,8CAA6B,CAAA;IAC7B,4CAA2B,CAAA;IAC3B,yDAAwC,CAAA;IACxC,+CAA8B,CAAA;IAC9B,wCAAuB,CAAA;AACxB,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED,IAAY,UAiYX;AAjYD,WAAY,UAAU;IACrB;;;;;;;;;OASG;IACH,qDAAc,CAAA;IAEd;;OAEG;IACH,2EAAyB,CAAA;IAEzB;;;;;OAKG;IACH,yDAAgB,CAAA;IAEhB;;;;;OAKG;IACH,yCAAQ,CAAA;IAER;;OAEG;IACH,mDAAa,CAAA;IAEb;;;OAGG;IACH,qDAAc,CAAA;IAEd;;;;OAIG;IACH,+FAAmC,CAAA;IAEnC;;OAEG;IACH,yDAAgB,CAAA;IAEhB;;;OAGG;IACH,+DAAmB,CAAA;IAEnB;;;;OAIG;IACH,mEAAqB,CAAA;IAErB;;;OAGG;IACH,6DAAkB,CAAA;IAElB;;;OAGG;IACH,qEAAsB,CAAA;IAEtB;;;;OAIG;IACH,mDAAa,CAAA;IAEb;;;;;OAKG;IACH,qEAAsB,CAAA;IAEtB;;OAEG;IACH,uEAAuB,CAAA;IAEvB;;;;;;;OAOG;IACH,+CAAW,CAAA;IAEX;;;;;OAKG;IACH,uDAAe,CAAA;IAEf;;;;;OAKG;IACH,6DAAkB,CAAA;IAElB;;;;;OAKG;IACH,uDAAe,CAAA;IAEf;;OAEG;IACH,6DAAkB,CAAA;IAElB;;;;;;;OAOG;IACH,yEAAwB,CAAA;IAExB;;;;OAIG;IACH,yEAAwB,CAAA;IAExB;;;OAGG;IACH,2DAAiB,CAAA;IAEjB;;;;;OAKG;IACH,6DAAkB,CAAA;IAElB;;;;OAIG;IACH,qEAAsB,CAAA;IAEtB;;;OAGG;IACH,uDAAe,CAAA;IAEf;;;OAGG;IACH,uDAAe,CAAA;IAEf;;;;OAIG;IACH,yEAAwB,CAAA;IAExB;;;OAGG;IACH,iEAAoB,CAAA;IAEpB;;OAEG;IACH,+FAAmC,CAAA;IAEnC;;;;;OAKG;IACH,mEAAqB,CAAA;IAErB;;;OAGG;IACH,qDAAc,CAAA;IAEd;;;;;;;OAOG;IACH,6CAAU,CAAA;IAEV;;OAEG;IACH,mEAAqB,CAAA;IAErB;;OAEG;IACH,2EAAyB,CAAA;IAEzB;;;OAGG;IACH,uEAAuB,CAAA;IAEvB;;;;;OAKG;IACH,6DAAkB,CAAA;IAElB;;;;OAIG;IACH,iFAA4B,CAAA;IAE5B;;;;OAIG;IACH,+EAA2B,CAAA;IAE3B;;OAEG;IACH,yEAAwB,CAAA;IACxB;;;OAGG;IACH,2EAAyB,CAAA;IAEzB;;OAEG;IACH,6EAA0B,CAAA;IAE1B;;OAEG;IACH,iDAAY,CAAA;IAEZ;;OAEG;IACH,uEAAuB,CAAA;IAEvB;;OAEG;IACH,qEAAsB,CAAA;IAEtB;;;;;OAKG;IACH,+EAA2B,CAAA;IAE3B;;OAEG;IACH,uEAAuB,CAAA;IAEvB;;;OAGG;IACH,mGAAqC,CAAA;IAErC;;;OAGG;IACH,+FAAmC,CAAA;IAEnC;;;OAGG;IACH,+EAA2B,CAAA;IAE3B;;;OAGG;IACH,mEAAqB,CAAA;IAErB;;OAEG;IACH,2DAAiB,CAAA;IAEjB;;;OAGG;IACH,2EAAyB,CAAA;IAEzB;;OAEG;IACH,mEAAqB,CAAA;IAErB;;OAEG;IACH,yFAAgC,CAAA;IAEhC;;OAEG;IACH,mFAA6B,CAAA;IAE7B;;OAEG;IACH,6EAA0B,CAAA;IAE1B;;OAEG;IACH,6DAAkB,CAAA;IAElB;;;;OAIG;IACH,mGAAqC,CAAA;IAErC;;OAEG;IACH,+DAAmB,CAAA;AACpB,CAAC,EAjYW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAiYrB;AAED,IAAY,iBAoDX;AApDD,WAAY,iBAAiB;IAC5B;;;OAGG;IACH,wCAAmB,CAAA;IAEnB;;OAEG;IACH,sCAAiB,CAAA;IAEjB;;;OAGG;IACH,gCAAW,CAAA;IAEX;;;OAGG;IACH,kCAAa,CAAA;IAEb;;;OAGG;IACH,wCAAmB,CAAA;IAEnB;;OAEG;IACH,oCAAe,CAAA;IAEf;;;OAGG;IACH,kCAAa,CAAA;IAEb;;;OAGG;IACH,gCAAW,CAAA;IAEX;;;OAGG;IACH,oCAAe,CAAA;AAChB,CAAC,EApDW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAoD5B"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../types/types/types.ts"],"names":[],"mappings":""}
|
package/dist/v3/cgm/cgm.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare namespace Cgm {
|
|
2
|
-
export namespace Enums {
|
|
3
|
-
enum Manufacturers {
|
|
4
|
-
MENARINI = "menarini"
|
|
5
|
-
}
|
|
6
|
-
enum Models {
|
|
7
|
-
GLUCOMEN_DAY = "glucomen_day"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
interface IManufacturersToModels extends Record<Enums.Manufacturers, Enums.Models> {
|
|
11
|
-
[Enums.Manufacturers.MENARINI]: Enums.Models.GLUCOMEN_DAY;
|
|
12
|
-
}
|
|
13
|
-
export namespace Types {
|
|
14
|
-
interface ICgmReading<T extends Enums.Manufacturers> {
|
|
15
|
-
retrievalTimestamp: Date;
|
|
16
|
-
readingTimestamp: Date;
|
|
17
|
-
glucoseMmol: number;
|
|
18
|
-
manufacturer: T;
|
|
19
|
-
model: IManufacturersToModels[T];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
}
|
package/dist/v3/cgm/cgm.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cgm = void 0;
|
|
4
|
-
var Cgm;
|
|
5
|
-
(function (Cgm) {
|
|
6
|
-
let Enums;
|
|
7
|
-
(function (Enums) {
|
|
8
|
-
let Manufacturers;
|
|
9
|
-
(function (Manufacturers) {
|
|
10
|
-
Manufacturers["MENARINI"] = "menarini";
|
|
11
|
-
})(Manufacturers = Enums.Manufacturers || (Enums.Manufacturers = {}));
|
|
12
|
-
let Models;
|
|
13
|
-
(function (Models) {
|
|
14
|
-
Models["GLUCOMEN_DAY"] = "glucomen_day";
|
|
15
|
-
})(Models = Enums.Models || (Enums.Models = {}));
|
|
16
|
-
})(Enums = Cgm.Enums || (Cgm.Enums = {}));
|
|
17
|
-
})(Cgm = exports.Cgm || (exports.Cgm = {}));
|
|
18
|
-
//# sourceMappingURL=cgm.js.map
|
package/dist/v3/cgm/cgm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cgm.js","sourceRoot":"","sources":["../../../v3/cgm/cgm.ts"],"names":[],"mappings":";;;AAAA,IAAiB,GAAG,CAwBnB;AAxBD,WAAiB,GAAG;IACnB,IAAiB,KAAK,CAQrB;IARD,WAAiB,KAAK;QACrB,IAAY,aAEX;QAFD,WAAY,aAAa;YACxB,sCAAqB,CAAA;QACtB,CAAC,EAFW,aAAa,GAAb,mBAAa,KAAb,mBAAa,QAExB;QAED,IAAY,MAEX;QAFD,WAAY,MAAM;YACjB,uCAA6B,CAAA;QAC9B,CAAC,EAFW,MAAM,GAAN,YAAM,KAAN,YAAM,QAEjB;IACF,CAAC,EARgB,KAAK,GAAL,SAAK,KAAL,SAAK,QAQrB;AAeF,CAAC,EAxBgB,GAAG,GAAH,WAAG,KAAH,WAAG,QAwBnB"}
|
package/dist/v3/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./cgm/cgm";
|
|
2
|
-
export * from "./logbook/logbook";
|
|
3
|
-
export * from "./report/report";
|
|
4
|
-
export * from "./services/auth";
|
|
5
|
-
export * from "./services/cgm";
|
|
6
|
-
export * from "./services/email";
|
|
7
|
-
export * from "./services/logbook";
|
|
8
|
-
export * from "./services/menarini";
|
|
9
|
-
export * from "./services/notification";
|
|
10
|
-
export * from "./services/forecast";
|
|
11
|
-
export * from "./services/report";
|
|
12
|
-
export * from "./services/user";
|
|
13
|
-
export * from "./physicalActivity/physicalActivity";
|
|
14
|
-
export * from "./userDetails/userDetails";
|
|
15
|
-
export * from "./treatment/treatment";
|
|
16
|
-
export * from "./sync/sync";
|
package/dist/v3/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./cgm/cgm"), exports);
|
|
14
|
-
__exportStar(require("./logbook/logbook"), exports);
|
|
15
|
-
__exportStar(require("./report/report"), exports);
|
|
16
|
-
__exportStar(require("./services/auth"), exports);
|
|
17
|
-
__exportStar(require("./services/cgm"), exports);
|
|
18
|
-
__exportStar(require("./services/email"), exports);
|
|
19
|
-
__exportStar(require("./services/logbook"), exports);
|
|
20
|
-
__exportStar(require("./services/menarini"), exports);
|
|
21
|
-
__exportStar(require("./services/notification"), exports);
|
|
22
|
-
__exportStar(require("./services/forecast"), exports);
|
|
23
|
-
__exportStar(require("./services/report"), exports);
|
|
24
|
-
__exportStar(require("./services/user"), exports);
|
|
25
|
-
__exportStar(require("./physicalActivity/physicalActivity"), exports);
|
|
26
|
-
__exportStar(require("./userDetails/userDetails"), exports);
|
|
27
|
-
__exportStar(require("./treatment/treatment"), exports);
|
|
28
|
-
__exportStar(require("./sync/sync"), exports);
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
package/dist/v3/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,sEAAoD;AACpD,4DAA0C;AAC1C,wDAAsC;AACtC,8CAA4B"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export declare namespace LogbookModel {
|
|
2
|
-
/** Used to differentiate the different moods that users can select. */
|
|
3
|
-
enum MoodEnum {
|
|
4
|
-
Sad = 1,
|
|
5
|
-
SemiSad = 2,
|
|
6
|
-
Neutral = 3,
|
|
7
|
-
SemiHappy = 4,
|
|
8
|
-
Happy = 5
|
|
9
|
-
}
|
|
10
|
-
interface Timestamps {
|
|
11
|
-
/**
|
|
12
|
-
* The timestamp at which this logbook entry should be displayed in to the user.
|
|
13
|
-
* This may differ from client_timestamp if the user created the logbook entry manually after the fact
|
|
14
|
-
* or they edited the entry timestamp of the logbook entry after it was first created.
|
|
15
|
-
*/
|
|
16
|
-
entryTimestamp: Date;
|
|
17
|
-
/**
|
|
18
|
-
* The timestamp at which the logbook entry was created on the client.
|
|
19
|
-
* This may differ from entry_timestamp if the user created the logbook entry manually after the fact
|
|
20
|
-
* or they edited the entry timestamp of the logbook entry after it was first created.
|
|
21
|
-
*/
|
|
22
|
-
clientTimestamp: Date;
|
|
23
|
-
/**
|
|
24
|
-
* The timestamp that marks the logbook entry as being created or updated by communicating with a smart pen device.
|
|
25
|
-
*/
|
|
26
|
-
smartPenSyncTimestamp: Date | null;
|
|
27
|
-
}
|
|
28
|
-
interface Carbohydrates {
|
|
29
|
-
/**
|
|
30
|
-
* The amount of extra carbohydrates that was recommended to the user if they made a calculation.
|
|
31
|
-
* If they were recommended to take insulin instead this should be 0.
|
|
32
|
-
* Should be <null> if they did not get a recommendation at all (e.g. because they made a manual entry instead
|
|
33
|
-
*/
|
|
34
|
-
carbohydratesSuggestedGrams: number | null;
|
|
35
|
-
/**
|
|
36
|
-
* The total amount (sum) of carbohydrates that the user ingested for this logbook entry including from the food database,
|
|
37
|
-
* manual entry of carbohydrates, and additional carbohdyrates that they are eating.
|
|
38
|
-
*/
|
|
39
|
-
carbohydratesEnteredGrams: number | null;
|
|
40
|
-
/**
|
|
41
|
-
* The amount of carbohydrates that was entered in the “additional carbohydrates” field on the recommendation screen if the user got a carbohydrate recommendation.
|
|
42
|
-
* The field defaults to the carbohydrates_suggested_grams, so those should be identical unless the user modified the value.
|
|
43
|
-
*/
|
|
44
|
-
carbohydratesModifiedSuggestedGrams: number | null;
|
|
45
|
-
}
|
|
46
|
-
interface Insulin {
|
|
47
|
-
/**
|
|
48
|
-
* The exact result of the insulin recommendation calculation without rounding.
|
|
49
|
-
* Should be 0 if the user made a calculation and didn't get a recommendation
|
|
50
|
-
* (because it was recommended that they should eat additional carbohydrates instead).
|
|
51
|
-
*/
|
|
52
|
-
insulinSuggestedUnits: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* The value in the insulin field when the logbook entry was saved.
|
|
55
|
-
* 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,
|
|
56
|
-
* so most often that is the value that will be saved in this field.
|
|
57
|
-
* If the user has changed the value of the field, then that is of course the value that will be saved here.
|
|
58
|
-
*/
|
|
59
|
-
insulinEnteredUnits: number | null;
|
|
60
|
-
}
|
|
61
|
-
interface BloodMeasurements {
|
|
62
|
-
/**
|
|
63
|
-
* The user's blood glucose level in mmol/L (millimolar) for the logbook entry.
|
|
64
|
-
* Should be <null> if the user didn't actually enter their BGL for the logbook entry.
|
|
65
|
-
*/
|
|
66
|
-
bloodGlucoseMillimolar: number | null;
|
|
67
|
-
/**
|
|
68
|
-
* The user's blood ketones level in mmol/L (millimolar) for the logbook entry.
|
|
69
|
-
* Should be <null> if the user didn't actually enter their BGL for the logbook entry.
|
|
70
|
-
*/
|
|
71
|
-
bloodKetonesMillimolar: number | null;
|
|
72
|
-
}
|
|
73
|
-
interface Identifiers {
|
|
74
|
-
/**
|
|
75
|
-
* Unique id for the client a logbook was created on
|
|
76
|
-
*/
|
|
77
|
-
deviceID: string;
|
|
78
|
-
/**
|
|
79
|
-
* Unique id for each logbook
|
|
80
|
-
*/
|
|
81
|
-
uuid: string;
|
|
82
|
-
/** Version number of logbook entry
|
|
83
|
-
* Each version of a logbook entry is immutable. Any changes to a logbook entry will result in creating a new logbook entry.
|
|
84
|
-
* Each update will increment the version number in the newly created logbook entry.
|
|
85
|
-
*/
|
|
86
|
-
version: number;
|
|
87
|
-
/**
|
|
88
|
-
* The version of the app that was used to create the logbook entry. e.g. "2.7.3"
|
|
89
|
-
*/
|
|
90
|
-
clientVersion: string;
|
|
91
|
-
/**
|
|
92
|
-
* For keeping track of which os and os version the app was running on when the logbook entry was created.
|
|
93
|
-
* For android this is the API level, e.g. "android 28" or "android 24".
|
|
94
|
-
* For iOS this is the version of the os, e.g. "ios 13.3.1" or "ios 13.5.1"
|
|
95
|
-
*/
|
|
96
|
-
deviceOS: string;
|
|
97
|
-
}
|
|
98
|
-
interface RelatedEntities {
|
|
99
|
-
/**
|
|
100
|
-
* The uuid of the settings object that was used on the client when the logbook entry was created.
|
|
101
|
-
* Note that if the user updates their settings later this field will not be updated.
|
|
102
|
-
* This allows us to exactly which settings were used to make an old insulin calculation
|
|
103
|
-
*/
|
|
104
|
-
settingsUUID: string;
|
|
105
|
-
/**
|
|
106
|
-
* The uuid of the event (physical activity) that was associated with the logbook entry.
|
|
107
|
-
* Should be <null> if no event is associated with the logbook entry.
|
|
108
|
-
*/
|
|
109
|
-
eventUUID: string | null;
|
|
110
|
-
}
|
|
111
|
-
interface UserFeedback {
|
|
112
|
-
/**
|
|
113
|
-
* The mood the the user selected with the logbook entry from 1 (sad) to 5 (happy).
|
|
114
|
-
* Should be <null> if the user didn't select a mood.
|
|
115
|
-
*/
|
|
116
|
-
mood: MoodEnum | null;
|
|
117
|
-
}
|
|
118
|
-
interface LogbookEntry {
|
|
119
|
-
timestamps: Timestamps;
|
|
120
|
-
identifiers: Identifiers;
|
|
121
|
-
carbohydrates: Carbohydrates;
|
|
122
|
-
insulin: Insulin;
|
|
123
|
-
measurements: BloodMeasurements;
|
|
124
|
-
relatedEntities: RelatedEntities;
|
|
125
|
-
userFeedback: UserFeedback;
|
|
126
|
-
/**
|
|
127
|
-
* We never actually delete logbook entries, but this field indicates if a logbook entry shoulb be considered removed by the user.
|
|
128
|
-
*/
|
|
129
|
-
isDeleted: boolean;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// TODO: migrate existing entries to utc: utcTimezoneOffset: string | null;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.LogbookModel = void 0;
|
|
5
|
-
var LogbookModel;
|
|
6
|
-
(function (LogbookModel) {
|
|
7
|
-
/** Used to differentiate the different moods that users can select. */
|
|
8
|
-
let MoodEnum;
|
|
9
|
-
(function (MoodEnum) {
|
|
10
|
-
MoodEnum[MoodEnum["Sad"] = 1] = "Sad";
|
|
11
|
-
MoodEnum[MoodEnum["SemiSad"] = 2] = "SemiSad";
|
|
12
|
-
MoodEnum[MoodEnum["Neutral"] = 3] = "Neutral";
|
|
13
|
-
MoodEnum[MoodEnum["SemiHappy"] = 4] = "SemiHappy";
|
|
14
|
-
MoodEnum[MoodEnum["Happy"] = 5] = "Happy";
|
|
15
|
-
})(MoodEnum = LogbookModel.MoodEnum || (LogbookModel.MoodEnum = {}));
|
|
16
|
-
})(LogbookModel = exports.LogbookModel || (exports.LogbookModel = {}));
|
|
17
|
-
//# sourceMappingURL=logbook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../v3/logbook/logbook.ts"],"names":[],"mappings":";AAAA,2EAA2E;;;AAE3E,IAAiB,YAAY,CA0I5B;AA1ID,WAAiB,YAAY;IAC5B,uEAAuE;IACvE,IAAY,QAMX;IAND,WAAY,QAAQ;QACnB,qCAAO,CAAA;QACP,6CAAO,CAAA;QACP,6CAAO,CAAA;QACP,iDAAS,CAAA;QACT,yCAAK,CAAA;IACN,CAAC,EANW,QAAQ,GAAR,qBAAQ,KAAR,qBAAQ,QAMnB;AAkIF,CAAC,EA1IgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QA0I5B"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TreatmentModelEnums } 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: TreatmentModelEnums.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,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhysicalActivityModel = void 0;
|
|
4
|
-
var PhysicalActivityModel;
|
|
5
|
-
(function (PhysicalActivityModel) {
|
|
6
|
-
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
7
|
-
let ActivityEnum;
|
|
8
|
-
(function (ActivityEnum) {
|
|
9
|
-
ActivityEnum["Run"] = "Run";
|
|
10
|
-
ActivityEnum["Walk"] = "Walk";
|
|
11
|
-
ActivityEnum["Cycling"] = "Cycling";
|
|
12
|
-
ActivityEnum["Swim"] = "Swim";
|
|
13
|
-
ActivityEnum["Other"] = "Other";
|
|
14
|
-
})(ActivityEnum = PhysicalActivityModel.ActivityEnum || (PhysicalActivityModel.ActivityEnum = {}));
|
|
15
|
-
})(PhysicalActivityModel = exports.PhysicalActivityModel || (exports.PhysicalActivityModel = {}));
|
|
16
|
-
//# sourceMappingURL=physicalActivity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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/report/report.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Report = void 0;
|
|
4
|
-
var Report;
|
|
5
|
-
(function (Report) {
|
|
6
|
-
let Format;
|
|
7
|
-
(function (Format) {
|
|
8
|
-
Format["PDF"] = "pdf";
|
|
9
|
-
})(Format = Report.Format || (Report.Format = {}));
|
|
10
|
-
})(Report = exports.Report || (exports.Report = {}));
|
|
11
|
-
//# sourceMappingURL=report.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../v3/report/report.ts"],"names":[],"mappings":";;;AAAA,IAAiB,MAAM,CAItB;AAJD,WAAiB,MAAM;IACtB,IAAY,MAEX;IAFD,WAAY,MAAM;QACjB,qBAAW,CAAA;IACZ,CAAC,EAFW,MAAM,GAAN,aAAM,KAAN,aAAM,QAEjB;AACF,CAAC,EAJgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAItB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare namespace AuthService {
|
|
2
|
-
namespace Types {
|
|
3
|
-
interface IAuthRequest {
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
6
|
-
interface ILoginRequest {
|
|
7
|
-
email: string;
|
|
8
|
-
password: string;
|
|
9
|
-
}
|
|
10
|
-
interface ILoginResponse {
|
|
11
|
-
token: string;
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
14
|
-
type IRegisterRequest = ILoginRequest;
|
|
15
|
-
type IRegisterResponse = ILoginResponse;
|
|
16
|
-
}
|
|
17
|
-
}
|
package/dist/v3/services/auth.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../v3/services/auth.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare namespace CgmService {
|
|
2
|
-
namespace Types {
|
|
3
|
-
interface ICgmReading {
|
|
4
|
-
"timestamp": string;
|
|
5
|
-
"glucoseMmoll": number | null;
|
|
6
|
-
}
|
|
7
|
-
type IGetLatestCgmReadingResponse = ICgmReading;
|
|
8
|
-
interface IGetTimeSeriesCgmReadingsRequest {
|
|
9
|
-
period: string;
|
|
10
|
-
interval: number;
|
|
11
|
-
fromTimestamp?: string;
|
|
12
|
-
}
|
|
13
|
-
type IGetTimeSeriesCgmReadingsResponse = Array<ICgmReading>;
|
|
14
|
-
}
|
|
15
|
-
}
|
package/dist/v3/services/cgm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cgm.js","sourceRoot":"","sources":["../../../v3/services/cgm.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare namespace EmailService {
|
|
2
|
-
namespace Types {
|
|
3
|
-
interface IEmailOptions {
|
|
4
|
-
subject: string;
|
|
5
|
-
content: Enums.EmailContent;
|
|
6
|
-
receiverEmail: string;
|
|
7
|
-
name: string;
|
|
8
|
-
key: string;
|
|
9
|
-
url?: string;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
namespace Enums {
|
|
13
|
-
enum EmailContent {
|
|
14
|
-
PasswordReset = "password_email_request_basic.html",
|
|
15
|
-
EmailChangeConfirmation = "email_change_confirmation.html",
|
|
16
|
-
EmailChangeConfirmationSuccess = "email_change_confirmation_success.html"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailService = void 0;
|
|
4
|
-
var EmailService;
|
|
5
|
-
(function (EmailService) {
|
|
6
|
-
let Enums;
|
|
7
|
-
(function (Enums) {
|
|
8
|
-
let EmailContent;
|
|
9
|
-
(function (EmailContent) {
|
|
10
|
-
EmailContent["PasswordReset"] = "password_email_request_basic.html";
|
|
11
|
-
EmailContent["EmailChangeConfirmation"] = "email_change_confirmation.html";
|
|
12
|
-
EmailContent["EmailChangeConfirmationSuccess"] = "email_change_confirmation_success.html";
|
|
13
|
-
})(EmailContent = Enums.EmailContent || (Enums.EmailContent = {}));
|
|
14
|
-
})(Enums = EmailService.Enums || (EmailService.Enums = {}));
|
|
15
|
-
})(EmailService = exports.EmailService || (exports.EmailService = {}));
|
|
16
|
-
//# sourceMappingURL=email.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../../v3/services/email.ts"],"names":[],"mappings":";;;AAAA,IAAiB,YAAY,CAkB5B;AAlBD,WAAiB,YAAY;IAW5B,IAAiB,KAAK,CAMrB;IAND,WAAiB,KAAK;QACrB,IAAY,YAIX;QAJD,WAAY,YAAY;YACvB,mEAAmD,CAAA;YACnD,0EAA0D,CAAA;YAC1D,yFAAyE,CAAA;QAC1E,CAAC,EAJW,YAAY,GAAZ,kBAAY,KAAZ,kBAAY,QAIvB;IACF,CAAC,EANgB,KAAK,GAAL,kBAAK,KAAL,kBAAK,QAMrB;AACF,CAAC,EAlBgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAkB5B"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export declare namespace ForecastService {
|
|
2
|
-
namespace Types {
|
|
3
|
-
interface IForecastPacket {
|
|
4
|
-
userId: string;
|
|
5
|
-
inputDataTimestamp: string;
|
|
6
|
-
calculationTimestamp: string;
|
|
7
|
-
validPredictionTimestamp: string;
|
|
8
|
-
glucoseForecastMmoll: number;
|
|
9
|
-
glucoseForecastMmollDelta: number;
|
|
10
|
-
glucoseForecastStdDev: number;
|
|
11
|
-
worstParkeBox: number;
|
|
12
|
-
}
|
|
13
|
-
interface IForecast {
|
|
14
|
-
userId: string;
|
|
15
|
-
inputDataTimestamp: Date;
|
|
16
|
-
calculationTimestamp: Date;
|
|
17
|
-
validPredictionTimestamp: Date;
|
|
18
|
-
glucoseForecastMmoll: number;
|
|
19
|
-
glucoseForecastMmollDelta: number;
|
|
20
|
-
glucoseForecastStdDev: number;
|
|
21
|
-
glucoseForecastLowerDev: number;
|
|
22
|
-
glucoseForecastUpperDev: number;
|
|
23
|
-
worstParkeBox: number;
|
|
24
|
-
}
|
|
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
|
-
isEnabledHighAlerts: boolean;
|
|
38
|
-
isEnabledLowAlerts: boolean;
|
|
39
|
-
nightModeLowAlerts: {
|
|
40
|
-
/** string in the HH:mm format representing the starting hour for alerts */
|
|
41
|
-
start: string;
|
|
42
|
-
/** string in the HH:mm format representing the ending hour for alerts */
|
|
43
|
-
end: string;
|
|
44
|
-
} | null;
|
|
45
|
-
}
|
|
46
|
-
interface IInferenceStatus {
|
|
47
|
-
status: Enums.InferenceStatus;
|
|
48
|
-
safetyDataProgress: null | number;
|
|
49
|
-
timestamp: string;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
namespace Enums {
|
|
53
|
-
enum InferenceStatus {
|
|
54
|
-
Success = "SUCCESS",
|
|
55
|
-
NotEnoughDataForSafetyCheckError = "NOT_ENOUGH_DATA_FOR_SAFETY_CHECK",
|
|
56
|
-
NewUserNotUpdated = "PREDICTION_NOT_YET_ACTIVE_FOR_NEW_USER",
|
|
57
|
-
NotEnoughDataForPredictionError = "NOT_ENOUGH_DATA_FOR_PREDICTION",
|
|
58
|
-
InternalPredictionError = "INTERNAL_PREDICTION_ERROR",
|
|
59
|
-
UpdateSafetyCheckError = "UPDATE_SAFETY_CHECK_FAILED",
|
|
60
|
-
ContinuousSafetyCheckError = "CONTINUOUS_SAFETY_CHECK_FAILED",
|
|
61
|
-
ManuallyDisabledError = "MANUALLY_DISABLED",
|
|
62
|
-
ModelIsOldError = "MODEL_IS_OLD"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ForecastService = void 0;
|
|
4
|
-
var ForecastService;
|
|
5
|
-
(function (ForecastService) {
|
|
6
|
-
let Enums;
|
|
7
|
-
(function (Enums) {
|
|
8
|
-
let InferenceStatus;
|
|
9
|
-
(function (InferenceStatus) {
|
|
10
|
-
InferenceStatus["Success"] = "SUCCESS";
|
|
11
|
-
InferenceStatus["NotEnoughDataForSafetyCheckError"] = "NOT_ENOUGH_DATA_FOR_SAFETY_CHECK";
|
|
12
|
-
InferenceStatus["NewUserNotUpdated"] = "PREDICTION_NOT_YET_ACTIVE_FOR_NEW_USER";
|
|
13
|
-
InferenceStatus["NotEnoughDataForPredictionError"] = "NOT_ENOUGH_DATA_FOR_PREDICTION";
|
|
14
|
-
InferenceStatus["InternalPredictionError"] = "INTERNAL_PREDICTION_ERROR";
|
|
15
|
-
InferenceStatus["UpdateSafetyCheckError"] = "UPDATE_SAFETY_CHECK_FAILED";
|
|
16
|
-
InferenceStatus["ContinuousSafetyCheckError"] = "CONTINUOUS_SAFETY_CHECK_FAILED";
|
|
17
|
-
InferenceStatus["ManuallyDisabledError"] = "MANUALLY_DISABLED";
|
|
18
|
-
InferenceStatus["ModelIsOldError"] = "MODEL_IS_OLD";
|
|
19
|
-
})(InferenceStatus = Enums.InferenceStatus || (Enums.InferenceStatus = {}));
|
|
20
|
-
})(Enums = ForecastService.Enums || (ForecastService.Enums = {}));
|
|
21
|
-
})(ForecastService = exports.ForecastService || (exports.ForecastService = {}));
|
|
22
|
-
//# sourceMappingURL=forecast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forecast.js","sourceRoot":"","sources":["../../../v3/services/forecast.ts"],"names":[],"mappings":";;;AAAA,IAAiB,eAAe,CAqE/B;AArED,WAAiB,eAAe;IAwD/B,IAAiB,KAAK,CAYrB;IAZD,WAAiB,KAAK;QACrB,IAAY,eAUX;QAVD,WAAY,eAAe;YAC1B,sCAAmB,CAAA;YACnB,wFAAqE,CAAA;YACrE,+EAA4D,CAAA;YAC5D,qFAAkE,CAAA;YAClE,wEAAqD,CAAA;YACrD,wEAAqD,CAAA;YACrD,gFAA6D,CAAA;YAC7D,8DAA2C,CAAA;YAC3C,mDAAgC,CAAA;QACjC,CAAC,EAVW,eAAe,GAAf,qBAAe,KAAf,qBAAe,QAU1B;IACF,CAAC,EAZgB,KAAK,GAAL,qBAAK,KAAL,qBAAK,QAYrB;AACF,CAAC,EArEgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAqE/B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LogbookModel } from "../logbook/logbook";
|
|
2
|
-
export declare namespace LogbookService {
|
|
3
|
-
namespace Events {
|
|
4
|
-
interface CreateLogbook {
|
|
5
|
-
logbook: LogbookModel.LogbookEntry;
|
|
6
|
-
userId: string;
|
|
7
|
-
}
|
|
8
|
-
interface DeleteLogbook {
|
|
9
|
-
uuid: string;
|
|
10
|
-
userId: string;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../v3/services/logbook.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menarini.js","sourceRoot":"","sources":["../../../v3/services/menarini.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare namespace NotificationService {
|
|
2
|
-
namespace Types {
|
|
3
|
-
interface INotification {
|
|
4
|
-
title: string;
|
|
5
|
-
body: string;
|
|
6
|
-
}
|
|
7
|
-
interface IAndroidNotification {
|
|
8
|
-
notification: {
|
|
9
|
-
sound: string;
|
|
10
|
-
channelId: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface IIosNotification {
|
|
15
|
-
payload: {
|
|
16
|
-
aps: {
|
|
17
|
-
sound: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
interface INotificationOptions {
|
|
22
|
-
notification: INotification;
|
|
23
|
-
android?: IAndroidNotification;
|
|
24
|
-
apns?: IIosNotification;
|
|
25
|
-
token: string;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../v3/services/notification.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BloodGlucoseUnit, Languages } from "../../v1/enums";
|
|
2
|
-
import { Report } from "../report/report";
|
|
3
|
-
export declare namespace ReportService {
|
|
4
|
-
namespace RPC {
|
|
5
|
-
namespace Get {
|
|
6
|
-
interface Request {
|
|
7
|
-
from: string;
|
|
8
|
-
to: string;
|
|
9
|
-
format: Report.Format;
|
|
10
|
-
locale: Languages;
|
|
11
|
-
bloodGlucoseUnit: BloodGlucoseUnit;
|
|
12
|
-
}
|
|
13
|
-
interface Response {
|
|
14
|
-
content: string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../v3/services/report.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { IRpcRoute } from "../../types/types/types";
|
|
2
|
-
import { Languages, Sex } from "../../v1/enums";
|
|
3
|
-
export declare namespace UserService {
|
|
4
|
-
namespace RPC {
|
|
5
|
-
namespace CreateUser {
|
|
6
|
-
type Post = IRpcRoute<Types.ICreateUserRequest, Types.IUserResponse>;
|
|
7
|
-
}
|
|
8
|
-
namespace GetUser {
|
|
9
|
-
type Get = IRpcRoute<Types.IGetUserRequest, Types.IUserResponse>;
|
|
10
|
-
}
|
|
11
|
-
namespace UpdateUser {
|
|
12
|
-
type Patch = IRpcRoute<Types.IUpdateUserRequest, Types.IUserResponse>;
|
|
13
|
-
}
|
|
14
|
-
namespace DeleteUser {
|
|
15
|
-
type Delete = IRpcRoute<Types.IDeleteUserRequest, Types.IDeleteUserResponse>;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
namespace Types {
|
|
19
|
-
interface ICreateUserRequest {
|
|
20
|
-
firstName: string;
|
|
21
|
-
lastName: string;
|
|
22
|
-
language: Languages;
|
|
23
|
-
dateOfBirth?: Date;
|
|
24
|
-
sex?: Sex;
|
|
25
|
-
}
|
|
26
|
-
type IGetUserRequest = object;
|
|
27
|
-
interface IUpdateUserRequest {
|
|
28
|
-
firstName?: string;
|
|
29
|
-
lastName?: string;
|
|
30
|
-
language?: Languages;
|
|
31
|
-
dateOfBirth?: Date;
|
|
32
|
-
sex?: Sex;
|
|
33
|
-
}
|
|
34
|
-
interface IUserResponse {
|
|
35
|
-
firstName: string;
|
|
36
|
-
lastName: string;
|
|
37
|
-
language: Languages;
|
|
38
|
-
dateOfBirth?: Date;
|
|
39
|
-
sex?: Sex;
|
|
40
|
-
}
|
|
41
|
-
type IDeleteUserRequest = object;
|
|
42
|
-
type IDeleteUserResponse = object;
|
|
43
|
-
}
|
|
44
|
-
}
|
package/dist/v3/services/user.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../v3/services/user.ts"],"names":[],"mappings":""}
|
package/dist/v3/sync/sync.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export declare namespace Sync {
|
|
2
|
-
namespace RPC {
|
|
3
|
-
interface Cursor {
|
|
4
|
-
uuid: string;
|
|
5
|
-
version: number;
|
|
6
|
-
}
|
|
7
|
-
namespace Post {
|
|
8
|
-
interface Request<T> {
|
|
9
|
-
data: Array<T>;
|
|
10
|
-
}
|
|
11
|
-
interface Response<T> {
|
|
12
|
-
data: T;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
namespace Delete {
|
|
16
|
-
interface Request {
|
|
17
|
-
uuid: string;
|
|
18
|
-
deviceID: string;
|
|
19
|
-
}
|
|
20
|
-
interface Response {
|
|
21
|
-
uuid: string;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
namespace List {
|
|
25
|
-
interface Request {
|
|
26
|
-
deviceID: string;
|
|
27
|
-
cursor?: Cursor;
|
|
28
|
-
}
|
|
29
|
-
interface Response<T> {
|
|
30
|
-
data: Array<T>;
|
|
31
|
-
cursor?: Cursor;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
namespace Range {
|
|
35
|
-
interface Request {
|
|
36
|
-
to: Date;
|
|
37
|
-
from?: Date;
|
|
38
|
-
}
|
|
39
|
-
interface Response<T> {
|
|
40
|
-
data: Array<T>;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
namespace Get {
|
|
44
|
-
interface Response<T> {
|
|
45
|
-
data: T;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
package/dist/v3/sync/sync.js
DELETED
package/dist/v3/sync/sync.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../v3/sync/sync.ts"],"names":[],"mappings":""}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
export declare namespace TreatmentModelEnums {
|
|
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
|
-
}
|
|
12
|
-
enum FastActingInsulin {
|
|
13
|
-
Novorapid = "Novorapid",
|
|
14
|
-
Fiasp = "Fiasp",
|
|
15
|
-
Humalog = "Humalog",
|
|
16
|
-
Apidra = "Apidra",
|
|
17
|
-
Other = "Other",
|
|
18
|
-
None = "None"
|
|
19
|
-
}
|
|
20
|
-
enum LongActingInsulin {
|
|
21
|
-
Lantus = "Lantus",
|
|
22
|
-
Basaglar = "Basaglar",
|
|
23
|
-
Tuojeo = "Tuojeo",
|
|
24
|
-
Levemir = "Levemir",
|
|
25
|
-
Tresiba = "Tresiba",
|
|
26
|
-
Other = "Other",
|
|
27
|
-
None = "None"
|
|
28
|
-
}
|
|
29
|
-
enum DiabetesType {
|
|
30
|
-
Type1 = 1,
|
|
31
|
-
Type2 = 2
|
|
32
|
-
}
|
|
33
|
-
enum Gender {
|
|
34
|
-
Male = "Male",
|
|
35
|
-
Female = "Female"
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* String enum for differentiating between different methods by which someone can inject insulin into the body.
|
|
39
|
-
* Mainly used to determine how insulin amounts should be rounded.
|
|
40
|
-
*/
|
|
41
|
-
enum InjectionMethod {
|
|
42
|
-
PenHalf = "Pen-half",
|
|
43
|
-
PenWhole = "Pen-whole",
|
|
44
|
-
Pump = "Pump"
|
|
45
|
-
}
|
|
46
|
-
/** Enum that represents a set of insulin reduction fraction settings that can vary by the duration of the activity */
|
|
47
|
-
enum ActivityReductionIntervals {
|
|
48
|
-
fromZero = "fromZero",
|
|
49
|
-
fromThirty = "fromThirty",
|
|
50
|
-
fromFortysix = "fromFortysix"
|
|
51
|
-
}
|
|
52
|
-
/** Enum used to indicate the category or intensity of a physical activity. */
|
|
53
|
-
enum ActivityIntensity {
|
|
54
|
-
light = "light",
|
|
55
|
-
moderate = "moderate",
|
|
56
|
-
hard = "hard"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
export declare namespace TreatmentModel {
|
|
60
|
-
export interface Timestamps {
|
|
61
|
-
clientTimestamp: Date;
|
|
62
|
-
}
|
|
63
|
-
export interface Identifiers {
|
|
64
|
-
deviceID: string;
|
|
65
|
-
uuid: string;
|
|
66
|
-
version: number;
|
|
67
|
-
clientVersion: string;
|
|
68
|
-
deviceOS: string;
|
|
69
|
-
}
|
|
70
|
-
export interface ICalculationParameter<T> {
|
|
71
|
-
daily: Array<T>;
|
|
72
|
-
overall: T;
|
|
73
|
-
isOverallUsed: boolean;
|
|
74
|
-
}
|
|
75
|
-
export interface BGLInterval {
|
|
76
|
-
low: number;
|
|
77
|
-
target: number;
|
|
78
|
-
high: number;
|
|
79
|
-
startTime: TimeOfDay;
|
|
80
|
-
}
|
|
81
|
-
export interface TimeOfDay {
|
|
82
|
-
hours: number;
|
|
83
|
-
minutes: number;
|
|
84
|
-
}
|
|
85
|
-
export interface InsulinSettingsInterval {
|
|
86
|
-
insulinSensitivity: number;
|
|
87
|
-
carbohydrateRatio: number;
|
|
88
|
-
startTime: TimeOfDay;
|
|
89
|
-
}
|
|
90
|
-
export interface Insulin {
|
|
91
|
-
injectionMethod: TreatmentModelEnums.InjectionMethod;
|
|
92
|
-
insulinSettings: ICalculationParameter<InsulinSettingsInterval>;
|
|
93
|
-
}
|
|
94
|
-
export interface BloodGlucose {
|
|
95
|
-
bloodGlucoseUnit: TreatmentModelEnums.BloodGlucoseUnit;
|
|
96
|
-
bloodGlucoseTargets: ICalculationParameter<BGLInterval>;
|
|
97
|
-
}
|
|
98
|
-
export interface BloodKetone {
|
|
99
|
-
bloodKetoneUnit: TreatmentModelEnums.BloodKetonesUnit;
|
|
100
|
-
}
|
|
101
|
-
export interface Notifications {
|
|
102
|
-
medicineNotification: IMedicineNotification;
|
|
103
|
-
remeasurementNotification: IRemeasurementNotification;
|
|
104
|
-
deviceIdentifiers: Array<INotificationDeviceIdentifier> | null;
|
|
105
|
-
}
|
|
106
|
-
export interface IMedicineNotification {
|
|
107
|
-
toggle: boolean;
|
|
108
|
-
dailyReminderTime: TimeOfDay;
|
|
109
|
-
}
|
|
110
|
-
export interface IRemeasurementNotification {
|
|
111
|
-
toggle: boolean;
|
|
112
|
-
remeasurement: number;
|
|
113
|
-
}
|
|
114
|
-
export interface INotificationDeviceIdentifier {
|
|
115
|
-
token: string;
|
|
116
|
-
timestamp: number;
|
|
117
|
-
}
|
|
118
|
-
/** Type that represents the user’s settings related to physical activity. */
|
|
119
|
-
export type ActivitySettings = ActivityReductionSettings & ActivityTarget;
|
|
120
|
-
/** Represents a set of insulin reduction fraction settings that can vary by the duration of the activity. */
|
|
121
|
-
export type ActivityReductionIntervals = ActivityReductionSettings[keyof ActivityReductionSettings];
|
|
122
|
-
/**
|
|
123
|
-
* Represents whether the reduction fraction is a number or it is null.
|
|
124
|
-
* Only for the settings of hard physical activities over 45 minutes the value is null.
|
|
125
|
-
* A null value represents that it is not supported by HDA.
|
|
126
|
-
*/
|
|
127
|
-
export type ReductionType = ActivityReductionIntervals[keyof ActivityReductionIntervals];
|
|
128
|
-
type ActivityIntensityKeys = keyof typeof TreatmentModelEnums.ActivityIntensity;
|
|
129
|
-
type ActivityReductionKeys = keyof typeof TreatmentModelEnums.ActivityReductionIntervals;
|
|
130
|
-
type ActivityReductionSettings = ActivityPostReduction & {
|
|
131
|
-
[key in ActivityIntensityKeys]: ActivityReductionSettingsIntervals<key, "hard", "fromFortysix">;
|
|
132
|
-
};
|
|
133
|
-
interface ActivityPostReduction {
|
|
134
|
-
post: {
|
|
135
|
-
[key in ActivityReductionKeys]: number;
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
interface ActivityTarget {
|
|
139
|
-
target: number;
|
|
140
|
-
}
|
|
141
|
-
type ActivityReductionSettingsIntervals<K extends ActivityIntensityKeys, T extends ActivityIntensityKeys, U extends ActivityReductionKeys> = {
|
|
142
|
-
[key in ActivityReductionKeys]: K extends T ? (key extends U ? null | number : number) : number;
|
|
143
|
-
};
|
|
144
|
-
export interface PersonalInfo {
|
|
145
|
-
diabetesType: TreatmentModelEnums.DiabetesType;
|
|
146
|
-
insulinDependent: boolean;
|
|
147
|
-
fastActingInsulin: TreatmentModelEnums.FastActingInsulin;
|
|
148
|
-
longActingInsulin: TreatmentModelEnums.LongActingInsulin;
|
|
149
|
-
gender: TreatmentModelEnums.Gender;
|
|
150
|
-
height: number;
|
|
151
|
-
weight: number;
|
|
152
|
-
birthday: Birthday;
|
|
153
|
-
}
|
|
154
|
-
export interface Birthday {
|
|
155
|
-
date: number;
|
|
156
|
-
month: number;
|
|
157
|
-
year: number;
|
|
158
|
-
}
|
|
159
|
-
export interface TreatmentEntry {
|
|
160
|
-
timestamps: Timestamps;
|
|
161
|
-
identifiers: Identifiers;
|
|
162
|
-
insulin: Insulin;
|
|
163
|
-
bloodGlucose: BloodGlucose;
|
|
164
|
-
bloodKetone: BloodKetone;
|
|
165
|
-
physicalActivities: ActivitySettings;
|
|
166
|
-
notifications: Notifications;
|
|
167
|
-
personalInfo: PersonalInfo;
|
|
168
|
-
}
|
|
169
|
-
export {};
|
|
170
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TreatmentModelEnums = void 0;
|
|
4
|
-
var TreatmentModelEnums;
|
|
5
|
-
(function (TreatmentModelEnums) {
|
|
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 = TreatmentModelEnums.BloodGlucoseUnit || (TreatmentModelEnums.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 = TreatmentModelEnums.BloodKetonesUnit || (TreatmentModelEnums.BloodKetonesUnit = {}));
|
|
23
|
-
let FastActingInsulin;
|
|
24
|
-
(function (FastActingInsulin) {
|
|
25
|
-
FastActingInsulin["Novorapid"] = "Novorapid";
|
|
26
|
-
FastActingInsulin["Fiasp"] = "Fiasp";
|
|
27
|
-
FastActingInsulin["Humalog"] = "Humalog";
|
|
28
|
-
FastActingInsulin["Apidra"] = "Apidra";
|
|
29
|
-
FastActingInsulin["Other"] = "Other";
|
|
30
|
-
FastActingInsulin["None"] = "None";
|
|
31
|
-
})(FastActingInsulin = TreatmentModelEnums.FastActingInsulin || (TreatmentModelEnums.FastActingInsulin = {}));
|
|
32
|
-
let LongActingInsulin;
|
|
33
|
-
(function (LongActingInsulin) {
|
|
34
|
-
LongActingInsulin["Lantus"] = "Lantus";
|
|
35
|
-
LongActingInsulin["Basaglar"] = "Basaglar";
|
|
36
|
-
LongActingInsulin["Tuojeo"] = "Tuojeo";
|
|
37
|
-
LongActingInsulin["Levemir"] = "Levemir";
|
|
38
|
-
LongActingInsulin["Tresiba"] = "Tresiba";
|
|
39
|
-
LongActingInsulin["Other"] = "Other";
|
|
40
|
-
LongActingInsulin["None"] = "None";
|
|
41
|
-
})(LongActingInsulin = TreatmentModelEnums.LongActingInsulin || (TreatmentModelEnums.LongActingInsulin = {}));
|
|
42
|
-
let DiabetesType;
|
|
43
|
-
(function (DiabetesType) {
|
|
44
|
-
DiabetesType[DiabetesType["Type1"] = 1] = "Type1";
|
|
45
|
-
DiabetesType[DiabetesType["Type2"] = 2] = "Type2";
|
|
46
|
-
})(DiabetesType = TreatmentModelEnums.DiabetesType || (TreatmentModelEnums.DiabetesType = {}));
|
|
47
|
-
let Gender;
|
|
48
|
-
(function (Gender) {
|
|
49
|
-
Gender["Male"] = "Male";
|
|
50
|
-
Gender["Female"] = "Female";
|
|
51
|
-
})(Gender = TreatmentModelEnums.Gender || (TreatmentModelEnums.Gender = {}));
|
|
52
|
-
/**
|
|
53
|
-
* String enum for differentiating between different methods by which someone can inject insulin into the body.
|
|
54
|
-
* Mainly used to determine how insulin amounts should be rounded.
|
|
55
|
-
*/
|
|
56
|
-
let InjectionMethod;
|
|
57
|
-
(function (InjectionMethod) {
|
|
58
|
-
InjectionMethod["PenHalf"] = "Pen-half";
|
|
59
|
-
InjectionMethod["PenWhole"] = "Pen-whole";
|
|
60
|
-
InjectionMethod["Pump"] = "Pump";
|
|
61
|
-
})(InjectionMethod = TreatmentModelEnums.InjectionMethod || (TreatmentModelEnums.InjectionMethod = {}));
|
|
62
|
-
/** Enum that represents a set of insulin reduction fraction settings that can vary by the duration of the activity */
|
|
63
|
-
let ActivityReductionIntervals;
|
|
64
|
-
(function (ActivityReductionIntervals) {
|
|
65
|
-
ActivityReductionIntervals["fromZero"] = "fromZero";
|
|
66
|
-
ActivityReductionIntervals["fromThirty"] = "fromThirty";
|
|
67
|
-
ActivityReductionIntervals["fromFortysix"] = "fromFortysix";
|
|
68
|
-
})(ActivityReductionIntervals = TreatmentModelEnums.ActivityReductionIntervals || (TreatmentModelEnums.ActivityReductionIntervals = {}));
|
|
69
|
-
/** Enum used to indicate the category or intensity of a physical activity. */
|
|
70
|
-
let ActivityIntensity;
|
|
71
|
-
(function (ActivityIntensity) {
|
|
72
|
-
ActivityIntensity["light"] = "light";
|
|
73
|
-
ActivityIntensity["moderate"] = "moderate";
|
|
74
|
-
ActivityIntensity["hard"] = "hard";
|
|
75
|
-
})(ActivityIntensity = TreatmentModelEnums.ActivityIntensity || (TreatmentModelEnums.ActivityIntensity = {}));
|
|
76
|
-
})(TreatmentModelEnums = exports.TreatmentModelEnums || (exports.TreatmentModelEnums = {}));
|
|
77
|
-
//# sourceMappingURL=treatment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"treatment.js","sourceRoot":"","sources":["../../../v3/treatment/treatment.ts"],"names":[],"mappings":";;;AAAA,IAAiB,mBAAmB,CA6DnC;AA7DD,WAAiB,mBAAmB;IACnC,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,oCAAgB,KAAhB,oCAAgB,QAG3B;IACD,2DAA2D;IAC3D,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC3B,qCAAqB,CAAA;QACrB,mCAAmB,CAAA;IACpB,CAAC,EAHW,gBAAgB,GAAhB,oCAAgB,KAAhB,oCAAgB,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,qCAAiB,KAAjB,qCAAiB,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,qCAAiB,KAAjB,qCAAiB,QAQ5B;IACD,IAAY,YAGX;IAHD,WAAY,YAAY;QACvB,iDAAS,CAAA;QACT,iDAAS,CAAA;IACV,CAAC,EAHW,YAAY,GAAZ,gCAAY,KAAZ,gCAAY,QAGvB;IACD,IAAY,MAGX;IAHD,WAAY,MAAM;QACjB,uBAAa,CAAA;QACb,2BAAiB,CAAA;IAClB,CAAC,EAHW,MAAM,GAAN,0BAAM,KAAN,0BAAM,QAGjB;IACD;;;OAGG;IACH,IAAY,eAIX;IAJD,WAAY,eAAe;QAC1B,uCAAoB,CAAA;QACpB,yCAAsB,CAAA;QACtB,gCAAa,CAAA;IACd,CAAC,EAJW,eAAe,GAAf,mCAAe,KAAf,mCAAe,QAI1B;IACD,sHAAsH;IACtH,IAAY,0BAIX;IAJD,WAAY,0BAA0B;QACrC,mDAAqB,CAAA;QACrB,uDAAyB,CAAA;QACzB,2DAA6B,CAAA;IAC9B,CAAC,EAJW,0BAA0B,GAA1B,8CAA0B,KAA1B,8CAA0B,QAIrC;IACD,8EAA8E;IAC9E,IAAY,iBAIX;IAJD,WAAY,iBAAiB;QAC5B,oCAAe,CAAA;QACf,0CAAqB,CAAA;QACrB,kCAAa,CAAA;IACd,CAAC,EAJW,iBAAiB,GAAjB,qCAAiB,KAAjB,qCAAiB,QAI5B;AACF,CAAC,EA7DgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA6DnC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare namespace UserDetailsModel {
|
|
2
|
-
/** Represents a language that the app can be displayed in. */
|
|
3
|
-
enum Languages {
|
|
4
|
-
da = "Dansk",
|
|
5
|
-
en = "English",
|
|
6
|
-
de = "Deutsch",
|
|
7
|
-
es = "Espa\u00F1ol",
|
|
8
|
-
fr = "Fran\u00E7ais",
|
|
9
|
-
it = "Italiano"
|
|
10
|
-
}
|
|
11
|
-
interface Identifiers {
|
|
12
|
-
deviceID: string;
|
|
13
|
-
uuid: string;
|
|
14
|
-
version: number;
|
|
15
|
-
}
|
|
16
|
-
interface Timestamps {
|
|
17
|
-
clientTimestamp: Date;
|
|
18
|
-
researchConsentTimestamp: Date | null;
|
|
19
|
-
newsletterConsentTimestamp: Date | null;
|
|
20
|
-
}
|
|
21
|
-
interface UserDetailsEntry {
|
|
22
|
-
identifiers: Identifiers;
|
|
23
|
-
timestamps: Timestamps;
|
|
24
|
-
name: string | null;
|
|
25
|
-
email: string;
|
|
26
|
-
language: keyof typeof Languages;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserDetailsModel = void 0;
|
|
4
|
-
var UserDetailsModel;
|
|
5
|
-
(function (UserDetailsModel) {
|
|
6
|
-
/** Represents a language that the app can be displayed in. */
|
|
7
|
-
let Languages;
|
|
8
|
-
(function (Languages) {
|
|
9
|
-
Languages["da"] = "Dansk";
|
|
10
|
-
Languages["en"] = "English";
|
|
11
|
-
Languages["de"] = "Deutsch";
|
|
12
|
-
Languages["es"] = "Espa\u00F1ol";
|
|
13
|
-
Languages["fr"] = "Fran\u00E7ais";
|
|
14
|
-
Languages["it"] = "Italiano";
|
|
15
|
-
})(Languages = UserDetailsModel.Languages || (UserDetailsModel.Languages = {}));
|
|
16
|
-
})(UserDetailsModel = exports.UserDetailsModel || (exports.UserDetailsModel = {}));
|
|
17
|
-
//# sourceMappingURL=userDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userDetails.js","sourceRoot":"","sources":["../../../v3/userDetails/userDetails.ts"],"names":[],"mappings":";;;AAAA,IAAiB,gBAAgB,CA6BhC;AA7BD,WAAiB,gBAAgB;IAChC,8DAA8D;IAC9D,IAAY,SAOX;IAPD,WAAY,SAAS;QACpB,yBAAY,CAAA;QACZ,2BAAc,CAAA;QACd,2BAAc,CAAA;QACd,gCAAc,CAAA;QACd,iCAAe,CAAA;QACf,4BAAe,CAAA;IAChB,CAAC,EAPW,SAAS,GAAT,0BAAS,KAAT,0BAAS,QAOpB;AAoBF,CAAC,EA7BgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA6BhC"}
|