@hedia/types 2.2.2-alpha.5 → 2.2.2-alpha.7
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.
|
@@ -8,11 +8,6 @@ export declare namespace FoodService {
|
|
|
8
8
|
Dinner = "dinner",
|
|
9
9
|
Night = "night"
|
|
10
10
|
}
|
|
11
|
-
enum FoodFavoriteAction {
|
|
12
|
-
Add = "Add",
|
|
13
|
-
Remove = "Remove",
|
|
14
|
-
Update = "Update"
|
|
15
|
-
}
|
|
16
11
|
}
|
|
17
12
|
namespace RPC {
|
|
18
13
|
namespace SearchFood {
|
|
@@ -27,7 +22,9 @@ export declare namespace FoodService {
|
|
|
27
22
|
}
|
|
28
23
|
namespace FavoriteFood {
|
|
29
24
|
type Post = IRpcRoute<Types.IFavoriteFoodPostRequest, Types.IFavoriteFoodPostResponse>;
|
|
25
|
+
type Update = IRpcRoute<Types.IFavoriteFoodUpdateRequest, Types.IFavoriteFoodUpdateResponse>;
|
|
30
26
|
type Get = IRpcRoute<Types.IFavoriteFoodGetRequest, Types.IFavoriteFoodGetResponse>;
|
|
27
|
+
type Delete = IRpcRoute<Types.IFavoriteFoodDeleteRequest, Types.IFavoriteFoodDeleteResponse>;
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
30
|
namespace Types {
|
|
@@ -46,12 +43,14 @@ export declare namespace FoodService {
|
|
|
46
43
|
foodItemsId: string;
|
|
47
44
|
grams: number;
|
|
48
45
|
}>;
|
|
49
|
-
type IFavoriteFoodPostRequest = Omit<IFoodFavorites, "id"
|
|
50
|
-
foodFavoriteActionType: Enums.FoodFavoriteAction;
|
|
51
|
-
};
|
|
46
|
+
type IFavoriteFoodPostRequest = Omit<IFoodFavorites, "id">;
|
|
52
47
|
type IFavoriteFoodPostResponse = IFoodFavorites;
|
|
53
48
|
type IFavoriteFoodGetRequest = object;
|
|
54
49
|
type IFavoriteFoodGetResponse = Array<IFoodFavorites>;
|
|
50
|
+
type IFavoriteFoodUpdateRequest = IFoodFavorites;
|
|
51
|
+
type IFavoriteFoodUpdateResponse = IFoodFavorites;
|
|
52
|
+
type IFavoriteFoodDeleteRequest = IFoodFavorites;
|
|
53
|
+
type IFavoriteFoodDeleteResponse = object;
|
|
55
54
|
interface IFrequentFoods {
|
|
56
55
|
id: string;
|
|
57
56
|
foodItemsId: string;
|
package/dist/v3/services/food.js
CHANGED
|
@@ -12,12 +12,6 @@ var FoodService;
|
|
|
12
12
|
MealType["Dinner"] = "dinner";
|
|
13
13
|
MealType["Night"] = "night";
|
|
14
14
|
})(MealType = Enums.MealType || (Enums.MealType = {}));
|
|
15
|
-
let FoodFavoriteAction;
|
|
16
|
-
(function (FoodFavoriteAction) {
|
|
17
|
-
FoodFavoriteAction["Add"] = "Add";
|
|
18
|
-
FoodFavoriteAction["Remove"] = "Remove";
|
|
19
|
-
FoodFavoriteAction["Update"] = "Update";
|
|
20
|
-
})(FoodFavoriteAction = Enums.FoodFavoriteAction || (Enums.FoodFavoriteAction = {}));
|
|
21
15
|
})(Enums = FoodService.Enums || (FoodService.Enums = {}));
|
|
22
16
|
})(FoodService = exports.FoodService || (exports.FoodService = {}));
|
|
23
17
|
//# sourceMappingURL=food.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"food.js","sourceRoot":"","sources":["../../../v3/services/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,CAiG3B;AAjGD,WAAiB,WAAW;IAC3B,IAAiB,KAAK,
|
|
1
|
+
{"version":3,"file":"food.js","sourceRoot":"","sources":["../../../v3/services/food.ts"],"names":[],"mappings":";;;AAGA,IAAiB,WAAW,CAiG3B;AAjGD,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;AAyFF,CAAC,EAjGgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAiG3B"}
|