@demind-inc/core 1.0.39 → 1.0.41

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.
@@ -0,0 +1,11 @@
1
+ import { CircadianPhase } from "../types";
2
+ export interface EMAs {
3
+ emaId: string;
4
+ dates: EMADateScore[];
5
+ }
6
+ export interface EMADateScore {
7
+ emaDateId: string;
8
+ phase: CircadianPhase;
9
+ timestamp: string;
10
+ energy: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,4 @@ export interface RecommendedTask {
5
5
  origin: RecommendedTaskOrigin;
6
6
  phase: CircadianPhase;
7
7
  }
8
- export type RecommendedTaskOrigin = ("general" | "custom") & Chronotype;
8
+ export type RecommendedTaskOrigin = ("general" | "custom") | Chronotype;
@@ -13,6 +13,7 @@ export interface User {
13
13
  notifications?: Notifications;
14
14
  recommendedTasks?: Array<DocumentReference>;
15
15
  chronotype?: Chronotype;
16
+ emaId?: Array<DocumentReference>;
16
17
  }
17
18
  export interface Notifications {
18
19
  energyEma?: boolean;
@@ -0,0 +1,13 @@
1
+ import { CircadianPhase } from "../types";
2
+
3
+ export interface EMAs {
4
+ emaId: string;
5
+ dates: EMADateScore[];
6
+ }
7
+
8
+ export interface EMADateScore {
9
+ emaDateId: string;
10
+ phase: CircadianPhase;
11
+ timestamp: string;
12
+ energy: number;
13
+ }
@@ -7,4 +7,4 @@ export interface RecommendedTask {
7
7
  phase: CircadianPhase;
8
8
  }
9
9
 
10
- export type RecommendedTaskOrigin = ("general" | "custom") & Chronotype;
10
+ export type RecommendedTaskOrigin = ("general" | "custom") | Chronotype;
@@ -14,6 +14,7 @@ export interface User {
14
14
  notifications?: Notifications;
15
15
  recommendedTasks?: Array<DocumentReference>;
16
16
  chronotype?: Chronotype;
17
+ emaId?: Array<DocumentReference>;
17
18
  }
18
19
 
19
20
  export interface Notifications {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {