@hedia/types 2.3.9-alpha.0 → 2.3.9

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.
@@ -0,0 +1,4 @@
1
+ export interface IRpcRoute<Request, Response> {
2
+ Request: Request;
3
+ Response: Response;
4
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=projectLucas.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../types/types/types.ts"],"names":[],"mappings":""}
@@ -8,7 +8,6 @@ export * from "./services/logbook";
8
8
  export * from "./services/menarini";
9
9
  export * from "./services/notification";
10
10
  export * from "./services/forecast";
11
- export * from "./services/projectLucas";
12
11
  export * from "./services/report";
13
12
  export * from "./services/user";
14
13
  export * from "./physicalActivity/physicalActivity";
package/dist/v3/index.js CHANGED
@@ -20,7 +20,6 @@ __exportStar(require("./services/logbook"), exports);
20
20
  __exportStar(require("./services/menarini"), exports);
21
21
  __exportStar(require("./services/notification"), exports);
22
22
  __exportStar(require("./services/forecast"), exports);
23
- __exportStar(require("./services/projectLucas"), exports);
24
23
  __exportStar(require("./services/report"), exports);
25
24
  __exportStar(require("./services/user"), exports);
26
25
  __exportStar(require("./physicalActivity/physicalActivity"), exports);
@@ -1 +1 @@
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,0DAAwC;AACxC,oDAAkC;AAClC,kDAAgC;AAChC,sEAAoD;AACpD,4DAA0C;AAC1C,wDAAsC;AACtC,8CAA4B"}
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"}
@@ -4,9 +4,25 @@ export declare namespace NotificationService {
4
4
  title: string;
5
5
  body: string;
6
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
+ }
7
21
  interface INotificationOptions {
8
22
  notification: INotification;
9
- registrationToken: string;
23
+ android: IAndroidNotification;
24
+ apns: IIosNotification;
25
+ token: string;
10
26
  }
11
27
  }
12
28
  }
@@ -1,10 +1,19 @@
1
+ import { IRpcRoute } from "../../types/types/types";
1
2
  import { Languages, Sex } from "../../v1/enums";
2
3
  export declare namespace UserService {
3
4
  namespace RPC {
4
- namespace CreateUser { }
5
- namespace GetUser { }
6
- namespace UpdateUser { }
7
- namespace DeleteUser { }
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
+ }
8
17
  }
9
18
  namespace Types {
10
19
  interface ICreateUserRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.3.9-alpha.0",
3
+ "version": "2.3.9",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {
@@ -1,24 +0,0 @@
1
- export declare namespace ProjectLucas {
2
- namespace Types {
3
- interface IForecastPacket {
4
- inputDataTimestamp: string;
5
- calculationTimestamp: string;
6
- validPredictionTimestamp: string;
7
- glucoseForecastMmoll: number;
8
- glucoseForecastMmollDelta: number;
9
- glucoseForecastStdDev: number;
10
- worstParkeBox: number;
11
- }
12
- interface IForecast {
13
- inputDataTimestamp: Date;
14
- calculationTimestamp: Date;
15
- validPredictionTimestamp: Date;
16
- glucoseForecastMmoll: number;
17
- glucoseForecastMmollDelta: number;
18
- glucoseForecastStdDev: number;
19
- glucoseForecastLowerDev: number;
20
- glucoseForecastUpperDev: number;
21
- worstParkeBox: number;
22
- }
23
- }
24
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"projectLucas.js","sourceRoot":"","sources":["../../../v3/services/projectLucas.ts"],"names":[],"mappings":""}