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