@hedia/types 2.1.57 → 2.1.58-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/types/cgm/cgm.d.ts +3 -2
- package/dist/types/cgm/cgm.js.map +1 -1
- package/package.json +1 -1
- package/types/cgm/cgm.ts +4 -3
package/dist/types/cgm/cgm.d.ts
CHANGED
|
@@ -7,16 +7,17 @@ export declare namespace Cgm {
|
|
|
7
7
|
GLUCOMEN_DAY = "glucomen_day"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
interface
|
|
10
|
+
interface IManufacturersToModels extends Record<Enums.Manufacturers, Enums.Models> {
|
|
11
11
|
[Enums.Manufacturers.MENARINI]: Enums.Models.GLUCOMEN_DAY;
|
|
12
12
|
}
|
|
13
13
|
export namespace Types {
|
|
14
14
|
interface ICgmReading<T extends Enums.Manufacturers> {
|
|
15
|
+
userId: number;
|
|
15
16
|
timestamp: Date;
|
|
16
17
|
retrievalTimestamp: Date;
|
|
17
18
|
glucoseMmol: number;
|
|
18
19
|
manufacturer: T;
|
|
19
|
-
model:
|
|
20
|
+
model: IManufacturersToModels[T];
|
|
20
21
|
version?: string;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cgm.js","sourceRoot":"","sources":["../../../types/cgm/cgm.ts"],"names":[],"mappings":";;;AAAA,IAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"cgm.js","sourceRoot":"","sources":["../../../types/cgm/cgm.ts"],"names":[],"mappings":";;;AAAA,IAAiB,GAAG,CA0BnB;AA1BD,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;AAiBF,CAAC,EA1BgB,GAAG,GAAH,WAAG,KAAH,WAAG,QA0BnB"}
|
package/package.json
CHANGED
package/types/cgm/cgm.ts
CHANGED
|
@@ -9,17 +9,18 @@ export namespace Cgm {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
interface IManufacturersToModels extends Record<Enums.Manufacturers, Enums.Models> {
|
|
13
13
|
[Enums.Manufacturers.MENARINI]: Enums.Models.GLUCOMEN_DAY;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
16
|
export namespace Types {
|
|
17
17
|
export interface ICgmReading<T extends Enums.Manufacturers> {
|
|
18
|
+
userId: number;
|
|
18
19
|
timestamp: Date;
|
|
19
20
|
retrievalTimestamp: Date;
|
|
20
21
|
glucoseMmol: number;
|
|
21
22
|
manufacturer: T;
|
|
22
|
-
model:
|
|
23
|
+
model: IManufacturersToModels[T];
|
|
23
24
|
version?: string;
|
|
24
25
|
}
|
|
25
26
|
}
|