@demind-inc/core 1.7.73 → 1.7.74
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 +11 -10
- package/dist/types.d.ts +2 -14
- package/lib/models/RichContext.ts +12 -11
- package/lib/types.ts +2 -14
- package/package.json +1 -1
|
@@ -85,6 +85,16 @@ export interface Action {
|
|
|
85
85
|
action_type: ActionType;
|
|
86
86
|
payload: ActionPayload;
|
|
87
87
|
}
|
|
88
|
+
export interface MealSuggestionPayload {
|
|
89
|
+
type: MealType;
|
|
90
|
+
title?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
food_items?: MealFoodAmount[];
|
|
93
|
+
macros?: MetricMealDetailMacros;
|
|
94
|
+
micros?: MetricMealDetailMicros;
|
|
95
|
+
start_time?: string;
|
|
96
|
+
end_time?: string;
|
|
97
|
+
}
|
|
88
98
|
export type ContentType = "workout_plan" | "checklist" | "find_location" | "meal_suggestion" | "transit_route" | "journal_prompts" | "audio_player" | "energy_summary" | "sleep_summary" | "metric_bar" | "meal_plan_week" | (string & {});
|
|
89
99
|
export type ContentPayload = {
|
|
90
100
|
plan_title: string;
|
|
@@ -101,16 +111,7 @@ export type ContentPayload = {
|
|
|
101
111
|
text: string;
|
|
102
112
|
done: boolean;
|
|
103
113
|
}[];
|
|
104
|
-
} | {
|
|
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;
|
|
113
|
-
} | {
|
|
114
|
+
} | MealSuggestionPayload | {
|
|
114
115
|
origin: string;
|
|
115
116
|
destination: string;
|
|
116
117
|
depart_by: 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 } from "./models";
|
|
1
|
+
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, MealSuggestionPayload, 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,24 +152,12 @@ 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
|
-
}
|
|
160
|
-
export interface MealContent {
|
|
161
|
-
title: string;
|
|
162
|
-
rationale: string;
|
|
163
|
-
suggested_items: MealContentItem[];
|
|
164
|
-
macro_focus?: Record<string, number>;
|
|
165
|
-
micro_focus?: string[];
|
|
166
|
-
}
|
|
167
155
|
export interface ChatAdjustmentMeal {
|
|
168
156
|
mealType: MealType;
|
|
169
157
|
startTime: string;
|
|
170
158
|
endTime: string;
|
|
171
159
|
description?: string;
|
|
172
|
-
mealContent?:
|
|
160
|
+
mealContent?: MealSuggestionPayload;
|
|
173
161
|
}
|
|
174
162
|
export interface ChatAdjustmentSleep {
|
|
175
163
|
sleepTime: string;
|
|
@@ -144,6 +144,17 @@ export interface Action {
|
|
|
144
144
|
payload: ActionPayload;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
export interface MealSuggestionPayload {
|
|
148
|
+
type: MealType;
|
|
149
|
+
title?: string;
|
|
150
|
+
description?: string;
|
|
151
|
+
food_items?: MealFoodAmount[];
|
|
152
|
+
macros?: MetricMealDetailMacros;
|
|
153
|
+
micros?: MetricMealDetailMicros;
|
|
154
|
+
start_time?: string;
|
|
155
|
+
end_time?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
147
158
|
export type ContentType =
|
|
148
159
|
| "workout_plan"
|
|
149
160
|
| "checklist"
|
|
@@ -175,17 +186,7 @@ export type ContentPayload =
|
|
|
175
186
|
label: string | null;
|
|
176
187
|
items: { text: string; done: boolean }[];
|
|
177
188
|
}
|
|
178
|
-
|
|
|
179
|
-
// meal_suggestion
|
|
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;
|
|
188
|
-
}
|
|
189
|
+
| MealSuggestionPayload
|
|
189
190
|
| {
|
|
190
191
|
// transit_route
|
|
191
192
|
origin: string;
|
package/lib/types.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
MetricMealSummary,
|
|
13
13
|
MetricStressValueSet,
|
|
14
14
|
PhaseStartEndSet,
|
|
15
|
+
MealSuggestionPayload,
|
|
15
16
|
RichContext,
|
|
16
17
|
RoutineActivity,
|
|
17
18
|
NapDetail,
|
|
@@ -261,26 +262,13 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
261
262
|
after?: Partial<T>;
|
|
262
263
|
}
|
|
263
264
|
|
|
264
|
-
export interface MealContentItem {
|
|
265
|
-
name: string;
|
|
266
|
-
portion?: string;
|
|
267
|
-
reason?: string;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export interface MealContent {
|
|
271
|
-
title: string;
|
|
272
|
-
rationale: string;
|
|
273
|
-
suggested_items: MealContentItem[];
|
|
274
|
-
macro_focus?: Record<string, number>;
|
|
275
|
-
micro_focus?: string[];
|
|
276
|
-
}
|
|
277
265
|
|
|
278
266
|
export interface ChatAdjustmentMeal {
|
|
279
267
|
mealType: MealType;
|
|
280
268
|
startTime: string; // ISO string
|
|
281
269
|
endTime: string; // ISO string
|
|
282
270
|
description?: string;
|
|
283
|
-
mealContent?:
|
|
271
|
+
mealContent?: MealSuggestionPayload;
|
|
284
272
|
}
|
|
285
273
|
|
|
286
274
|
export interface ChatAdjustmentSleep {
|