@demind-inc/core 1.10.19 → 1.10.20

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,6 +1,6 @@
1
- import { SupportedLanguage } from "../languages";
2
- import { CalendarEventShowAs, CalendarType } from "./Calendar";
3
- import { RoutineActivityRecurring } from "./Routine";
1
+ import { SupportedLanguage } from '../languages';
2
+ import { CalendarEventShowAs, CalendarType } from './Calendar';
3
+ import { RoutineActivityRecurring } from './Routine';
4
4
  export interface Preferences {
5
5
  preferenceId: string;
6
6
  energy?: EnergyPreference;
@@ -13,7 +13,7 @@ export interface Preferences {
13
13
  task?: TaskPreference;
14
14
  location?: LocationPreference;
15
15
  }
16
- export type AddressLabel = "home" | "work" | string;
16
+ export type AddressLabel = 'home' | 'work' | string;
17
17
  export interface LocationPreference {
18
18
  enabled?: boolean;
19
19
  addresses?: Record<AddressLabel, AddressPreference>;
@@ -62,9 +62,9 @@ export interface CalendarPreference {
62
62
  exercise?: boolean;
63
63
  };
64
64
  }
65
- export type SchedulerItemPrefType = keyof Pick<SchedulerPreference, "workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout">;
66
- export type AllPlanScheduleType = "meal" | "sleep" | "workout" | "todo" | "routine";
67
- export type AllPlanAutoAcceptScheduleType = "meal" | "sleep" | "workout" | string;
65
+ export type SchedulerItemPrefType = keyof Pick<SchedulerPreference, 'workTime' | 'deepWork' | 'lightWork' | 'lunch' | 'dinner' | 'workout'>;
66
+ export type AllPlanScheduleType = 'meal' | 'sleep' | 'workout' | 'todo' | 'routine';
67
+ export type AllPlanAutoAcceptScheduleType = 'meal' | 'sleep' | 'workout' | string;
68
68
  export interface AllPlanSchedulerPref {
69
69
  autoAcceptTypes?: {
70
70
  [key in AllPlanAutoAcceptScheduleType]?: boolean;
@@ -85,11 +85,16 @@ export interface SchedulerPreference {
85
85
  deepWork?: SchedulerItemPreference;
86
86
  lightWork?: SchedulerItemPreference;
87
87
  bufferMinutes?: number;
88
+ pomodoro?: PomodoroPreference;
88
89
  allPlan?: AllPlanSchedulerPref;
89
90
  lunch?: SchedulerItemPreference;
90
91
  dinner?: SchedulerItemPreference;
91
92
  workout?: SchedulerItemPreference;
92
93
  }
94
+ export interface PomodoroPreference {
95
+ pomodoroDurationMin?: number;
96
+ breakDurationMin?: number;
97
+ }
93
98
  export interface MealPreference {
94
99
  breakfast?: MealPreferenceItem;
95
100
  lunch?: MealPreferenceItem;
@@ -128,9 +133,9 @@ export interface EventCategoryEnergyPreference {
128
133
  categoryName: string;
129
134
  level: EventCategoryEnergyPreferenceLevel;
130
135
  }
131
- export type EventCategoryEnergyPreferenceLevel = "more_energized" | "less_energized" | "about_same" | "not_sure";
132
- export type TimeFormatType = "12h" | "24h";
133
- export type ThemeMode = "light" | "dark" | "auto";
136
+ export type EventCategoryEnergyPreferenceLevel = 'more_energized' | 'less_energized' | 'about_same' | 'not_sure';
137
+ export type TimeFormatType = '12h' | '24h';
138
+ export type ThemeMode = 'light' | 'dark' | 'auto';
134
139
  export interface ExportToCalendars {
135
140
  enabled: boolean;
136
141
  targetUserId: string;
@@ -1,7 +1,7 @@
1
- import { TimePhase } from "../types";
2
- import { SupportedLanguage } from "../languages";
3
- import { CalendarEventShowAs, CalendarType } from "./Calendar";
4
- import { RoutineActivityRecurring } from "./Routine";
1
+ import { TimePhase } from '../types';
2
+ import { SupportedLanguage } from '../languages';
3
+ import { CalendarEventShowAs, CalendarType } from './Calendar';
4
+ import { RoutineActivityRecurring } from './Routine';
5
5
 
6
6
  export interface Preferences {
7
7
  preferenceId: string;
@@ -15,7 +15,7 @@ export interface Preferences {
15
15
  task?: TaskPreference;
16
16
  location?: LocationPreference;
17
17
  }
18
- export type AddressLabel = "home" | "work" | string;
18
+ export type AddressLabel = 'home' | 'work' | string;
19
19
 
20
20
  export interface LocationPreference {
21
21
  enabled?: boolean;
@@ -73,21 +73,12 @@ export interface CalendarPreference {
73
73
 
74
74
  export type SchedulerItemPrefType = keyof Pick<
75
75
  SchedulerPreference,
76
- "workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout"
76
+ 'workTime' | 'deepWork' | 'lightWork' | 'lunch' | 'dinner' | 'workout'
77
77
  >;
78
78
 
79
- export type AllPlanScheduleType =
80
- | "meal"
81
- | "sleep"
82
- | "workout"
83
- | "todo"
84
- | "routine";
85
-
86
- export type AllPlanAutoAcceptScheduleType =
87
- | "meal"
88
- | "sleep"
89
- | "workout"
90
- | string;
79
+ export type AllPlanScheduleType = 'meal' | 'sleep' | 'workout' | 'todo' | 'routine';
80
+
81
+ export type AllPlanAutoAcceptScheduleType = 'meal' | 'sleep' | 'workout' | string;
91
82
  export interface AllPlanSchedulerPref {
92
83
  autoAcceptTypes?: {
93
84
  [key in AllPlanAutoAcceptScheduleType]?: boolean;
@@ -109,12 +100,17 @@ export interface SchedulerPreference {
109
100
  deepWork?: SchedulerItemPreference;
110
101
  lightWork?: SchedulerItemPreference;
111
102
  bufferMinutes?: number;
103
+ pomodoro?: PomodoroPreference;
112
104
  allPlan?: AllPlanSchedulerPref;
113
105
  lunch?: SchedulerItemPreference; // @deprecated
114
106
  dinner?: SchedulerItemPreference; // @deprecated
115
107
  workout?: SchedulerItemPreference; // @deprecated
116
108
  }
117
109
 
110
+ export interface PomodoroPreference {
111
+ pomodoroDurationMin?: number;
112
+ breakDurationMin?: number;
113
+ }
118
114
  export interface MealPreference {
119
115
  breakfast?: MealPreferenceItem;
120
116
  lunch?: MealPreferenceItem;
@@ -160,13 +156,13 @@ export interface EventCategoryEnergyPreference {
160
156
  }
161
157
 
162
158
  export type EventCategoryEnergyPreferenceLevel =
163
- | "more_energized"
164
- | "less_energized"
165
- | "about_same"
166
- | "not_sure";
159
+ | 'more_energized'
160
+ | 'less_energized'
161
+ | 'about_same'
162
+ | 'not_sure';
167
163
 
168
- export type TimeFormatType = "12h" | "24h";
169
- export type ThemeMode = "light" | "dark" | "auto";
164
+ export type TimeFormatType = '12h' | '24h';
165
+ export type ThemeMode = 'light' | 'dark' | 'auto';
170
166
 
171
167
  export interface ExportToCalendars {
172
168
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.10.19",
3
+ "version": "1.10.20",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {