@demind-inc/core 1.10.4 → 1.10.6

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.
@@ -61,14 +61,32 @@ export interface CalendarPreference {
61
61
  };
62
62
  }
63
63
  export type SchedulerItemPrefType = keyof Pick<SchedulerPreference, "workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout">;
64
+ export type AllPlanScheduleType = "meal" | "sleep" | "workout" | "todo" | "routine";
65
+ export type AllPlanAutoAcceptScheduleType = "meal" | "sleep" | "workout" | string;
66
+ export interface AllPlanSchedulerPref {
67
+ autoAcceptTypes?: {
68
+ [key in AllPlanAutoAcceptScheduleType]?: boolean;
69
+ };
70
+ includeTypes?: {
71
+ [key in AllPlanScheduleType]?: boolean;
72
+ };
73
+ todo?: {
74
+ includeOverdueDatesBackward?: number;
75
+ skipReplanInCompletedPastTask?: boolean;
76
+ };
77
+ routine?: {
78
+ skipReplanInCompletedPastRoutine?: boolean;
79
+ };
80
+ }
64
81
  export interface SchedulerPreference {
65
82
  workTime?: SchedulerItemPreference;
66
83
  deepWork?: SchedulerItemPreference;
67
84
  lightWork?: SchedulerItemPreference;
85
+ bufferMinutes?: number;
86
+ allPlan?: AllPlanSchedulerPref;
68
87
  lunch?: SchedulerItemPreference;
69
88
  dinner?: SchedulerItemPreference;
70
89
  workout?: SchedulerItemPreference;
71
- bufferMinutes?: number;
72
90
  }
73
91
  export interface MealPreference {
74
92
  breakfast?: MealPreferenceItem;
@@ -74,14 +74,43 @@ export type SchedulerItemPrefType = keyof Pick<
74
74
  "workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout"
75
75
  >;
76
76
 
77
+ export type AllPlanScheduleType =
78
+ | "meal"
79
+ | "sleep"
80
+ | "workout"
81
+ | "todo"
82
+ | "routine";
83
+
84
+ export type AllPlanAutoAcceptScheduleType =
85
+ | "meal"
86
+ | "sleep"
87
+ | "workout"
88
+ | string;
89
+ export interface AllPlanSchedulerPref {
90
+ autoAcceptTypes?: {
91
+ [key in AllPlanAutoAcceptScheduleType]?: boolean;
92
+ };
93
+ includeTypes?: {
94
+ [key in AllPlanScheduleType]?: boolean;
95
+ };
96
+ todo?: {
97
+ includeOverdueDatesBackward?: number; // The number of days to include overdue dates backward
98
+ skipReplanInCompletedPastTask?: boolean; // Whether to replan incompleted task today
99
+ };
100
+ routine?: {
101
+ skipReplanInCompletedPastRoutine?: boolean; // Whether to replan incompleted routine today
102
+ };
103
+ }
104
+
77
105
  export interface SchedulerPreference {
78
106
  workTime?: SchedulerItemPreference;
79
107
  deepWork?: SchedulerItemPreference;
80
108
  lightWork?: SchedulerItemPreference;
81
- lunch?: SchedulerItemPreference;
82
- dinner?: SchedulerItemPreference;
83
- workout?: SchedulerItemPreference;
84
109
  bufferMinutes?: number;
110
+ allPlan?: AllPlanSchedulerPref;
111
+ lunch?: SchedulerItemPreference; // @deprecated
112
+ dinner?: SchedulerItemPreference; // @deprecated
113
+ workout?: SchedulerItemPreference; // @deprecated
85
114
  }
86
115
 
87
116
  export interface MealPreference {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {