@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.
@@ -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
- venue_name: string;
105
- dish_name: string;
106
- dish_tags: string[];
107
- kcal: number | null;
108
- image_url: string | null;
109
- price: number | null;
110
- rating: number | null;
111
- menu_url: string | null;
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, MealFoodAmount, MetricMealDetailMicros, MetricMealDetailMacros } from "./models";
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
- foodItems?: MealFoodAmount[];
158
- macros?: MetricMealDetailMacros;
159
- micros?: MetricMealDetailMicros;
160
- description?: string;
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
- venue_name: string;
174
- dish_name: string;
175
- dish_tags: string[];
176
- kcal: number | null;
177
- image_url: string | null;
178
- price: number | null;
179
- rating: number | null;
180
- menu_url: string | null;
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
- foodItems?: MealFoodAmount[];
270
- macros?: MetricMealDetailMacros;
271
- micros?: MetricMealDetailMicros;
272
- description?: string;
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.71",
3
+ "version": "1.7.73",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {