@demind-inc/core 1.3.7 → 1.3.10
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 +1 -1
- package/dist/types.d.ts +5 -1
- package/lib/models/Metrics.ts +1 -1
- package/lib/types.ts +8 -2
- package/package.json +1 -1
package/dist/models/Metrics.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, EnergyFeedbackType, EventCategorySet, PhaseStartEndSet, SleepDetail } from "./models";
|
|
1
|
+
import { CalendarEvent, EnergyFeedbackType, EventCategorySet, MetricActivity, PhaseStartEndSet, SleepDetail } from "./models";
|
|
2
2
|
export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "EIGHTSLEEP" | "ULTRAHUMAN";
|
|
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";
|
|
@@ -41,6 +41,10 @@ export interface SleepDetailsByDate {
|
|
|
41
41
|
date: string;
|
|
42
42
|
details: SleepDetail;
|
|
43
43
|
}
|
|
44
|
+
export interface ExerciseDetailsByDate {
|
|
45
|
+
date: string;
|
|
46
|
+
details: MetricActivity[];
|
|
47
|
+
}
|
|
44
48
|
export interface PhaseDetailsByDate {
|
|
45
49
|
date: string;
|
|
46
50
|
details: PhaseStartEndSet;
|
package/lib/models/Metrics.ts
CHANGED
package/lib/types.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
CalendarEvent,
|
|
3
3
|
EnergyFeedbackType,
|
|
4
4
|
EventCategorySet,
|
|
5
|
+
MetricActivity,
|
|
5
6
|
PhaseStartEndSet,
|
|
6
7
|
SleepDetail,
|
|
7
8
|
} from "./models";
|
|
@@ -63,8 +64,8 @@ export interface ScheduledAction {
|
|
|
63
64
|
startDate: string;
|
|
64
65
|
endDate: string;
|
|
65
66
|
taskId?: string;
|
|
66
|
-
categoryId?: string
|
|
67
|
-
phase?: CircadianPhase
|
|
67
|
+
categoryId?: string;
|
|
68
|
+
phase?: CircadianPhase;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
export interface ScheduledActionOptions {
|
|
@@ -78,6 +79,11 @@ export interface SleepDetailsByDate {
|
|
|
78
79
|
details: SleepDetail;
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
export interface ExerciseDetailsByDate {
|
|
83
|
+
date: string;
|
|
84
|
+
details: MetricActivity[];
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
export interface PhaseDetailsByDate {
|
|
82
88
|
date: string;
|
|
83
89
|
details: PhaseStartEndSet;
|