@demind-inc/core 1.7.72 → 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 +1 -3
- package/lib/models/RichContext.ts +15 -8
- package/lib/types.ts +0 -3
- 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,
|
|
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";
|
|
@@ -42,8 +42,6 @@ export interface ScheduledAction {
|
|
|
42
42
|
priority?: TaskPriority;
|
|
43
43
|
actionType?: ScheduledActionType;
|
|
44
44
|
richContext?: RichContext | null;
|
|
45
|
-
recurrence?: CalendarEventRecurrence;
|
|
46
|
-
seriesId?: string;
|
|
47
45
|
}
|
|
48
46
|
export interface ScheduledActionOptions {
|
|
49
47
|
startDate: string;
|
|
@@ -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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarEvent,
|
|
3
|
-
CalendarEventRecurrence,
|
|
4
3
|
CalendarRoutineFrom,
|
|
5
4
|
CalendarTaskFrom,
|
|
6
5
|
EMASatisfaction,
|
|
@@ -102,8 +101,6 @@ export interface ScheduledAction {
|
|
|
102
101
|
priority?: TaskPriority;
|
|
103
102
|
actionType?: ScheduledActionType;
|
|
104
103
|
richContext?: RichContext | null;
|
|
105
|
-
recurrence?: CalendarEventRecurrence;
|
|
106
|
-
seriesId?: string;
|
|
107
104
|
}
|
|
108
105
|
|
|
109
106
|
export interface ScheduledActionOptions {
|