@demind-inc/core 1.7.52 → 1.7.54
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/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/models/Metrics.d.ts +6 -10
- package/dist/models/RichContext.d.ts +1 -1
- package/dist/types.d.ts +1 -5
- package/lib/constants.ts +0 -1
- package/lib/models/Metrics.ts +6 -12
- package/lib/models/RichContext.ts +1 -1
- package/lib/types.ts +0 -6
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { CircadianPhase } from "../types";
|
|
|
3
3
|
export interface Metrics {
|
|
4
4
|
metricId: string;
|
|
5
5
|
sleep?: MetricSleep[];
|
|
6
|
-
nap?: MetricNap[];
|
|
7
6
|
phase?: MetricPhase[];
|
|
8
7
|
exercise?: MetricExercise[];
|
|
9
8
|
meal?: MetricMeal[];
|
|
@@ -24,12 +23,6 @@ export interface MetricSleep {
|
|
|
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
|
-
eventRef?: DocumentReference | null;
|
|
32
|
-
}
|
|
33
26
|
export interface MetricLocation {
|
|
34
27
|
metricLocationId: string;
|
|
35
28
|
date: string;
|
|
@@ -60,6 +53,12 @@ export interface WeatherData {
|
|
|
60
53
|
high_c?: number;
|
|
61
54
|
low_f?: number;
|
|
62
55
|
low_c?: number;
|
|
56
|
+
timeline?: Array<{
|
|
57
|
+
timestamp: string;
|
|
58
|
+
temperature_f?: number;
|
|
59
|
+
temperature_c?: number;
|
|
60
|
+
summary?: string;
|
|
61
|
+
}>;
|
|
63
62
|
};
|
|
64
63
|
rawJson?: string;
|
|
65
64
|
}
|
|
@@ -197,9 +196,6 @@ export interface SleepDetail {
|
|
|
197
196
|
heartRateSummary?: MetricHRSummary;
|
|
198
197
|
temperatureDelta?: number;
|
|
199
198
|
}
|
|
200
|
-
export interface NapDetail extends SleepDetail {
|
|
201
|
-
metadata?: Record<string, unknown>;
|
|
202
|
-
}
|
|
203
199
|
export type SleepStageType = "deep" | "light" | "rem" | "awake";
|
|
204
200
|
export type SleepStage = Record<SleepStageType, number>;
|
|
205
201
|
export type MetricType = "stress" | "heartRate";
|
|
@@ -78,7 +78,7 @@ export interface Action {
|
|
|
78
78
|
action_type: ActionType;
|
|
79
79
|
payload: ActionPayload;
|
|
80
80
|
}
|
|
81
|
-
export type ContentType = "workout_plan" | "checklist" | "meal_suggestion" | "transit_route" | "journal_prompts" | "audio_player" | "energy_summary" | "sleep_summary" | "metric_bar" | "meal_plan_week" | (string & {});
|
|
81
|
+
export type ContentType = "workout_plan" | "checklist" | "find_location" | "meal_suggestion" | "transit_route" | "journal_prompts" | "audio_player" | "energy_summary" | "sleep_summary" | "metric_bar" | "meal_plan_week" | (string & {});
|
|
82
82
|
export type ContentPayload = {
|
|
83
83
|
plan_title: string;
|
|
84
84
|
difficulty: "beginner" | "intermediate" | "advanced";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet,
|
|
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/constants.ts
CHANGED
package/lib/models/Metrics.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { CircadianPhase } from "../types";
|
|
|
4
4
|
export interface Metrics {
|
|
5
5
|
metricId: string;
|
|
6
6
|
sleep?: MetricSleep[];
|
|
7
|
-
nap?: MetricNap[];
|
|
8
7
|
phase?: MetricPhase[];
|
|
9
8
|
exercise?: MetricExercise[];
|
|
10
9
|
meal?: MetricMeal[];
|
|
@@ -27,13 +26,6 @@ export interface MetricSleep {
|
|
|
27
26
|
predictedSleep?: PredictedSleep;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
export interface MetricNap {
|
|
31
|
-
metricNapId: string;
|
|
32
|
-
date: string;
|
|
33
|
-
scores?: NapDetail[];
|
|
34
|
-
eventRef?: DocumentReference | null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
29
|
export interface MetricLocation {
|
|
38
30
|
metricLocationId: string;
|
|
39
31
|
date: string;
|
|
@@ -67,6 +59,12 @@ export interface WeatherData {
|
|
|
67
59
|
high_c?: number;
|
|
68
60
|
low_f?: number;
|
|
69
61
|
low_c?: number;
|
|
62
|
+
timeline?: Array<{
|
|
63
|
+
timestamp: string;
|
|
64
|
+
temperature_f?: number;
|
|
65
|
+
temperature_c?: number;
|
|
66
|
+
summary?: string;
|
|
67
|
+
}>;
|
|
70
68
|
};
|
|
71
69
|
rawJson?: string;
|
|
72
70
|
}
|
|
@@ -224,10 +222,6 @@ export interface SleepDetail {
|
|
|
224
222
|
temperatureDelta?: number;
|
|
225
223
|
}
|
|
226
224
|
|
|
227
|
-
export interface NapDetail extends SleepDetail {
|
|
228
|
-
metadata?: Record<string, unknown>;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
225
|
export type SleepStageType = "deep" | "light" | "rem" | "awake";
|
|
232
226
|
|
|
233
227
|
export type SleepStage = Record<SleepStageType, number>;
|
|
@@ -134,6 +134,7 @@ export interface Action {
|
|
|
134
134
|
export type ContentType =
|
|
135
135
|
| "workout_plan"
|
|
136
136
|
| "checklist"
|
|
137
|
+
| "find_location"
|
|
137
138
|
| "meal_suggestion"
|
|
138
139
|
| "transit_route"
|
|
139
140
|
| "journal_prompts"
|
|
@@ -249,4 +250,3 @@ export interface RichContext {
|
|
|
249
250
|
action: Action | null;
|
|
250
251
|
content: Content | Content[] | null;
|
|
251
252
|
}
|
|
252
|
-
|
package/lib/types.ts
CHANGED
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
MetricMealDetail,
|
|
12
12
|
MetricMealSummary,
|
|
13
13
|
MetricStressValueSet,
|
|
14
|
-
NapDetail,
|
|
15
14
|
PhaseStartEndSet,
|
|
16
15
|
RichContext,
|
|
17
16
|
RoutineActivity,
|
|
@@ -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[];
|