@demind-inc/core 1.4.84 → 1.5.0
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/types.d.ts +11 -0
- package/lib/types.ts +17 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -106,3 +106,14 @@ export type TimeboxSessionType = "deepWork" | "lightWork";
|
|
|
106
106
|
export type TaskItemForSchedule = Pick<TaskItem, "taskId" | "name" | "duration" | "sortIndex" | "labels" | "addedToCalendar" | "boardId" | "appFrom" | "dueDateTime">;
|
|
107
107
|
export type ScheduleLogicElement = "timebox" | "routine" | "task";
|
|
108
108
|
export type WearableSourceType = "ALL" | "SLEEP" | "ACTIVITY" | "MEAL" | "STRESS";
|
|
109
|
+
export type RecommendationActionType = "core_action" | "energy_boost" | "task" | "routine";
|
|
110
|
+
export interface RecommendationAction {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
type: RecommendationActionType;
|
|
114
|
+
description?: string;
|
|
115
|
+
phase?: CircadianPhase;
|
|
116
|
+
durationMinutes?: number;
|
|
117
|
+
icon?: string;
|
|
118
|
+
isScheduled?: boolean;
|
|
119
|
+
}
|
package/lib/types.ts
CHANGED
|
@@ -181,3 +181,20 @@ export type WearableSourceType =
|
|
|
181
181
|
| "ACTIVITY"
|
|
182
182
|
| "MEAL"
|
|
183
183
|
| "STRESS";
|
|
184
|
+
|
|
185
|
+
export type RecommendationActionType =
|
|
186
|
+
| "core_action"
|
|
187
|
+
| "energy_boost"
|
|
188
|
+
| "task"
|
|
189
|
+
| "routine";
|
|
190
|
+
|
|
191
|
+
export interface RecommendationAction {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
type: RecommendationActionType;
|
|
195
|
+
description?: string;
|
|
196
|
+
phase?: CircadianPhase;
|
|
197
|
+
durationMinutes?: number;
|
|
198
|
+
icon?: string;
|
|
199
|
+
isScheduled?: boolean;
|
|
200
|
+
}
|