@demind-inc/core 1.7.11 → 1.7.13
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 +9 -8
- package/dist/types.d.ts +2 -1
- package/lib/models/Metrics.ts +10 -8
- package/lib/types.ts +2 -0
- package/package.json +1 -1
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -41,18 +41,19 @@ export interface MetricExercise {
|
|
|
41
41
|
date: string;
|
|
42
42
|
activities: MetricActivity[];
|
|
43
43
|
}
|
|
44
|
+
export interface MetricMealSummary {
|
|
45
|
+
macros?: {
|
|
46
|
+
[key: string]: number;
|
|
47
|
+
};
|
|
48
|
+
micros?: {
|
|
49
|
+
[key: string]: number;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
44
52
|
export interface MetricMeal {
|
|
45
53
|
metricMealId: string;
|
|
46
54
|
date: string;
|
|
47
55
|
meals: MetricMealDetail[];
|
|
48
|
-
summary?:
|
|
49
|
-
macros?: {
|
|
50
|
-
[key: string]: number;
|
|
51
|
-
};
|
|
52
|
-
micros?: {
|
|
53
|
-
[key: string]: number;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
+
summary?: MetricMealSummary;
|
|
56
57
|
breakfastEventRef?: DocumentReference | null;
|
|
57
58
|
lunchEventRef?: DocumentReference | null;
|
|
58
59
|
dinnerEventRef?: DocumentReference | null;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricStressValueSet, PhaseStartEndSet, RoutineActivity, SleepDetail, TaskItem, TaskPriority, TodoAppFrom } from "./models";
|
|
1
|
+
import { CalendarEvent, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RoutineActivity, 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";
|
|
@@ -64,6 +64,7 @@ export interface ExerciseDetailsByDate {
|
|
|
64
64
|
export interface MealDetailsByDate {
|
|
65
65
|
date: string;
|
|
66
66
|
details: MetricMealDetail[];
|
|
67
|
+
summary?: MetricMealSummary;
|
|
67
68
|
}
|
|
68
69
|
export interface PhaseDetailsByDate {
|
|
69
70
|
date: string;
|
package/lib/models/Metrics.ts
CHANGED
|
@@ -47,18 +47,20 @@ export interface MetricExercise {
|
|
|
47
47
|
activities: MetricActivity[];
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export interface MetricMealSummary {
|
|
51
|
+
macros?: {
|
|
52
|
+
[key: string]: number;
|
|
53
|
+
};
|
|
54
|
+
micros?: {
|
|
55
|
+
[key: string]: number;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
export interface MetricMeal {
|
|
51
60
|
metricMealId: string;
|
|
52
61
|
date: string;
|
|
53
62
|
meals: MetricMealDetail[];
|
|
54
|
-
summary?:
|
|
55
|
-
macros?: {
|
|
56
|
-
[key: string]: number;
|
|
57
|
-
};
|
|
58
|
-
micros?: {
|
|
59
|
-
[key: string]: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
63
|
+
summary?: MetricMealSummary;
|
|
62
64
|
breakfastEventRef?: DocumentReference | null;
|
|
63
65
|
lunchEventRef?: DocumentReference | null;
|
|
64
66
|
dinnerEventRef?: DocumentReference | null;
|
package/lib/types.ts
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
MetricActivity,
|
|
9
9
|
MetricHRValueSet,
|
|
10
10
|
MetricMealDetail,
|
|
11
|
+
MetricMealSummary,
|
|
11
12
|
MetricStressValueSet,
|
|
12
13
|
PhaseStartEndSet,
|
|
13
14
|
RoutineActivity,
|
|
@@ -119,6 +120,7 @@ export interface ExerciseDetailsByDate {
|
|
|
119
120
|
export interface MealDetailsByDate {
|
|
120
121
|
date: string;
|
|
121
122
|
details: MetricMealDetail[];
|
|
123
|
+
summary?: MetricMealSummary;
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
export interface PhaseDetailsByDate {
|