@demind-inc/core 1.0.51 → 1.0.52

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.
@@ -1,8 +1,11 @@
1
- import { Chronotype, CircadianPhase } from "../types";
1
+ import { Chronotype, CircadianPhase, TimePhase } from "../types";
2
2
  export interface RecommendedTask {
3
3
  recommendedTaskId: string;
4
4
  name: string;
5
5
  origin: RecommendedTaskOrigin;
6
6
  phase: CircadianPhase;
7
+ timePhase?: TimePhase;
8
+ type?: RecommendedTaskType;
7
9
  }
8
10
  export type RecommendedTaskOrigin = ("general" | "custom") | Chronotype;
11
+ export type RecommendedTaskType = "energyBoost" | "task";
package/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { EnergyFeedbackType } 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
+ export type TimePhase = "morning" | "midday" | "evening";
4
5
  export interface CircadianMetric {
5
6
  timestamp: string;
6
7
  value: number;
@@ -1,10 +1,14 @@
1
- import { Chronotype, CircadianPhase } from "../types";
1
+ import { Chronotype, CircadianPhase, TimePhase } from "../types";
2
2
 
3
3
  export interface RecommendedTask {
4
4
  recommendedTaskId: string;
5
5
  name: string;
6
6
  origin: RecommendedTaskOrigin;
7
7
  phase: CircadianPhase;
8
+ timePhase?: TimePhase;
9
+ type?: RecommendedTaskType;
8
10
  }
9
11
 
10
12
  export type RecommendedTaskOrigin = ("general" | "custom") | Chronotype;
13
+
14
+ export type RecommendedTaskType = "energyBoost" | "task";
package/lib/types.ts CHANGED
@@ -17,6 +17,8 @@ export type CircadianPhase =
17
17
  | "evening_low"
18
18
  | "evening_normal";
19
19
 
20
+ export type TimePhase = "morning" | "midday" | "evening";
21
+
20
22
  export interface CircadianMetric {
21
23
  timestamp: string;
22
24
  value: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {