@demind-inc/core 1.7.52 → 1.7.53

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.
@@ -7,7 +7,6 @@ export declare const DB_COLLECTION: {
7
7
  CALENDARS_CATEGORY_LABELS: string;
8
8
  METRICS: string;
9
9
  SLEEP: string;
10
- NAP: string;
11
10
  PHASE: string;
12
11
  EXERCISE: string;
13
12
  MEAL: string;
package/dist/constants.js CHANGED
@@ -8,7 +8,6 @@ exports.DB_COLLECTION = {
8
8
  CALENDARS_CATEGORY_LABELS: "categoryLabels",
9
9
  METRICS: "metrics",
10
10
  SLEEP: "sleep",
11
- NAP: "nap",
12
11
  PHASE: "phase",
13
12
  EXERCISE: "exercise",
14
13
  MEAL: "meal",
@@ -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";
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, NapDetail, PhaseStartEndSet, RichContext, RoutineActivity, SleepDetail, TaskItem, TaskPriority, TodoAppFrom } from "./models";
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
@@ -8,7 +8,6 @@ export const DB_COLLECTION = {
8
8
  CALENDARS_CATEGORY_LABELS: "categoryLabels",
9
9
  METRICS: "metrics",
10
10
  SLEEP: "sleep",
11
- NAP: "nap",
12
11
  PHASE: "phase",
13
12
  EXERCISE: "exercise",
14
13
  MEAL: "meal",
@@ -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>;
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.52",
3
+ "version": "1.7.53",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {