@demind-inc/core 1.5.54 → 1.5.57
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/Metrics.d.ts +5 -2
- package/dist/types.d.ts +15 -1
- package/lib/models/Metrics.ts +8 -9
- package/lib/types.ts +18 -0
- package/package.json +1 -1
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface MetricSleep {
|
|
|
23
23
|
export interface PredictedSleep {
|
|
24
24
|
sleepTime: string;
|
|
25
25
|
wakeTime: string;
|
|
26
|
+
description: string;
|
|
26
27
|
}
|
|
27
28
|
export type PhaseStartEndSet = Omit<Record<CircadianPhase, {
|
|
28
29
|
start: string;
|
|
@@ -48,10 +49,12 @@ export interface MetricMeal {
|
|
|
48
49
|
dinnerEventRef?: DocumentReference | null;
|
|
49
50
|
predictedMeal?: PredictedMeal;
|
|
50
51
|
}
|
|
51
|
-
export
|
|
52
|
+
export interface PredictedMealDetail {
|
|
52
53
|
startTime: string;
|
|
53
54
|
endTime: string;
|
|
54
|
-
|
|
55
|
+
description: string;
|
|
56
|
+
}
|
|
57
|
+
export type PredictedMeal = Partial<Record<MealType, PredictedMealDetail>>;
|
|
55
58
|
export interface MetricActivity {
|
|
56
59
|
name: string;
|
|
57
60
|
startTime: string;
|
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,17 @@ export interface RecommendationAction {
|
|
|
122
122
|
iconColor?: string;
|
|
123
123
|
isScheduled?: boolean;
|
|
124
124
|
}
|
|
125
|
+
export interface ChatAdjustmentCTA {
|
|
126
|
+
meals?: ChatAdjustmentMeal[];
|
|
127
|
+
sleep?: ChatAdjustmentSleep;
|
|
128
|
+
schedule?: ScheduledAction[];
|
|
129
|
+
}
|
|
130
|
+
export interface ChatAdjustmentMeal {
|
|
131
|
+
mealType: MealType;
|
|
132
|
+
startTime: string;
|
|
133
|
+
endTime: string;
|
|
134
|
+
}
|
|
135
|
+
export interface ChatAdjustmentSleep {
|
|
136
|
+
sleepTime: string;
|
|
137
|
+
wakeTime: string;
|
|
138
|
+
}
|
package/lib/models/Metrics.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface MetricSleep {
|
|
|
26
26
|
export interface PredictedSleep {
|
|
27
27
|
sleepTime: string;
|
|
28
28
|
wakeTime: string;
|
|
29
|
+
description: string;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
export type PhaseStartEndSet = Omit<
|
|
@@ -55,15 +56,13 @@ export interface MetricMeal {
|
|
|
55
56
|
predictedMeal?: PredictedMeal;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
>
|
|
66
|
-
>;
|
|
59
|
+
export interface PredictedMealDetail {
|
|
60
|
+
startTime: string;
|
|
61
|
+
endTime: string;
|
|
62
|
+
description: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type PredictedMeal = Partial<Record<MealType, PredictedMealDetail>>;
|
|
67
66
|
|
|
68
67
|
export interface MetricActivity {
|
|
69
68
|
name: string;
|
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,20 @@ export interface RecommendationAction {
|
|
|
209
210
|
iconColor?: string; // hex color
|
|
210
211
|
isScheduled?: boolean;
|
|
211
212
|
}
|
|
213
|
+
|
|
214
|
+
export interface ChatAdjustmentCTA {
|
|
215
|
+
meals?: ChatAdjustmentMeal[];
|
|
216
|
+
sleep?: ChatAdjustmentSleep;
|
|
217
|
+
schedule?: ScheduledAction[];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface ChatAdjustmentMeal {
|
|
221
|
+
mealType: MealType;
|
|
222
|
+
startTime: string;
|
|
223
|
+
endTime: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface ChatAdjustmentSleep {
|
|
227
|
+
sleepTime: string;
|
|
228
|
+
wakeTime: string;
|
|
229
|
+
}
|