@demind-inc/core 1.5.56 → 1.5.58
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 +19 -1
- package/lib/types.ts +23 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricStressValueSet, PhaseStartEndSet, SleepDetail, TaskItem } from "./models";
|
|
1
|
+
import { CalendarEvent, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricStressValueSet, PhaseStartEndSet, SleepDetail, TaskItem } from "./models";
|
|
2
2
|
export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "EIGHTSLEEP" | "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";
|
|
@@ -122,3 +122,21 @@ export interface RecommendationAction {
|
|
|
122
122
|
iconColor?: string;
|
|
123
123
|
isScheduled?: boolean;
|
|
124
124
|
}
|
|
125
|
+
export interface ChatAdjustmentCTA {
|
|
126
|
+
meals?: ChatAdjustmentChangeWrapper<ChatAdjustmentMeal>[];
|
|
127
|
+
sleep?: ChatAdjustmentChangeWrapper<ChatAdjustmentSleep>;
|
|
128
|
+
schedule?: ChatAdjustmentChangeWrapper<ScheduledAction>[];
|
|
129
|
+
}
|
|
130
|
+
export interface ChatAdjustmentChangeWrapper<T> {
|
|
131
|
+
before: Partial<T>;
|
|
132
|
+
after: Partial<T>;
|
|
133
|
+
}
|
|
134
|
+
export interface ChatAdjustmentMeal {
|
|
135
|
+
mealType: MealType;
|
|
136
|
+
startTime: string;
|
|
137
|
+
endTime: string;
|
|
138
|
+
}
|
|
139
|
+
export interface ChatAdjustmentSleep {
|
|
140
|
+
sleepTime: string;
|
|
141
|
+
wakeTime: string;
|
|
142
|
+
}
|
package/lib/types.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
EMASatisfaction,
|
|
5
5
|
EnergyFeedbackType,
|
|
6
6
|
EventCategorySet,
|
|
7
|
+
MealType,
|
|
7
8
|
MetricActivity,
|
|
8
9
|
MetricHRValueSet,
|
|
9
10
|
MetricMealDetail,
|
|
@@ -209,3 +210,25 @@ export interface RecommendationAction {
|
|
|
209
210
|
iconColor?: string; // hex color
|
|
210
211
|
isScheduled?: boolean;
|
|
211
212
|
}
|
|
213
|
+
|
|
214
|
+
export interface ChatAdjustmentCTA {
|
|
215
|
+
meals?: ChatAdjustmentChangeWrapper<ChatAdjustmentMeal>[];
|
|
216
|
+
sleep?: ChatAdjustmentChangeWrapper<ChatAdjustmentSleep>;
|
|
217
|
+
schedule?: ChatAdjustmentChangeWrapper<ScheduledAction>[];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface ChatAdjustmentChangeWrapper<T> {
|
|
221
|
+
before: Partial<T>;
|
|
222
|
+
after: Partial<T>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface ChatAdjustmentMeal {
|
|
226
|
+
mealType: MealType;
|
|
227
|
+
startTime: string;
|
|
228
|
+
endTime: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface ChatAdjustmentSleep {
|
|
232
|
+
sleepTime: string;
|
|
233
|
+
wakeTime: string;
|
|
234
|
+
}
|