@hedia/types 2.2.2-alpha.2 → 2.2.2-alpha.3

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.
@@ -2,7 +2,7 @@ import { Activity } from "../activity/activity";
2
2
  export declare namespace BolusCalculator {
3
3
  namespace Constants {
4
4
  /** The maximum amount of insulin that may be recommended to the user. */
5
- const SAFETY_INSULIN_LIMIT = 50;
5
+ const SAFETY_INSULIN_LIMIT = 60;
6
6
  /** The maximum duration in minutes of a physical activity. */
7
7
  const SAFETY_ACTIVITY_LIMIT = 60;
8
8
  /** The maximum reduction factor for a physical activity */
@@ -6,7 +6,7 @@ var BolusCalculator;
6
6
  let Constants;
7
7
  (function (Constants) {
8
8
  /** The maximum amount of insulin that may be recommended to the user. */
9
- Constants.SAFETY_INSULIN_LIMIT = 50;
9
+ Constants.SAFETY_INSULIN_LIMIT = 60;
10
10
  /** The maximum duration in minutes of a physical activity. */
11
11
  Constants.SAFETY_ACTIVITY_LIMIT = 60;
12
12
  /** The maximum reduction factor for a physical activity */
@@ -17,14 +17,12 @@ export declare namespace FoodService {
17
17
  type Post = IRpcRoute<Types.IAddFoodRequest, Types.IAddFoodResponse>;
18
18
  }
19
19
  namespace RecentFood {
20
- type Post = IRpcRoute<Array<{
21
- foodItemsId: string;
22
- grams: number;
23
- }>, object>;
24
- type Get = IRpcRoute<Types.IFrequentFoodsRequest, Array<Types.IFrequentFoodsResponse>>;
20
+ type Post = IRpcRoute<Types.IFrequestFoodsPostRequest, object>;
21
+ type Get = IRpcRoute<Types.IFrequentFoodsGetRequest, Array<Types.IFrequentFoodsGetResponse>>;
25
22
  }
26
23
  namespace FavoriteFood {
27
- type Post = IRpcRoute<Types.IFavoriteFoodRequest, Types.IFavoriteFoodResponse>;
24
+ type Post = IRpcRoute<Types.IFavoriteFoodPostRequest, Types.IFavoriteFoodPostResponse>;
25
+ type Get = IRpcRoute<Types.IFavoriteFoodGetRequest, Types.IFavoriteFoodGetResponse>;
28
26
  }
29
27
  }
30
28
  namespace Types {
@@ -37,12 +35,16 @@ export declare namespace FoodService {
37
35
  }
38
36
  type IAddFoodRequest = Omit<IFoodItems & IFoodNames, "id" | "userId" | "foodItemsId">;
39
37
  type IAddFoodResponse = IFoodItems & IFoodNames;
40
- type IFrequentFoodsRequest = object;
41
- type IFrequentFoodsResponse = Pick<IFoodItems & IFoodNames, "id" | "foodItemsId">;
42
- interface IFavoriteFoodRequest {
43
- timestamp: Date;
44
- }
45
- type IFavoriteFoodResponse = Pick<IFoodItems & IFoodNames, "id" | "foodItemsId">;
38
+ type IFrequentFoodsGetRequest = object;
39
+ type IFrequentFoodsGetResponse = Pick<IFoodItems & IFoodNames, "id" | "foodItemsId">;
40
+ type IFrequestFoodsPostRequest = Array<{
41
+ foodItemsId: string;
42
+ grams: number;
43
+ }>;
44
+ type IFavoriteFoodPostRequest = Omit<IFoodFavorites, "id">;
45
+ type IFavoriteFoodPostResponse = IFoodFavorites;
46
+ type IFavoriteFoodGetRequest = object;
47
+ type IFavoriteFoodGetResponse = IFoodFavorites;
46
48
  interface IFrequentFoods {
47
49
  id: string;
48
50
  foodItemsId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"food.js","sourceRoot":"","sources":["../../../v3/services/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,CAsF3B;AAtFD,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;AA8EF,CAAC,EAtFgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAsF3B"}
1
+ {"version":3,"file":"food.js","sourceRoot":"","sources":["../../../v3/services/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,CAyF3B;AAzFD,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;AAiFF,CAAC,EAzFgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAyF3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.2.2-alpha.2",
3
+ "version": "2.2.2-alpha.3",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {