@demind-inc/core 1.7.71 → 1.7.73
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/RichContext.d.ts +9 -8
- package/dist/types.d.ts +10 -5
- package/lib/models/RichContext.ts +15 -8
- package/lib/types.ts +10 -7
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MealType, MealFoodAmount, MetricMealDetailMacros, MetricMealDetailMicros } from "./Metrics";
|
|
1
2
|
export type SignalSource = "location" | "weather" | "energy" | "sleep" | "screen_time" | "commute" | "menstrual_cycle" | "steps" | "medication" | (string & {});
|
|
2
3
|
export interface Location {
|
|
3
4
|
name: string;
|
|
@@ -101,14 +102,14 @@ export type ContentPayload = {
|
|
|
101
102
|
done: boolean;
|
|
102
103
|
}[];
|
|
103
104
|
} | {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
type: MealType;
|
|
106
|
+
title?: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
food_items?: MealFoodAmount[];
|
|
109
|
+
macros?: MetricMealDetailMacros;
|
|
110
|
+
micros?: MetricMealDetailMicros;
|
|
111
|
+
start_time?: string;
|
|
112
|
+
end_time?: string;
|
|
112
113
|
} | {
|
|
113
114
|
origin: string;
|
|
114
115
|
destination: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, RoutineActivity, NapDetail, SleepDetail, TaskItem, TaskPriority, TodoAppFrom
|
|
1
|
+
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, RoutineActivity, NapDetail, SleepDetail, TaskItem, TaskPriority, TodoAppFrom } from "./models";
|
|
2
2
|
export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "ULTRAHUMAN" | "STRAVA" | "MYFITNESSPAL";
|
|
3
3
|
export type SupportedTerraSDKType = "APPLE" | "GOOGLE_FIT" | "SAMSUNG_HEALTH" | "FREESTYLE_LIBRE";
|
|
4
4
|
export type CircadianPhase = "default" | "wakeup_low" | "wakeup_normal" | "morning_high" | "morning_normal" | "morning_low" | "evening_high" | "evening_low" | "evening_normal";
|
|
@@ -152,12 +152,17 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
152
152
|
before?: Partial<T>;
|
|
153
153
|
after?: Partial<T>;
|
|
154
154
|
}
|
|
155
|
+
export interface MealContentItem {
|
|
156
|
+
name: string;
|
|
157
|
+
portion?: string;
|
|
158
|
+
reason?: string;
|
|
159
|
+
}
|
|
155
160
|
export interface MealContent {
|
|
156
161
|
title: string;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
rationale: string;
|
|
163
|
+
suggested_items: MealContentItem[];
|
|
164
|
+
macro_focus?: Record<string, number>;
|
|
165
|
+
micro_focus?: string[];
|
|
161
166
|
}
|
|
162
167
|
export interface ChatAdjustmentMeal {
|
|
163
168
|
mealType: MealType;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
MealType,
|
|
3
|
+
MealFoodAmount,
|
|
4
|
+
MetricMealDetailMacros,
|
|
5
|
+
MetricMealDetailMicros,
|
|
6
|
+
} from "./Metrics";
|
|
7
|
+
|
|
1
8
|
export type SignalSource =
|
|
2
9
|
| "location"
|
|
3
10
|
| "weather"
|
|
@@ -170,14 +177,14 @@ export type ContentPayload =
|
|
|
170
177
|
}
|
|
171
178
|
| {
|
|
172
179
|
// meal_suggestion
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
type: MealType;
|
|
181
|
+
title?: string;
|
|
182
|
+
description?: string;
|
|
183
|
+
food_items?: MealFoodAmount[];
|
|
184
|
+
macros?: MetricMealDetailMacros;
|
|
185
|
+
micros?: MetricMealDetailMicros;
|
|
186
|
+
start_time?: string;
|
|
187
|
+
end_time?: string;
|
|
181
188
|
}
|
|
182
189
|
| {
|
|
183
190
|
// transit_route
|
package/lib/types.ts
CHANGED
|
@@ -19,9 +19,6 @@ import {
|
|
|
19
19
|
TaskItem,
|
|
20
20
|
TaskPriority,
|
|
21
21
|
TodoAppFrom,
|
|
22
|
-
MealFoodAmount,
|
|
23
|
-
MetricMealDetailMicros,
|
|
24
|
-
MetricMealDetailMacros,
|
|
25
22
|
} from "./models";
|
|
26
23
|
|
|
27
24
|
export type SupportedTerraProvidersType =
|
|
@@ -264,12 +261,18 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
264
261
|
after?: Partial<T>;
|
|
265
262
|
}
|
|
266
263
|
|
|
264
|
+
export interface MealContentItem {
|
|
265
|
+
name: string;
|
|
266
|
+
portion?: string;
|
|
267
|
+
reason?: string;
|
|
268
|
+
}
|
|
269
|
+
|
|
267
270
|
export interface MealContent {
|
|
268
271
|
title: string;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
rationale: string;
|
|
273
|
+
suggested_items: MealContentItem[];
|
|
274
|
+
macro_focus?: Record<string, number>;
|
|
275
|
+
micro_focus?: string[];
|
|
273
276
|
}
|
|
274
277
|
|
|
275
278
|
export interface ChatAdjustmentMeal {
|