@demind-inc/core 1.10.20 → 1.10.22
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.
- package/dist/models/TodoTasks.d.ts +18 -17
- package/dist/types.d.ts +20 -20
- package/lib/models/TodoTasks.ts +18 -17
- package/lib/types.ts +56 -71
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DocumentReference } from
|
|
2
|
-
import { TodoIntegrationType } from
|
|
3
|
-
import { TaskLabel } from
|
|
4
|
-
import { CircadianPhase } from
|
|
5
|
-
import { AppleRecurrenceRuleFrequency } from
|
|
6
|
-
import { TeamRole } from
|
|
7
|
-
export type WebhookStatus =
|
|
1
|
+
import { DocumentReference } from '@google-cloud/firestore';
|
|
2
|
+
import { TodoIntegrationType } from './TodoIntegrations';
|
|
3
|
+
import { TaskLabel } from './TaskLabels';
|
|
4
|
+
import { CircadianPhase } from '../types';
|
|
5
|
+
import { AppleRecurrenceRuleFrequency } from './Calendar';
|
|
6
|
+
import { TeamRole } from './Team';
|
|
7
|
+
export type WebhookStatus = 'pending' | 'synced' | 'skipped' | 'failed';
|
|
8
8
|
export interface TodoTasksBoardAdditionalParamsGithub {
|
|
9
9
|
projectId: string;
|
|
10
10
|
owner: string;
|
|
@@ -61,7 +61,7 @@ export interface TodoTasksBoardList {
|
|
|
61
61
|
closed?: boolean;
|
|
62
62
|
rawJson?: any;
|
|
63
63
|
}
|
|
64
|
-
export type TodoAppFrom = TodoIntegrationType |
|
|
64
|
+
export type TodoAppFrom = TodoIntegrationType | 'lifestack';
|
|
65
65
|
export interface DateTimeSet {
|
|
66
66
|
datetime?: string;
|
|
67
67
|
date?: string;
|
|
@@ -76,7 +76,7 @@ export interface TaskRecurring {
|
|
|
76
76
|
timezone?: string;
|
|
77
77
|
recurrenceRule?: string;
|
|
78
78
|
}
|
|
79
|
-
export type TaskPriority =
|
|
79
|
+
export type TaskPriority = 'low' | 'medium' | 'high' | 'none';
|
|
80
80
|
export interface TaskItemAdditionalParamsGithub {
|
|
81
81
|
issueNumber: number;
|
|
82
82
|
repository: string;
|
|
@@ -150,6 +150,7 @@ export interface TaskItem {
|
|
|
150
150
|
priority?: TaskPriority;
|
|
151
151
|
linkedCalendarWebhookStatus?: WebhookStatusSet;
|
|
152
152
|
taskWebhookStatus?: WebhookStatusSet;
|
|
153
|
+
aiNote?: string;
|
|
153
154
|
additionalParams?: {
|
|
154
155
|
github?: TaskItemAdditionalParamsGithub;
|
|
155
156
|
clickup?: TaskItemAdditionalParamsClickUp;
|
|
@@ -158,8 +159,8 @@ export interface TaskItem {
|
|
|
158
159
|
[key: string]: any;
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
|
-
export type TeamTaskSource =
|
|
162
|
-
export type TeamTaskBucket =
|
|
162
|
+
export type TeamTaskSource = 'shared-personal-board' | 'team-board';
|
|
163
|
+
export type TeamTaskBucket = 'overdue' | 'today' | 'upcoming' | 'done';
|
|
163
164
|
export interface TeamTaskMemberSummary {
|
|
164
165
|
userId: string;
|
|
165
166
|
teamMemberId?: string;
|
|
@@ -199,7 +200,7 @@ export interface TeamTaskTeamSummary {
|
|
|
199
200
|
export interface TeamAssignedTaskItem extends TeamTaskItem {
|
|
200
201
|
team: TeamTaskTeamSummary;
|
|
201
202
|
}
|
|
202
|
-
export interface TaskRecurringInstance extends Omit<TaskItem,
|
|
203
|
+
export interface TaskRecurringInstance extends Omit<TaskItem, 'subTasks' | 'isRecurringChild' | 'parentTaskId'> {
|
|
203
204
|
/** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
|
|
204
205
|
taskId: string;
|
|
205
206
|
parentTaskId: string;
|
|
@@ -212,9 +213,9 @@ export interface TaskCategorySet {
|
|
|
212
213
|
}
|
|
213
214
|
export interface TaskItemDuration {
|
|
214
215
|
amount: number;
|
|
215
|
-
unit:
|
|
216
|
+
unit: 'day' | 'minute';
|
|
216
217
|
}
|
|
217
|
-
export type SuggestedTaskItem = Pick<TaskItem,
|
|
218
|
+
export type SuggestedTaskItem = Pick<TaskItem, 'taskId' | 'name' | 'duration' | 'labels' | 'boardId' | 'appFrom'> & {
|
|
218
219
|
energyAlignmentScore: number;
|
|
219
220
|
reasoning: string;
|
|
220
221
|
suggestedStartTime: string;
|
|
@@ -223,7 +224,7 @@ export type SuggestedTaskItem = Pick<TaskItem, "taskId" | "name" | "duration" |
|
|
|
223
224
|
suggestedEndDayOffset?: number;
|
|
224
225
|
priority?: string;
|
|
225
226
|
};
|
|
226
|
-
export type NativeAppleRemindersSource =
|
|
227
|
+
export type NativeAppleRemindersSource = 'Local' | 'iCloud';
|
|
227
228
|
export type NativeAppleRemindersList = {
|
|
228
229
|
id: string;
|
|
229
230
|
color: string;
|
|
@@ -239,8 +240,8 @@ export type NativeAppleRemindersListArray = NativeAppleRemindersList[];
|
|
|
239
240
|
*/
|
|
240
241
|
export type ISODateString = string;
|
|
241
242
|
export type TimeZoneId = string;
|
|
242
|
-
export type Weekday =
|
|
243
|
-
export type Proximity =
|
|
243
|
+
export type Weekday = 'SU' | 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA';
|
|
244
|
+
export type Proximity = 'enter' | 'leave' | 'none';
|
|
244
245
|
export type Priority = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
245
246
|
/** Calendar container metadata for the reminder. */
|
|
246
247
|
export interface ReminderCalendar {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, RoutineActivity, NapDetail, SleepDetail, TaskItem, TaskPriority, TodoAppFrom, PredictedMealDetail } from
|
|
2
|
-
export type SupportedTerraProvidersType =
|
|
3
|
-
export type SupportedTerraSDKType =
|
|
4
|
-
export type CircadianPhase =
|
|
5
|
-
export type PeaksDipsPhase =
|
|
6
|
-
export type TimePhase =
|
|
1
|
+
import { CalendarEvent, CalendarRoutineFrom, CalendarTaskFrom, EMASatisfaction, EnergyFeedbackType, EventCategorySet, MealType, MetricActivity, MetricHRValueSet, MetricMealDetail, MetricMealSummary, MetricStressValueSet, PhaseStartEndSet, RichContext, RoutineActivity, NapDetail, SleepDetail, TaskItem, TaskPriority, TodoAppFrom, PredictedMealDetail } from './models';
|
|
2
|
+
export type SupportedTerraProvidersType = 'FITBIT' | 'OURA' | 'GARMIN' | 'WHOOP' | 'ULTRAHUMAN' | 'STRAVA' | 'MYFITNESSPAL';
|
|
3
|
+
export type SupportedTerraSDKType = 'APPLE' | 'GOOGLE_FIT' | 'SAMSUNG_HEALTH' | 'FREESTYLE_LIBRE' | 'HEALTH_CONNECT';
|
|
4
|
+
export type CircadianPhase = 'default' | 'wakeup_low' | 'wakeup_normal' | 'morning_high' | 'morning_normal' | 'morning_low' | 'evening_high' | 'evening_low' | 'evening_normal';
|
|
5
|
+
export type PeaksDipsPhase = 'morning_high' | 'morning_low' | 'evening_high' | 'evening_low';
|
|
6
|
+
export type TimePhase = 'morning' | 'midday' | 'evening';
|
|
7
7
|
export interface CircadianMetric {
|
|
8
8
|
timestamp: string;
|
|
9
9
|
value: number;
|
|
@@ -16,8 +16,8 @@ export interface EventEnergySet {
|
|
|
16
16
|
endTimestamp: string;
|
|
17
17
|
energy: EnergyFeedbackType;
|
|
18
18
|
}
|
|
19
|
-
export type Chronotype =
|
|
20
|
-
export type ScheduledActionType =
|
|
19
|
+
export type Chronotype = 'morning' | 'night' | 'hybrid';
|
|
20
|
+
export type ScheduledActionType = 'add' | 'remove' | 'update';
|
|
21
21
|
export interface HeatmapDataType {
|
|
22
22
|
x: string;
|
|
23
23
|
y: string;
|
|
@@ -25,7 +25,7 @@ export interface HeatmapDataType {
|
|
|
25
25
|
phase?: CircadianPhase;
|
|
26
26
|
diff?: number;
|
|
27
27
|
}
|
|
28
|
-
export type ScheduledActionEventFrom =
|
|
28
|
+
export type ScheduledActionEventFrom = 'existing_calendar' | 'todo' | 'activity' | 'meal' | 'sleep' | 'routine' | 'workout';
|
|
29
29
|
export interface ScheduledAction {
|
|
30
30
|
name: string;
|
|
31
31
|
id?: string;
|
|
@@ -53,7 +53,7 @@ export interface ScheduledActionOptions {
|
|
|
53
53
|
export interface SleepDetailsByDate {
|
|
54
54
|
date: string;
|
|
55
55
|
details: SleepDetail;
|
|
56
|
-
predictedSleep?: Pick<SleepDetail,
|
|
56
|
+
predictedSleep?: Pick<SleepDetail, 'awakeTime' | 'sleepTime'>;
|
|
57
57
|
nap?: NapItem[];
|
|
58
58
|
}
|
|
59
59
|
export interface NapItem {
|
|
@@ -100,8 +100,8 @@ export interface PhaseEvents {
|
|
|
100
100
|
timezone?: string;
|
|
101
101
|
events: CalendarEvent[];
|
|
102
102
|
}
|
|
103
|
-
export type FluctuateEnergyType =
|
|
104
|
-
export type FluctuateReasonType =
|
|
103
|
+
export type FluctuateEnergyType = 'peakEnergy' | 'spotEnergy';
|
|
104
|
+
export type FluctuateReasonType = 'sleep' | 'phaseEma' | 'event';
|
|
105
105
|
export interface EnergyFluctuationItem {
|
|
106
106
|
reason: FluctuateReasonType;
|
|
107
107
|
eventId?: string;
|
|
@@ -120,15 +120,15 @@ export interface EnergyFluctuationItem {
|
|
|
120
120
|
eventCategory?: EventCategorySet;
|
|
121
121
|
energyFeedback?: EnergyFeedbackType;
|
|
122
122
|
}
|
|
123
|
-
export * from
|
|
124
|
-
export type TimeboxSessionType =
|
|
125
|
-
export type TaskItemForSchedule = Pick<TaskItem,
|
|
123
|
+
export * from './featureFlags.types';
|
|
124
|
+
export type TimeboxSessionType = 'deepWork' | 'lightWork';
|
|
125
|
+
export type TaskItemForSchedule = Pick<TaskItem, 'taskId' | 'name' | 'duration' | 'sortIndex' | 'labels' | 'addedToCalendar' | 'boardId' | 'appFrom' | 'dueDateTime' | 'priority' | 'aiNote'> & {
|
|
126
126
|
selected?: boolean;
|
|
127
127
|
};
|
|
128
|
-
export type ScheduleLogicElement =
|
|
129
|
-
export type WearableSourceType =
|
|
130
|
-
export type RecommendationActionType =
|
|
131
|
-
export type CoreActionType =
|
|
128
|
+
export type ScheduleLogicElement = 'timebox' | 'routine' | 'task';
|
|
129
|
+
export type WearableSourceType = 'ALL' | 'SLEEP' | 'ACTIVITY' | 'MEAL' | 'STRESS';
|
|
130
|
+
export type RecommendationActionType = 'core_action' | 'energy_boost' | 'task' | 'routine';
|
|
131
|
+
export type CoreActionType = 'aiScheduler' | 'syncSleep' | 'dailyPreview' | 'dailyReflection';
|
|
132
132
|
export interface RecommendationAction {
|
|
133
133
|
id: string;
|
|
134
134
|
name: string;
|
|
@@ -153,7 +153,7 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
153
153
|
before?: Partial<T>;
|
|
154
154
|
after?: Partial<T>;
|
|
155
155
|
}
|
|
156
|
-
export type ChatAdjustmentMealContent = Omit<PredictedMealDetail,
|
|
156
|
+
export type ChatAdjustmentMealContent = Omit<PredictedMealDetail, 'startTime' | 'endTime' | 'description'>;
|
|
157
157
|
export interface ChatAdjustmentMeal {
|
|
158
158
|
mealType: MealType;
|
|
159
159
|
startTime: string;
|
package/lib/models/TodoTasks.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DocumentReference } from
|
|
2
|
-
import { TodoIntegrationType } from
|
|
3
|
-
import { TaskLabel } from
|
|
4
|
-
import { CircadianPhase } from
|
|
5
|
-
import { AppleRecurrenceRuleFrequency } from
|
|
6
|
-
import { TeamRole } from
|
|
1
|
+
import { DocumentReference } from '@google-cloud/firestore';
|
|
2
|
+
import { TodoIntegrationType } from './TodoIntegrations';
|
|
3
|
+
import { TaskLabel } from './TaskLabels';
|
|
4
|
+
import { CircadianPhase } from '../types';
|
|
5
|
+
import { AppleRecurrenceRuleFrequency } from './Calendar';
|
|
6
|
+
import { TeamRole } from './Team';
|
|
7
7
|
|
|
8
|
-
export type WebhookStatus =
|
|
8
|
+
export type WebhookStatus = 'pending' | 'synced' | 'skipped' | 'failed';
|
|
9
9
|
|
|
10
10
|
export interface TodoTasksBoardAdditionalParamsGithub {
|
|
11
11
|
projectId: string;
|
|
@@ -69,7 +69,7 @@ export interface TodoTasksBoardList {
|
|
|
69
69
|
rawJson?: any;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export type TodoAppFrom = TodoIntegrationType |
|
|
72
|
+
export type TodoAppFrom = TodoIntegrationType | 'lifestack';
|
|
73
73
|
|
|
74
74
|
export interface DateTimeSet {
|
|
75
75
|
datetime?: string;
|
|
@@ -87,7 +87,7 @@ export interface TaskRecurring {
|
|
|
87
87
|
recurrenceRule?: string;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export type TaskPriority =
|
|
90
|
+
export type TaskPriority = 'low' | 'medium' | 'high' | 'none';
|
|
91
91
|
export interface TaskItemAdditionalParamsGithub {
|
|
92
92
|
issueNumber: number;
|
|
93
93
|
repository: string;
|
|
@@ -167,6 +167,7 @@ export interface TaskItem {
|
|
|
167
167
|
priority?: TaskPriority;
|
|
168
168
|
linkedCalendarWebhookStatus?: WebhookStatusSet;
|
|
169
169
|
taskWebhookStatus?: WebhookStatusSet;
|
|
170
|
+
aiNote?: string;
|
|
170
171
|
additionalParams?: {
|
|
171
172
|
github?: TaskItemAdditionalParamsGithub;
|
|
172
173
|
clickup?: TaskItemAdditionalParamsClickUp;
|
|
@@ -176,9 +177,9 @@ export interface TaskItem {
|
|
|
176
177
|
};
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
export type TeamTaskSource =
|
|
180
|
+
export type TeamTaskSource = 'shared-personal-board' | 'team-board';
|
|
180
181
|
|
|
181
|
-
export type TeamTaskBucket =
|
|
182
|
+
export type TeamTaskBucket = 'overdue' | 'today' | 'upcoming' | 'done';
|
|
182
183
|
|
|
183
184
|
export interface TeamTaskMemberSummary {
|
|
184
185
|
userId: string;
|
|
@@ -227,7 +228,7 @@ export interface TeamAssignedTaskItem extends TeamTaskItem {
|
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
export interface TaskRecurringInstance
|
|
230
|
-
extends Omit<TaskItem,
|
|
231
|
+
extends Omit<TaskItem, 'subTasks' | 'isRecurringChild' | 'parentTaskId'> {
|
|
231
232
|
/** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
|
|
232
233
|
taskId: string;
|
|
233
234
|
parentTaskId: string;
|
|
@@ -242,12 +243,12 @@ export interface TaskCategorySet {
|
|
|
242
243
|
|
|
243
244
|
export interface TaskItemDuration {
|
|
244
245
|
amount: number;
|
|
245
|
-
unit:
|
|
246
|
+
unit: 'day' | 'minute';
|
|
246
247
|
}
|
|
247
248
|
|
|
248
249
|
export type SuggestedTaskItem = Pick<
|
|
249
250
|
TaskItem,
|
|
250
|
-
|
|
251
|
+
'taskId' | 'name' | 'duration' | 'labels' | 'boardId' | 'appFrom'
|
|
251
252
|
> & {
|
|
252
253
|
energyAlignmentScore: number;
|
|
253
254
|
reasoning: string;
|
|
@@ -260,7 +261,7 @@ export type SuggestedTaskItem = Pick<
|
|
|
260
261
|
|
|
261
262
|
/////////////// Apple Reminders ///////////////
|
|
262
263
|
|
|
263
|
-
export type NativeAppleRemindersSource =
|
|
264
|
+
export type NativeAppleRemindersSource = 'Local' | 'iCloud';
|
|
264
265
|
|
|
265
266
|
export type NativeAppleRemindersList = {
|
|
266
267
|
id: string;
|
|
@@ -280,8 +281,8 @@ export type NativeAppleRemindersListArray = NativeAppleRemindersList[];
|
|
|
280
281
|
|
|
281
282
|
export type ISODateString = string;
|
|
282
283
|
export type TimeZoneId = string;
|
|
283
|
-
export type Weekday =
|
|
284
|
-
export type Proximity =
|
|
284
|
+
export type Weekday = 'SU' | 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA';
|
|
285
|
+
export type Proximity = 'enter' | 'leave' | 'none';
|
|
285
286
|
export type Priority = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
286
287
|
|
|
287
288
|
/** Calendar container metadata for the reminder. */
|
package/lib/types.ts
CHANGED
|
@@ -21,41 +21,38 @@ import {
|
|
|
21
21
|
TaskPriority,
|
|
22
22
|
TodoAppFrom,
|
|
23
23
|
PredictedMealDetail,
|
|
24
|
-
} from
|
|
24
|
+
} from './models';
|
|
25
25
|
|
|
26
26
|
export type SupportedTerraProvidersType =
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
27
|
+
| 'FITBIT'
|
|
28
|
+
| 'OURA'
|
|
29
|
+
| 'GARMIN'
|
|
30
|
+
| 'WHOOP'
|
|
31
|
+
| 'ULTRAHUMAN'
|
|
32
|
+
| 'STRAVA'
|
|
33
|
+
| 'MYFITNESSPAL';
|
|
34
34
|
|
|
35
35
|
export type SupportedTerraSDKType =
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
36
|
+
| 'APPLE'
|
|
37
|
+
| 'GOOGLE_FIT'
|
|
38
|
+
| 'SAMSUNG_HEALTH'
|
|
39
|
+
| 'FREESTYLE_LIBRE'
|
|
40
|
+
| 'HEALTH_CONNECT';
|
|
40
41
|
|
|
41
42
|
export type CircadianPhase =
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
52
|
-
export type PeaksDipsPhase =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
| "evening_high"
|
|
56
|
-
| "evening_low";
|
|
57
|
-
|
|
58
|
-
export type TimePhase = "morning" | "midday" | "evening";
|
|
43
|
+
| 'default'
|
|
44
|
+
| 'wakeup_low'
|
|
45
|
+
| 'wakeup_normal'
|
|
46
|
+
| 'morning_high'
|
|
47
|
+
| 'morning_normal'
|
|
48
|
+
| 'morning_low'
|
|
49
|
+
| 'evening_high'
|
|
50
|
+
| 'evening_low'
|
|
51
|
+
| 'evening_normal';
|
|
52
|
+
|
|
53
|
+
export type PeaksDipsPhase = 'morning_high' | 'morning_low' | 'evening_high' | 'evening_low';
|
|
54
|
+
|
|
55
|
+
export type TimePhase = 'morning' | 'midday' | 'evening';
|
|
59
56
|
|
|
60
57
|
export interface CircadianMetric {
|
|
61
58
|
timestamp: string;
|
|
@@ -71,9 +68,9 @@ export interface EventEnergySet {
|
|
|
71
68
|
energy: EnergyFeedbackType;
|
|
72
69
|
}
|
|
73
70
|
|
|
74
|
-
export type Chronotype =
|
|
71
|
+
export type Chronotype = 'morning' | 'night' | 'hybrid';
|
|
75
72
|
|
|
76
|
-
export type ScheduledActionType =
|
|
73
|
+
export type ScheduledActionType = 'add' | 'remove' | 'update';
|
|
77
74
|
|
|
78
75
|
export interface HeatmapDataType {
|
|
79
76
|
x: string;
|
|
@@ -83,13 +80,13 @@ export interface HeatmapDataType {
|
|
|
83
80
|
diff?: number;
|
|
84
81
|
}
|
|
85
82
|
export type ScheduledActionEventFrom =
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
83
|
+
| 'existing_calendar'
|
|
84
|
+
| 'todo'
|
|
85
|
+
| 'activity'
|
|
86
|
+
| 'meal'
|
|
87
|
+
| 'sleep'
|
|
88
|
+
| 'routine'
|
|
89
|
+
| 'workout';
|
|
93
90
|
|
|
94
91
|
export interface ScheduledAction {
|
|
95
92
|
name: string;
|
|
@@ -120,7 +117,7 @@ export interface ScheduledActionOptions {
|
|
|
120
117
|
export interface SleepDetailsByDate {
|
|
121
118
|
date: string;
|
|
122
119
|
details: SleepDetail;
|
|
123
|
-
predictedSleep?: Pick<SleepDetail,
|
|
120
|
+
predictedSleep?: Pick<SleepDetail, 'awakeTime' | 'sleepTime'>;
|
|
124
121
|
nap?: NapItem[];
|
|
125
122
|
}
|
|
126
123
|
|
|
@@ -178,8 +175,8 @@ export interface PhaseEvents {
|
|
|
178
175
|
events: CalendarEvent[];
|
|
179
176
|
}
|
|
180
177
|
|
|
181
|
-
export type FluctuateEnergyType =
|
|
182
|
-
export type FluctuateReasonType =
|
|
178
|
+
export type FluctuateEnergyType = 'peakEnergy' | 'spotEnergy';
|
|
179
|
+
export type FluctuateReasonType = 'sleep' | 'phaseEma' | 'event';
|
|
183
180
|
|
|
184
181
|
export interface EnergyFluctuationItem {
|
|
185
182
|
reason: FluctuateReasonType;
|
|
@@ -200,46 +197,34 @@ export interface EnergyFluctuationItem {
|
|
|
200
197
|
energyFeedback?: EnergyFeedbackType;
|
|
201
198
|
}
|
|
202
199
|
|
|
203
|
-
export * from
|
|
200
|
+
export * from './featureFlags.types';
|
|
204
201
|
|
|
205
|
-
export type TimeboxSessionType =
|
|
202
|
+
export type TimeboxSessionType = 'deepWork' | 'lightWork';
|
|
206
203
|
|
|
207
204
|
export type TaskItemForSchedule = Pick<
|
|
208
205
|
TaskItem,
|
|
209
|
-
|
|
|
210
|
-
|
|
|
211
|
-
|
|
|
212
|
-
|
|
|
213
|
-
|
|
|
214
|
-
|
|
|
215
|
-
|
|
|
216
|
-
|
|
|
217
|
-
|
|
|
218
|
-
|
|
|
206
|
+
| 'taskId'
|
|
207
|
+
| 'name'
|
|
208
|
+
| 'duration'
|
|
209
|
+
| 'sortIndex'
|
|
210
|
+
| 'labels'
|
|
211
|
+
| 'addedToCalendar'
|
|
212
|
+
| 'boardId'
|
|
213
|
+
| 'appFrom'
|
|
214
|
+
| 'dueDateTime'
|
|
215
|
+
| 'priority'
|
|
216
|
+
| 'aiNote'
|
|
219
217
|
> & {
|
|
220
218
|
selected?: boolean;
|
|
221
219
|
};
|
|
222
220
|
|
|
223
|
-
export type ScheduleLogicElement =
|
|
221
|
+
export type ScheduleLogicElement = 'timebox' | 'routine' | 'task';
|
|
224
222
|
|
|
225
|
-
export type WearableSourceType =
|
|
226
|
-
| "ALL"
|
|
227
|
-
| "SLEEP"
|
|
228
|
-
| "ACTIVITY"
|
|
229
|
-
| "MEAL"
|
|
230
|
-
| "STRESS";
|
|
223
|
+
export type WearableSourceType = 'ALL' | 'SLEEP' | 'ACTIVITY' | 'MEAL' | 'STRESS';
|
|
231
224
|
|
|
232
|
-
export type RecommendationActionType =
|
|
233
|
-
| "core_action"
|
|
234
|
-
| "energy_boost"
|
|
235
|
-
| "task"
|
|
236
|
-
| "routine";
|
|
225
|
+
export type RecommendationActionType = 'core_action' | 'energy_boost' | 'task' | 'routine';
|
|
237
226
|
|
|
238
|
-
export type CoreActionType =
|
|
239
|
-
| "aiScheduler"
|
|
240
|
-
| "syncSleep"
|
|
241
|
-
| "dailyPreview"
|
|
242
|
-
| "dailyReflection";
|
|
227
|
+
export type CoreActionType = 'aiScheduler' | 'syncSleep' | 'dailyPreview' | 'dailyReflection';
|
|
243
228
|
|
|
244
229
|
export interface RecommendationAction {
|
|
245
230
|
id: string;
|
|
@@ -270,7 +255,7 @@ export interface ChatAdjustmentChangeWrapper<T> {
|
|
|
270
255
|
|
|
271
256
|
export type ChatAdjustmentMealContent = Omit<
|
|
272
257
|
PredictedMealDetail,
|
|
273
|
-
|
|
258
|
+
'startTime' | 'endTime' | 'description'
|
|
274
259
|
>;
|
|
275
260
|
|
|
276
261
|
export interface ChatAdjustmentMeal {
|