@demind-inc/core 1.7.67 → 1.7.69
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/models/Metrics.d.ts +12 -0
- package/dist/models/Routine.d.ts +1 -19
- package/lib/models/Metrics.ts +13 -1
- package/lib/models/Routine.ts +1 -24
- package/package.json +1 -1
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -109,6 +109,15 @@ export interface PredictedMealDetail {
|
|
|
109
109
|
startTime: string;
|
|
110
110
|
endTime: string;
|
|
111
111
|
description: string;
|
|
112
|
+
title?: string;
|
|
113
|
+
foodItems?: MealFoodAmount[];
|
|
114
|
+
kcal?: number;
|
|
115
|
+
macros?: {
|
|
116
|
+
[key: string]: number;
|
|
117
|
+
};
|
|
118
|
+
micros?: {
|
|
119
|
+
[key: string]: number;
|
|
120
|
+
};
|
|
112
121
|
}
|
|
113
122
|
export type PredictedMeal = Partial<Record<MealType, PredictedMealDetail>>;
|
|
114
123
|
export interface MetricActivity {
|
|
@@ -129,6 +138,9 @@ export interface MealFoodAmount {
|
|
|
129
138
|
export interface MetricMealDetail extends Partial<MetricActivity> {
|
|
130
139
|
type: MealType;
|
|
131
140
|
food?: MealFoodAmount;
|
|
141
|
+
title?: string;
|
|
142
|
+
foodItems?: MealFoodAmount[];
|
|
143
|
+
kcal?: number;
|
|
132
144
|
macros?: {
|
|
133
145
|
[key: string]: number;
|
|
134
146
|
};
|
package/dist/models/Routine.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface RoutineActivity {
|
|
|
14
14
|
shouldAutoSuggest?: boolean;
|
|
15
15
|
suggestReason?: string;
|
|
16
16
|
category?: EventCategorySet;
|
|
17
|
-
recurring:
|
|
17
|
+
recurring: RoutineActivityRecurring;
|
|
18
18
|
default?: boolean;
|
|
19
19
|
hidden?: boolean;
|
|
20
20
|
selected?: boolean;
|
|
@@ -25,21 +25,3 @@ export type RoutineActivityRecurring = {
|
|
|
25
25
|
enabled: boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export type RoutineCustomRecurrence = {
|
|
29
|
-
type: "weekly";
|
|
30
|
-
interval: number;
|
|
31
|
-
daysOfWeek: RoutineActivityRecurringDay[];
|
|
32
|
-
startDate: string;
|
|
33
|
-
} | {
|
|
34
|
-
type: "monthly-date";
|
|
35
|
-
interval: number;
|
|
36
|
-
dayOfMonth: number;
|
|
37
|
-
startDate: string;
|
|
38
|
-
} | {
|
|
39
|
-
type: "monthly-weekday";
|
|
40
|
-
interval: number;
|
|
41
|
-
weekOfMonth: 1 | 2 | 3 | 4 | -1;
|
|
42
|
-
dayOfWeek: RoutineActivityRecurringDay;
|
|
43
|
-
startDate: string;
|
|
44
|
-
};
|
|
45
|
-
export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
|
package/lib/models/Metrics.ts
CHANGED
|
@@ -122,6 +122,15 @@ export interface PredictedMealDetail {
|
|
|
122
122
|
startTime: string; // HH:mm
|
|
123
123
|
endTime: string; // HH:mm
|
|
124
124
|
description: string;
|
|
125
|
+
title?: string;
|
|
126
|
+
foodItems?: MealFoodAmount[];
|
|
127
|
+
kcal?: number;
|
|
128
|
+
macros?: {
|
|
129
|
+
[key: string]: number;
|
|
130
|
+
};
|
|
131
|
+
micros?: {
|
|
132
|
+
[key: string]: number;
|
|
133
|
+
};
|
|
125
134
|
}
|
|
126
135
|
|
|
127
136
|
export type PredictedMeal = Partial<Record<MealType, PredictedMealDetail>>;
|
|
@@ -145,7 +154,10 @@ export interface MealFoodAmount {
|
|
|
145
154
|
|
|
146
155
|
export interface MetricMealDetail extends Partial<MetricActivity> {
|
|
147
156
|
type: MealType;
|
|
148
|
-
food?: MealFoodAmount;
|
|
157
|
+
food?: MealFoodAmount; // deprecated
|
|
158
|
+
title?: string;
|
|
159
|
+
foodItems?: MealFoodAmount[];
|
|
160
|
+
kcal?: number;
|
|
149
161
|
macros?: {
|
|
150
162
|
[key: string]: number;
|
|
151
163
|
};
|
package/lib/models/Routine.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface RoutineActivity {
|
|
|
16
16
|
shouldAutoSuggest?: boolean;
|
|
17
17
|
suggestReason?: string;
|
|
18
18
|
category?: EventCategorySet;
|
|
19
|
-
recurring:
|
|
19
|
+
recurring: RoutineActivityRecurring;
|
|
20
20
|
default?: boolean;
|
|
21
21
|
hidden?: boolean;
|
|
22
22
|
selected?: boolean;
|
|
@@ -34,26 +34,3 @@ export type RoutineActivityRecurringDay =
|
|
|
34
34
|
export type RoutineActivityRecurring = {
|
|
35
35
|
[day in RoutineActivityRecurringDay]: { enabled: boolean };
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
export type RoutineCustomRecurrence =
|
|
39
|
-
| {
|
|
40
|
-
type: "weekly";
|
|
41
|
-
interval: number;
|
|
42
|
-
daysOfWeek: RoutineActivityRecurringDay[];
|
|
43
|
-
startDate: string;
|
|
44
|
-
}
|
|
45
|
-
| {
|
|
46
|
-
type: "monthly-date";
|
|
47
|
-
interval: number;
|
|
48
|
-
dayOfMonth: number;
|
|
49
|
-
startDate: string;
|
|
50
|
-
}
|
|
51
|
-
| {
|
|
52
|
-
type: "monthly-weekday";
|
|
53
|
-
interval: number;
|
|
54
|
-
weekOfMonth: 1 | 2 | 3 | 4 | -1;
|
|
55
|
-
dayOfWeek: RoutineActivityRecurringDay;
|
|
56
|
-
startDate: string;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
|