@demind-inc/core 1.10.31 → 1.11.1
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.
|
@@ -16,5 +16,7 @@ export interface Device {
|
|
|
16
16
|
from: DeviceConnectedFrom;
|
|
17
17
|
detailedSources?: string[];
|
|
18
18
|
permissions?: string[];
|
|
19
|
+
connectVia?: DeviceConnectVia;
|
|
19
20
|
}
|
|
20
21
|
export type DeviceConnectedFrom = "APPLE_HEALTH" | "TERRA" | "LIFESTACK";
|
|
22
|
+
export type DeviceConnectVia = "TERRA_SDK" | "NATIVE";
|
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, PredictedMealDetail } from './models';
|
|
1
|
+
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, RoutineActivity, NapDetail, SleepDetail, TaskItem, TaskPriority, TodoAppFrom, PredictedMealDetail, MetricExerciseDayMetadata } 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' | 'HEALTH_CONNECT';
|
|
4
4
|
export type CircadianPhase = 'default' | 'wakeup_low' | 'wakeup_normal' | 'morning_high' | 'morning_normal' | 'morning_low' | 'evening_high' | 'evening_low' | 'evening_normal';
|
|
@@ -75,6 +75,7 @@ export interface StressDetailsByDate {
|
|
|
75
75
|
export interface ExerciseDetailsByDate {
|
|
76
76
|
date: string;
|
|
77
77
|
details: MetricActivity[];
|
|
78
|
+
summary?: MetricExerciseDayMetadata;
|
|
78
79
|
}
|
|
79
80
|
export interface MealDetailsByDate {
|
|
80
81
|
date: string;
|
|
@@ -18,6 +18,12 @@ export interface Device {
|
|
|
18
18
|
from: DeviceConnectedFrom;
|
|
19
19
|
detailedSources?: string[];
|
|
20
20
|
permissions?: string[];
|
|
21
|
+
connectVia?: DeviceConnectVia;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export type DeviceConnectedFrom = "APPLE_HEALTH" | "TERRA" | "LIFESTACK";
|
|
25
|
+
|
|
26
|
+
// How the on-device data was read: through Terra's SDK (terra-react), or read
|
|
27
|
+
// directly by our own native HealthKit/Health Connect integration. Absent means
|
|
28
|
+
// 'TERRA_SDK' for backward compatibility with devices written before this field existed.
|
|
29
|
+
export type DeviceConnectVia = "TERRA_SDK" | "NATIVE";
|
package/lib/types.ts
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
TaskPriority,
|
|
22
22
|
TodoAppFrom,
|
|
23
23
|
PredictedMealDetail,
|
|
24
|
+
MetricExerciseDayMetadata,
|
|
24
25
|
} from './models';
|
|
25
26
|
|
|
26
27
|
export type SupportedTerraProvidersType =
|
|
@@ -144,6 +145,7 @@ export interface StressDetailsByDate {
|
|
|
144
145
|
export interface ExerciseDetailsByDate {
|
|
145
146
|
date: string;
|
|
146
147
|
details: MetricActivity[];
|
|
148
|
+
summary?: MetricExerciseDayMetadata;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
export interface MealDetailsByDate {
|