@demind-inc/core 1.7.26 → 1.7.28

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.
@@ -12,7 +12,8 @@ export interface EMADateSet {
12
12
  scores?: EMADatePhaseScoreSet;
13
13
  satisfaction?: EMASatisfaction;
14
14
  }
15
- export type EMADatePhaseScoreSet = Omit<Record<CircadianPhase, EMADateScore>, "default">;
15
+ export type EMAKey = CircadianPhase | string;
16
+ export type EMADatePhaseScoreSet = Omit<Record<EMAKey, EMADateScore>, "default">;
16
17
  export interface EMADateScore {
17
18
  timestamp?: string;
18
19
  timezone?: string;
@@ -33,6 +33,7 @@ export interface CalendarPreference {
33
33
  sleep?: boolean;
34
34
  meal?: boolean;
35
35
  task?: boolean;
36
+ routine?: boolean;
36
37
  };
37
38
  visibility?: {
38
39
  hideHeartRateOnEvent?: boolean;
@@ -21,8 +21,10 @@ export interface EMADateSet {
21
21
  satisfaction?: EMASatisfaction;
22
22
  }
23
23
 
24
+ export type EMAKey = CircadianPhase | string; // phase and timestamp string
25
+
24
26
  export type EMADatePhaseScoreSet = Omit<
25
- Record<CircadianPhase, EMADateScore>,
27
+ Record<EMAKey, EMADateScore>,
26
28
  "default"
27
29
  >;
28
30
 
@@ -39,6 +39,7 @@ export interface CalendarPreference {
39
39
  sleep?: boolean;
40
40
  meal?: boolean;
41
41
  task?: boolean;
42
+ routine?: boolean;
42
43
  };
43
44
  visibility?: {
44
45
  hideHeartRateOnEvent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.26",
3
+ "version": "1.7.28",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {