@hedia/types 2.3.5-alpha.3 → 2.3.5-alpha.4
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/services/cgm.d.ts +14 -11
- package/package.json +1 -1
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
import { IRpcRoute } from "../../types/types/types";
|
|
1
2
|
export declare namespace CgmService {
|
|
2
|
-
interface ICgmReadingResponseElement {
|
|
3
|
-
"timestamp": string;
|
|
4
|
-
"glucoseMmoll": number | null;
|
|
5
|
-
}
|
|
6
|
-
interface ICgmReadingsResponse {
|
|
7
|
-
latestGlucoseMmoll: ICgmReadingResponseElement;
|
|
8
|
-
historicalGlucoseMmoll: Array<ICgmReadingResponseElement>;
|
|
9
|
-
}
|
|
10
3
|
namespace Types {
|
|
11
|
-
interface
|
|
4
|
+
interface ICgmReading {
|
|
5
|
+
"timestamp": string;
|
|
6
|
+
"glucoseMmoll": number | null;
|
|
7
|
+
}
|
|
8
|
+
interface IGetCgmReadingsRequest {
|
|
12
9
|
period: string;
|
|
13
10
|
interval: number;
|
|
14
11
|
fromTimestamp?: string;
|
|
15
12
|
}
|
|
16
|
-
interface
|
|
17
|
-
|
|
13
|
+
interface IGetCgmReadingsResponse {
|
|
14
|
+
latestGlucoseMmoll: ICgmReading;
|
|
15
|
+
historicalGlucoseMmoll: Array<ICgmReading>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
namespace RPC {
|
|
19
|
+
namespace GetCgmReadings {
|
|
20
|
+
type Get = IRpcRoute<Types.IGetCgmReadingsRequest, Types.IGetCgmReadingsResponse>;
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
}
|