@demind-inc/core 1.7.30 → 1.7.31
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/User.d.ts +3 -1
- package/dist/types.d.ts +1 -0
- package/lib/models/User.ts +3 -1
- package/lib/types.ts +6 -0
- package/package.json +1 -1
package/dist/models/User.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentReference } from "@google-cloud/firestore";
|
|
2
|
-
import { Chronotype } from "../types";
|
|
2
|
+
import { Chronotype, PeaksDipsPhase } from "../types";
|
|
3
3
|
import { DeviceConnectedFrom } from "./DeviceGroup";
|
|
4
4
|
export interface User {
|
|
5
5
|
userId: string;
|
|
@@ -129,12 +129,14 @@ export interface FreeTrial {
|
|
|
129
129
|
startDate: string;
|
|
130
130
|
endDate: string;
|
|
131
131
|
}
|
|
132
|
+
export type PeaksDipsDetails = Record<PeaksDipsPhase, boolean>;
|
|
132
133
|
export interface Notifications {
|
|
133
134
|
energyEma?: boolean;
|
|
134
135
|
peaksDips?: boolean;
|
|
135
136
|
dailyAnalysis?: boolean;
|
|
136
137
|
calendar?: CalendarNotification;
|
|
137
138
|
satisfaction?: boolean;
|
|
139
|
+
peaksDipsDetails?: PeaksDipsDetails;
|
|
138
140
|
}
|
|
139
141
|
export interface CalendarNotification {
|
|
140
142
|
enabled: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { CalendarEvent, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, E
|
|
|
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";
|
|
5
|
+
export type PeaksDipsPhase = "morning_high" | "morning_low" | "evening_high" | "evening_low";
|
|
5
6
|
export type TimePhase = "morning" | "midday" | "evening";
|
|
6
7
|
export interface CircadianMetric {
|
|
7
8
|
timestamp: string;
|
package/lib/models/User.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentReference } from "@google-cloud/firestore";
|
|
2
|
-
import { Chronotype,
|
|
2
|
+
import { Chronotype, PeaksDipsPhase } from "../types";
|
|
3
3
|
import { DeviceConnectedFrom } from "./DeviceGroup";
|
|
4
4
|
|
|
5
5
|
export interface User {
|
|
@@ -208,12 +208,14 @@ export interface FreeTrial {
|
|
|
208
208
|
endDate: string;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
+
export type PeaksDipsDetails = Record<PeaksDipsPhase, boolean>;
|
|
211
212
|
export interface Notifications {
|
|
212
213
|
energyEma?: boolean;
|
|
213
214
|
peaksDips?: boolean;
|
|
214
215
|
dailyAnalysis?: boolean;
|
|
215
216
|
calendar?: CalendarNotification;
|
|
216
217
|
satisfaction?: boolean;
|
|
218
|
+
peaksDipsDetails?: PeaksDipsDetails;
|
|
217
219
|
}
|
|
218
220
|
|
|
219
221
|
export interface CalendarNotification {
|
package/lib/types.ts
CHANGED
|
@@ -44,6 +44,12 @@ export type CircadianPhase =
|
|
|
44
44
|
| "evening_low"
|
|
45
45
|
| "evening_normal";
|
|
46
46
|
|
|
47
|
+
export type PeaksDipsPhase =
|
|
48
|
+
| "morning_high"
|
|
49
|
+
| "morning_low"
|
|
50
|
+
| "evening_high"
|
|
51
|
+
| "evening_low";
|
|
52
|
+
|
|
47
53
|
export type TimePhase = "morning" | "midday" | "evening";
|
|
48
54
|
|
|
49
55
|
export interface CircadianMetric {
|