@hedia/types 2.1.63-alpha.0 → 2.1.63-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.
|
@@ -13,7 +13,12 @@ export declare namespace FoodService {
|
|
|
13
13
|
namespace SearchFood {
|
|
14
14
|
type Get = IRpcRoute<Types.IFoodSearchRequest, Types.IFoodSearchResponse>;
|
|
15
15
|
}
|
|
16
|
-
namespace
|
|
16
|
+
namespace AddFood {
|
|
17
|
+
type Post = IRpcRoute<Types.IAddFoodRequest, {}>;
|
|
18
|
+
}
|
|
19
|
+
namespace FavoriteFood {
|
|
20
|
+
type Post = IRpcRoute<{}, {}>;
|
|
21
|
+
}
|
|
17
22
|
namespace RecentFood { }
|
|
18
23
|
}
|
|
19
24
|
namespace Types {
|
|
@@ -24,37 +29,38 @@ export declare namespace FoodService {
|
|
|
24
29
|
interface IFoodSearchResponse {
|
|
25
30
|
results: Array<IFoodNames>;
|
|
26
31
|
}
|
|
32
|
+
type IAddFoodRequest = IFoodItems & IFoodNames;
|
|
27
33
|
interface IFoodTransactions {
|
|
28
|
-
id:
|
|
29
|
-
|
|
34
|
+
id: string;
|
|
35
|
+
foodItemsId: number;
|
|
30
36
|
grams: number;
|
|
31
37
|
timestamp: Date;
|
|
32
|
-
|
|
38
|
+
logbookId: number;
|
|
33
39
|
}
|
|
34
40
|
interface IFoodFavorites {
|
|
35
|
-
id:
|
|
36
|
-
|
|
41
|
+
id: string;
|
|
42
|
+
foodItemsId: number;
|
|
37
43
|
timespan: Date;
|
|
38
44
|
}
|
|
39
45
|
interface IFoodItems {
|
|
40
|
-
id:
|
|
41
|
-
|
|
46
|
+
id: string;
|
|
47
|
+
userId: number;
|
|
42
48
|
energy: number;
|
|
43
49
|
carbohydrates: number;
|
|
44
50
|
protein: number;
|
|
45
51
|
sugar: number;
|
|
46
52
|
fibers: number;
|
|
47
53
|
fat: number;
|
|
48
|
-
|
|
54
|
+
saturatedFat: number;
|
|
49
55
|
}
|
|
50
56
|
interface IFoodNames {
|
|
51
|
-
id:
|
|
52
|
-
|
|
57
|
+
id: string;
|
|
58
|
+
foodItemsId: number;
|
|
53
59
|
title: string;
|
|
54
60
|
keyword: string;
|
|
55
61
|
description: string;
|
|
56
62
|
language: keyof Languages;
|
|
57
|
-
ts
|
|
63
|
+
ts?: unknown;
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"food.js","sourceRoot":"","sources":["../../../../types/services/rpc/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,
|
|
1
|
+
{"version":3,"file":"food.js","sourceRoot":"","sources":["../../../../types/services/rpc/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,CA0E3B;AA1ED,WAAiB,WAAW;IAC3B,IAAiB,KAAK,CAOrB;IAPD,WAAiB,KAAK;QACrB,IAAY,SAKX;QALD,WAAY,SAAS;YACpB,oCAAuB,CAAA;YACvB,4BAAe,CAAA;YACf,8BAAiB,CAAA;YACjB,4BAAe,CAAA;QAChB,CAAC,EALW,SAAS,GAAT,eAAS,KAAT,eAAS,QAKpB;IACF,CAAC,EAPgB,KAAK,GAAL,iBAAK,KAAL,iBAAK,QAOrB;AAkEF,CAAC,EA1EgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA0E3B"}
|