@demind-inc/core 1.0.73 → 1.0.75

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.
@@ -9,12 +9,13 @@ export interface MetricsSleep {
9
9
  didInitialSync?: boolean;
10
10
  avgDurationMin?: number;
11
11
  }
12
- export type CircadianPhaseStartEndSet = Omit<Record<CircadianPhase, {
12
+ export type PhaseStartEndSet = Omit<Record<CircadianPhase, {
13
13
  start: string;
14
14
  end: string;
15
+ timezone?: string;
15
16
  }>, "default">;
16
17
  export interface MetricPhase {
17
- data: DateFrame<CircadianPhaseStartEndSet>;
18
+ data: DateFrame<PhaseStartEndSet>;
18
19
  }
19
20
  export interface SleepDetail {
20
21
  durationMin?: number;
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { EnergyFeedbackType, SleepDetail } from "./models";
1
+ import { EnergyFeedbackType, PhaseStartEndSet, SleepDetail } from "./models";
2
2
  export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "APPLE_HEALTH";
3
3
  export type CircadianPhase = "default" | "wakeup_low" | "wakeup_normal" | "morning_high" | "morning_normal" | "morning_low" | "evening_high" | "evening_low" | "evening_normal";
4
4
  export type TimePhase = "morning" | "midday" | "evening";
@@ -38,3 +38,7 @@ export interface SleepDetailsByDate {
38
38
  date: string;
39
39
  details: SleepDetail;
40
40
  }
41
+ export interface PhaseDetailsByDate {
42
+ date: string;
43
+ details: PhaseStartEndSet;
44
+ }
@@ -12,13 +12,13 @@ export interface MetricsSleep {
12
12
  avgDurationMin?: number;
13
13
  }
14
14
 
15
- export type CircadianPhaseStartEndSet = Omit<
16
- Record<CircadianPhase, { start: string; end: string }>,
15
+ export type PhaseStartEndSet = Omit<
16
+ Record<CircadianPhase, { start: string; end: string; timezone?: string }>,
17
17
  "default"
18
18
  >;
19
19
 
20
20
  export interface MetricPhase {
21
- data: DateFrame<CircadianPhaseStartEndSet>;
21
+ data: DateFrame<PhaseStartEndSet>;
22
22
  }
23
23
 
24
24
  export interface SleepDetail {
package/lib/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { EnergyFeedbackType, SleepDetail } from "./models";
1
+ import { EnergyFeedbackType, PhaseStartEndSet, SleepDetail } from "./models";
2
2
 
3
3
  export type SupportedTerraProvidersType =
4
4
  | "FITBIT"
@@ -61,3 +61,8 @@ export interface SleepDetailsByDate {
61
61
  date: string;
62
62
  details: SleepDetail;
63
63
  }
64
+
65
+ export interface PhaseDetailsByDate {
66
+ date: string;
67
+ details: PhaseStartEndSet;
68
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.0.73",
3
+ "version": "1.0.75",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {