@demind-inc/core 1.7.74 → 1.7.76
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/types.d.ts +3 -2
- package/lib/types.ts +6 -1
- package/package.json +1 -1
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,
|
|
1
|
+
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, RoutineActivity, NapDetail, SleepDetail, TaskItem, TaskPriority, TodoAppFrom, PredictedMealDetail } 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,13 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
152
152
|
before?: Partial<T>;
|
|
153
153
|
after?: Partial<T>;
|
|
154
154
|
}
|
|
155
|
+
export type ChatAdjustmentMealContent = Extract<PredictedMealDetail, "startTime" | "endTime" | "description">;
|
|
155
156
|
export interface ChatAdjustmentMeal {
|
|
156
157
|
mealType: MealType;
|
|
157
158
|
startTime: string;
|
|
158
159
|
endTime: string;
|
|
159
160
|
description?: string;
|
|
160
|
-
mealContent?:
|
|
161
|
+
mealContent?: ChatAdjustmentMealContent;
|
|
161
162
|
}
|
|
162
163
|
export interface ChatAdjustmentSleep {
|
|
163
164
|
sleepTime: string;
|
package/lib/types.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
TaskItem,
|
|
21
21
|
TaskPriority,
|
|
22
22
|
TodoAppFrom,
|
|
23
|
+
PredictedMealDetail,
|
|
23
24
|
} from "./models";
|
|
24
25
|
|
|
25
26
|
export type SupportedTerraProvidersType =
|
|
@@ -262,13 +263,17 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
262
263
|
after?: Partial<T>;
|
|
263
264
|
}
|
|
264
265
|
|
|
266
|
+
export type ChatAdjustmentMealContent = Extract<
|
|
267
|
+
PredictedMealDetail,
|
|
268
|
+
"startTime" | "endTime" | "description"
|
|
269
|
+
>;
|
|
265
270
|
|
|
266
271
|
export interface ChatAdjustmentMeal {
|
|
267
272
|
mealType: MealType;
|
|
268
273
|
startTime: string; // ISO string
|
|
269
274
|
endTime: string; // ISO string
|
|
270
275
|
description?: string;
|
|
271
|
-
mealContent?:
|
|
276
|
+
mealContent?: ChatAdjustmentMealContent;
|
|
272
277
|
}
|
|
273
278
|
|
|
274
279
|
export interface ChatAdjustmentSleep {
|