@demind-inc/core 1.4.21 → 1.4.23

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.
@@ -34,6 +34,11 @@ export interface SchedulerPreference {
34
34
  dinner?: SchedulerItemPreference;
35
35
  workout?: SchedulerItemPreference;
36
36
  }
37
+ export interface SchedulerPreferenceV3 {
38
+ workTime?: SchedulerItemPreference;
39
+ deepWork?: SchedulerItemPreference;
40
+ lightWork?: SchedulerItemPreference;
41
+ }
37
42
  export interface EnergyBoostPreference {
38
43
  defaultActivities?: EnergyBoostPreferenceDefaultActivities;
39
44
  }
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarEvent, CalendarTaskFrom, EnergyFeedbackType, EventCategorySet, MetricActivity, MetricHRValueSet, PhaseStartEndSet, SleepDetail } from "./models";
1
+ import { CalendarEvent, CalendarTaskFrom, EnergyFeedbackType, EventCategorySet, MetricActivity, MetricHRValueSet, PhaseStartEndSet, SleepDetail, TaskItem } from "./models";
2
2
  export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "EIGHTSLEEP" | "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";
@@ -93,3 +93,4 @@ export interface EnergyFluctuationItem {
93
93
  }
94
94
  export * from "./featureFlags.types";
95
95
  export type TimeboxSessionType = "deepWork" | "lightWork";
96
+ export type TaskItemForSchedule = Pick<TaskItem, "name" | "duration" | "sortIndex" | "labels" | "addedToCalendar">;
@@ -41,6 +41,12 @@ export interface SchedulerPreference {
41
41
  workout?: SchedulerItemPreference;
42
42
  }
43
43
 
44
+ export interface SchedulerPreferenceV3 {
45
+ workTime?: SchedulerItemPreference;
46
+ deepWork?: SchedulerItemPreference;
47
+ lightWork?: SchedulerItemPreference;
48
+ }
49
+
44
50
  export interface EnergyBoostPreference {
45
51
  defaultActivities?: EnergyBoostPreferenceDefaultActivities;
46
52
  }
package/lib/types.ts CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  MetricHRValueSet,
8
8
  PhaseStartEndSet,
9
9
  SleepDetail,
10
+ TaskItem,
10
11
  } from "./models";
11
12
 
12
13
  export type SupportedTerraProvidersType =
@@ -144,3 +145,8 @@ export interface EnergyFluctuationItem {
144
145
  export * from "./featureFlags.types";
145
146
 
146
147
  export type TimeboxSessionType = "deepWork" | "lightWork";
148
+
149
+ export type TaskItemForSchedule = Pick<
150
+ TaskItem,
151
+ "name" | "duration" | "sortIndex" | "labels" | "addedToCalendar"
152
+ >;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {