@hedia/types 2.1.63-alpha.7 → 2.1.63-alpha.8
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/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/services/rpc/treatment.d.ts +29 -0
- package/dist/types/{types.js → services/rpc/treatment.js} +1 -1
- package/dist/types/services/rpc/treatment.js.map +1 -0
- package/package.json +1 -1
- package/dist/types/services/rpc/food.d.ts +0 -64
- package/dist/types/services/rpc/food.js +0 -17
- package/dist/types/services/rpc/food.js.map +0 -1
- package/dist/types/types.d.ts +0 -4
- package/dist/types/types.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from "./logbook/logbook";
|
|
|
5
5
|
export * from "./services/outbound/email";
|
|
6
6
|
export * from "./services/outbound/notification";
|
|
7
7
|
export * from "./services/rpc/auth";
|
|
8
|
-
export * from "./services/rpc/food";
|
|
9
8
|
export * from "./services/rpc/logbook";
|
|
10
9
|
export * from "./services/events/logbook";
|
|
11
10
|
export * from "./userdetails/userdetails";
|
package/dist/types/index.js
CHANGED
|
@@ -17,7 +17,6 @@ __exportStar(require("./logbook/logbook"), exports);
|
|
|
17
17
|
__exportStar(require("./services/outbound/email"), exports);
|
|
18
18
|
__exportStar(require("./services/outbound/notification"), exports);
|
|
19
19
|
__exportStar(require("./services/rpc/auth"), exports);
|
|
20
|
-
__exportStar(require("./services/rpc/food"), exports);
|
|
21
20
|
__exportStar(require("./services/rpc/logbook"), exports);
|
|
22
21
|
__exportStar(require("./services/events/logbook"), exports);
|
|
23
22
|
__exportStar(require("./userdetails/userdetails"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,4CAA0B;AAC1B,oDAAkC;AAClC,4DAA0C;AAC1C,mEAAiD;AACjD,sDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,4CAA0B;AAC1B,oDAAkC;AAClC,4DAA0C;AAC1C,mEAAiD;AACjD,sDAAoC;AACpC,yDAAuC;AACvC,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UserSettings } from "../../usersettings/usersettings";
|
|
2
|
+
export declare namespace TreatmentService {
|
|
3
|
+
namespace Types {
|
|
4
|
+
interface ITreatment {
|
|
5
|
+
uuid: UserSettings.Types.IUserSettings["uuid"];
|
|
6
|
+
user_id: number;
|
|
7
|
+
created_date: UserSettings.Types.IUserSettings["created"];
|
|
8
|
+
diabetes_type: UserSettings.Types.IUserSettings["diabetesType"];
|
|
9
|
+
insulin_dependent: UserSettings.Types.IUserSettings["insulinDependent"];
|
|
10
|
+
gender: UserSettings.Types.IUserSettings["gender"];
|
|
11
|
+
height: UserSettings.Types.IUserSettings["height"];
|
|
12
|
+
weight: UserSettings.Types.IUserSettings["weight"];
|
|
13
|
+
date_of_birth: UserSettings.Types.IUserSettings["birthday"];
|
|
14
|
+
injection_method: UserSettings.Types.IUserSettings["treatmentType"];
|
|
15
|
+
bgl_units: UserSettings.Types.IUserSettings["bloodGlucoseUnits"];
|
|
16
|
+
blood_ketones_unit: UserSettings.Types.IUserSettings["bloodKetonesUnit"];
|
|
17
|
+
fast_acting_insulin: UserSettings.Types.IUserSettings["fastActingInsulin"];
|
|
18
|
+
long_acting_insulin: UserSettings.Types.IUserSettings["longActingInsulin"];
|
|
19
|
+
treatment_parameters: UserSettings.Types.IUserSettings["parameters"];
|
|
20
|
+
bgl_targets: UserSettings.Types.IUserSettings["glucoseLevelTargets"];
|
|
21
|
+
activity: UserSettings.Types.IUserSettings["activity"];
|
|
22
|
+
notifications: UserSettings.Types.IUserSettings["notifications"];
|
|
23
|
+
}
|
|
24
|
+
interface ITreatmentPostRequest {
|
|
25
|
+
email: string;
|
|
26
|
+
treatment: Array<UserSettings.Types.IUserSettings>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treatment.js","sourceRoot":"","sources":["../../../../types/services/rpc/treatment.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Languages } from "../../enums";
|
|
2
|
-
import { IRpcRoute } from "../../types";
|
|
3
|
-
export declare namespace FoodService {
|
|
4
|
-
namespace Enums {
|
|
5
|
-
enum MealType {
|
|
6
|
-
Breakfast = "breakfast",
|
|
7
|
-
Lunch = "lunch",
|
|
8
|
-
Dinner = "dinner",
|
|
9
|
-
Night = "night"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
namespace RPC {
|
|
13
|
-
namespace SearchFood {
|
|
14
|
-
type Post = IRpcRoute<Types.IFoodSearchRequest, Types.IFoodSearchResponse>;
|
|
15
|
-
}
|
|
16
|
-
namespace AddFood {
|
|
17
|
-
type Post = IRpcRoute<Types.IAddFoodRequest, {}>;
|
|
18
|
-
}
|
|
19
|
-
namespace FavoriteFood {
|
|
20
|
-
type Post = IRpcRoute<{}, {}>;
|
|
21
|
-
}
|
|
22
|
-
namespace RecentFood { }
|
|
23
|
-
}
|
|
24
|
-
namespace Types {
|
|
25
|
-
interface IFoodSearchRequest {
|
|
26
|
-
language: Languages;
|
|
27
|
-
text: string;
|
|
28
|
-
}
|
|
29
|
-
interface IFoodSearchResponse {
|
|
30
|
-
results: Array<IFoodNames>;
|
|
31
|
-
}
|
|
32
|
-
type IAddFoodRequest = IFoodItems & IFoodNames;
|
|
33
|
-
interface IFrequentFoods {
|
|
34
|
-
id: string;
|
|
35
|
-
foodItemsId: string;
|
|
36
|
-
grams: number;
|
|
37
|
-
timestamp: Date;
|
|
38
|
-
}
|
|
39
|
-
interface IFoodFavorites {
|
|
40
|
-
id: string;
|
|
41
|
-
foodItemsId: string;
|
|
42
|
-
mealType: Enums.MealType;
|
|
43
|
-
}
|
|
44
|
-
interface IFoodItems {
|
|
45
|
-
id: string;
|
|
46
|
-
userId: string;
|
|
47
|
-
energy: number;
|
|
48
|
-
carbohydrates: number;
|
|
49
|
-
protein: number;
|
|
50
|
-
sugar: number;
|
|
51
|
-
fibers: number;
|
|
52
|
-
fat: number;
|
|
53
|
-
saturatedFat: number;
|
|
54
|
-
}
|
|
55
|
-
interface IFoodNames {
|
|
56
|
-
id: string;
|
|
57
|
-
foodItemsId: string;
|
|
58
|
-
title: string;
|
|
59
|
-
keywords: Array<string>;
|
|
60
|
-
description: string;
|
|
61
|
-
language: keyof Languages;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FoodService = void 0;
|
|
4
|
-
var FoodService;
|
|
5
|
-
(function (FoodService) {
|
|
6
|
-
let Enums;
|
|
7
|
-
(function (Enums) {
|
|
8
|
-
let MealType;
|
|
9
|
-
(function (MealType) {
|
|
10
|
-
MealType["Breakfast"] = "breakfast";
|
|
11
|
-
MealType["Lunch"] = "lunch";
|
|
12
|
-
MealType["Dinner"] = "dinner";
|
|
13
|
-
MealType["Night"] = "night";
|
|
14
|
-
})(MealType = Enums.MealType || (Enums.MealType = {}));
|
|
15
|
-
})(Enums = FoodService.Enums || (FoodService.Enums = {}));
|
|
16
|
-
})(FoodService = exports.FoodService || (exports.FoodService = {}));
|
|
17
|
-
//# sourceMappingURL=food.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"food.js","sourceRoot":"","sources":["../../../../types/services/rpc/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,CAwE3B;AAxED,WAAiB,WAAW;IAC3B,IAAiB,KAAK,CAOrB;IAPD,WAAiB,KAAK;QACrB,IAAY,QAKX;QALD,WAAY,QAAQ;YACnB,mCAAuB,CAAA;YACvB,2BAAe,CAAA;YACf,6BAAiB,CAAA;YACjB,2BAAe,CAAA;QAChB,CAAC,EALW,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAKnB;IACF,CAAC,EAPgB,KAAK,GAAL,iBAAK,KAAL,iBAAK,QAOrB;AAgEF,CAAC,EAxEgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAwE3B"}
|
package/dist/types/types.d.ts
DELETED
package/dist/types/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../types/types.ts"],"names":[],"mappings":""}
|