@demind-inc/core 1.7.57 → 1.7.59
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 +0 -9
- package/dist/models/Preference.d.ts +4 -4
- package/dist/types.d.ts +1 -5
- package/lib/models/Metrics.ts +0 -11
- package/lib/models/Preference.ts +4 -4
- package/lib/types.ts +0 -6
- package/package.json +1 -1
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -20,15 +20,9 @@ export interface MetricSleep {
|
|
|
20
20
|
metricSleepId: string;
|
|
21
21
|
date: string;
|
|
22
22
|
scores?: SleepDetail[];
|
|
23
|
-
nap?: MetricNap[];
|
|
24
23
|
eventRef?: DocumentReference | null;
|
|
25
24
|
predictedSleep?: PredictedSleep;
|
|
26
25
|
}
|
|
27
|
-
export interface MetricNap {
|
|
28
|
-
metricNapId: string;
|
|
29
|
-
date: string;
|
|
30
|
-
scores?: NapDetail[];
|
|
31
|
-
}
|
|
32
26
|
export interface MetricLocation {
|
|
33
27
|
metricLocationId: string;
|
|
34
28
|
date: string;
|
|
@@ -202,9 +196,6 @@ export interface SleepDetail {
|
|
|
202
196
|
heartRateSummary?: MetricHRSummary;
|
|
203
197
|
temperatureDelta?: number;
|
|
204
198
|
}
|
|
205
|
-
export interface NapDetail extends SleepDetail {
|
|
206
|
-
metadata?: Record<string, unknown>;
|
|
207
|
-
}
|
|
208
199
|
export type SleepStageType = "deep" | "light" | "rem" | "awake";
|
|
209
200
|
export type SleepStage = Record<SleepStageType, number>;
|
|
210
201
|
export type MetricType = "stress" | "heartRate";
|
|
@@ -11,13 +11,13 @@ export interface Preferences {
|
|
|
11
11
|
task?: TaskPreference;
|
|
12
12
|
location?: LocationPreference;
|
|
13
13
|
}
|
|
14
|
+
export type AddressLabel = "home" | "work" | string;
|
|
14
15
|
export interface LocationPreference {
|
|
15
|
-
addresses?: AddressPreference
|
|
16
|
+
addresses?: Record<AddressLabel, AddressPreference>;
|
|
16
17
|
}
|
|
17
18
|
export interface AddressPreference {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
lng: number;
|
|
19
|
+
lat?: number;
|
|
20
|
+
lng?: number;
|
|
21
21
|
addressName: string;
|
|
22
22
|
link?: string;
|
|
23
23
|
}
|
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,
|
|
1
|
+
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, 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";
|
|
@@ -54,10 +54,6 @@ export interface SleepDetailsByDate {
|
|
|
54
54
|
details: SleepDetail;
|
|
55
55
|
predictedSleep?: Pick<SleepDetail, "awakeTime" | "sleepTime">;
|
|
56
56
|
}
|
|
57
|
-
export interface NapDetailsByDate {
|
|
58
|
-
date: string;
|
|
59
|
-
details: NapDetail[];
|
|
60
|
-
}
|
|
61
57
|
export interface HRDetailsByDate {
|
|
62
58
|
date: string;
|
|
63
59
|
hrDetails: MetricHRValueSet[];
|
package/lib/models/Metrics.ts
CHANGED
|
@@ -22,17 +22,10 @@ export interface MetricSleep {
|
|
|
22
22
|
metricSleepId: string;
|
|
23
23
|
date: string;
|
|
24
24
|
scores?: SleepDetail[];
|
|
25
|
-
nap?: MetricNap[];
|
|
26
25
|
eventRef?: DocumentReference | null;
|
|
27
26
|
predictedSleep?: PredictedSleep;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
export interface MetricNap {
|
|
31
|
-
metricNapId: string;
|
|
32
|
-
date: string;
|
|
33
|
-
scores?: NapDetail[];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
29
|
export interface MetricLocation {
|
|
37
30
|
metricLocationId: string;
|
|
38
31
|
date: string;
|
|
@@ -229,10 +222,6 @@ export interface SleepDetail {
|
|
|
229
222
|
temperatureDelta?: number;
|
|
230
223
|
}
|
|
231
224
|
|
|
232
|
-
export interface NapDetail extends SleepDetail {
|
|
233
|
-
metadata?: Record<string, unknown>;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
225
|
export type SleepStageType = "deep" | "light" | "rem" | "awake";
|
|
237
226
|
|
|
238
227
|
export type SleepStage = Record<SleepStageType, number>;
|
package/lib/models/Preference.ts
CHANGED
|
@@ -13,14 +13,14 @@ export interface Preferences {
|
|
|
13
13
|
task?: TaskPreference;
|
|
14
14
|
location?: LocationPreference;
|
|
15
15
|
}
|
|
16
|
+
export type AddressLabel = "home" | "work" | string;
|
|
16
17
|
|
|
17
18
|
export interface LocationPreference {
|
|
18
|
-
addresses?: AddressPreference
|
|
19
|
+
addresses?: Record<AddressLabel, AddressPreference>;
|
|
19
20
|
}
|
|
20
21
|
export interface AddressPreference {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
lng: number;
|
|
22
|
+
lat?: number;
|
|
23
|
+
lng?: number;
|
|
24
24
|
addressName: string;
|
|
25
25
|
link?: string;
|
|
26
26
|
}
|
package/lib/types.ts
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
PhaseStartEndSet,
|
|
15
15
|
RichContext,
|
|
16
16
|
RoutineActivity,
|
|
17
|
-
NapDetail,
|
|
18
17
|
SleepDetail,
|
|
19
18
|
TaskItem,
|
|
20
19
|
TaskPriority,
|
|
@@ -116,11 +115,6 @@ export interface SleepDetailsByDate {
|
|
|
116
115
|
predictedSleep?: Pick<SleepDetail, "awakeTime" | "sleepTime">;
|
|
117
116
|
}
|
|
118
117
|
|
|
119
|
-
export interface NapDetailsByDate {
|
|
120
|
-
date: string;
|
|
121
|
-
details: NapDetail[];
|
|
122
|
-
}
|
|
123
|
-
|
|
124
118
|
export interface HRDetailsByDate {
|
|
125
119
|
date: string;
|
|
126
120
|
hrDetails: MetricHRValueSet[];
|