@demind-inc/core 1.8.5 → 1.9.1
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/constants.js +2 -0
- package/dist/models/RichContext.d.ts +40 -1
- package/dist/models/TodoIntegrations.d.ts +1 -1
- package/dist/models/TodoTasks.d.ts +12 -0
- package/dist/models/Token.d.ts +1 -0
- package/lib/constants.ts +2 -0
- package/lib/models/RichContext.ts +53 -0
- package/lib/models/TodoIntegrations.ts +1 -0
- package/lib/models/TodoTasks.ts +14 -0
- package/lib/models/Token.ts +1 -0
- package/package.json +1 -1
package/dist/constants.js
CHANGED
|
@@ -69,6 +69,7 @@ exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = [
|
|
|
69
69
|
"trello",
|
|
70
70
|
"todoist",
|
|
71
71
|
"ticktick",
|
|
72
|
+
"clickup",
|
|
72
73
|
"github",
|
|
73
74
|
"notion",
|
|
74
75
|
];
|
|
@@ -76,6 +77,7 @@ exports.ALL_TODO_INTEGRATIONS_TYPE = [
|
|
|
76
77
|
"trello",
|
|
77
78
|
"todoist",
|
|
78
79
|
"ticktick",
|
|
80
|
+
"clickup",
|
|
79
81
|
"github",
|
|
80
82
|
"notion",
|
|
81
83
|
"apple-reminders",
|
|
@@ -141,6 +141,45 @@ export interface MealSuggestionPayload {
|
|
|
141
141
|
export type ContentType = "workout_plan" | "checklist" | "find_location" | "meal_suggestion" | "transit_route" | "journal_prompts" | "audio_player" | "energy_summary" | "sleep_summary" | "metric_bar" | "meal_plan_week" | (string & {});
|
|
142
142
|
export type WorkoutType = "gym" | "running" | "walking" | "cycling" | "swimming" | "rowing" | "hiking" | "yoga" | "other";
|
|
143
143
|
export type DifficultyLevel = "beginner" | "intermediate" | "advanced";
|
|
144
|
+
export interface GymExercise {
|
|
145
|
+
name?: string;
|
|
146
|
+
sets?: number;
|
|
147
|
+
reps?: number;
|
|
148
|
+
duration_sec?: number;
|
|
149
|
+
rest_sec?: number;
|
|
150
|
+
}
|
|
151
|
+
export interface NoteExerciseItem {
|
|
152
|
+
type: "note";
|
|
153
|
+
text: string;
|
|
154
|
+
}
|
|
155
|
+
export interface MetaExerciseItem {
|
|
156
|
+
type: "meta";
|
|
157
|
+
estimated_calories: number;
|
|
158
|
+
}
|
|
159
|
+
export interface CardioSegment {
|
|
160
|
+
type?: string;
|
|
161
|
+
duration_min?: number;
|
|
162
|
+
duration_sec?: number;
|
|
163
|
+
distance_km?: number;
|
|
164
|
+
pace?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface CardioPlanItem {
|
|
167
|
+
type: "cardio_plan";
|
|
168
|
+
description?: string;
|
|
169
|
+
segments?: CardioSegment[];
|
|
170
|
+
rounds?: number;
|
|
171
|
+
estimated_calories?: number;
|
|
172
|
+
duration_min?: number;
|
|
173
|
+
notes?: string;
|
|
174
|
+
}
|
|
175
|
+
export type ExerciseItem = GymExercise | NoteExerciseItem | MetaExerciseItem | CardioPlanItem;
|
|
176
|
+
export interface WorkoutPlanPayload {
|
|
177
|
+
plan_title?: string;
|
|
178
|
+
workout_type?: string;
|
|
179
|
+
difficulty?: string;
|
|
180
|
+
duration_min?: number;
|
|
181
|
+
exercises?: ExerciseItem[];
|
|
182
|
+
}
|
|
144
183
|
export type ActivityType = "running" | "walking" | "cycling" | "swimming" | "rowing" | "hiking" | "gym" | "yoga" | "other";
|
|
145
184
|
export interface HeartRateZoneData {
|
|
146
185
|
zone?: string | null;
|
|
@@ -191,7 +230,7 @@ export interface WorkoutActivityData {
|
|
|
191
230
|
heart_rate_data?: HeartRateData | null;
|
|
192
231
|
active_durations_data?: ActiveDurationsData | null;
|
|
193
232
|
}
|
|
194
|
-
export type ContentPayload = WorkoutActivityData | {
|
|
233
|
+
export type ContentPayload = WorkoutPlanPayload | WorkoutActivityData | {
|
|
195
234
|
label: string | null;
|
|
196
235
|
items: {
|
|
197
236
|
text: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentReference } from "@google-cloud/firestore";
|
|
2
|
-
export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "notion" | "github" | "apple-reminders";
|
|
2
|
+
export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "clickup" | "notion" | "github" | "apple-reminders";
|
|
3
3
|
export interface TodoIntegration {
|
|
4
4
|
todoIntegrationId: string;
|
|
5
5
|
source: TodoIntegrationType;
|
|
@@ -9,10 +9,17 @@ export interface TodoTasksBoardAdditionalParamsGithub {
|
|
|
9
9
|
owner: string;
|
|
10
10
|
repositories: string[];
|
|
11
11
|
}
|
|
12
|
+
export interface TodoTasksBoardAdditionalParamsClickUp {
|
|
13
|
+
listId: string;
|
|
14
|
+
spaceId: string;
|
|
15
|
+
teamId: string;
|
|
16
|
+
folderId?: string;
|
|
17
|
+
}
|
|
12
18
|
export interface TodoTasksBoardWebhook {
|
|
13
19
|
resourceId: string;
|
|
14
20
|
active: boolean;
|
|
15
21
|
url?: string;
|
|
22
|
+
secret?: string;
|
|
16
23
|
rawJson?: any;
|
|
17
24
|
}
|
|
18
25
|
export interface TodoTasksBoardAdditionalParamsTodoist {
|
|
@@ -35,6 +42,7 @@ export interface TodoTasksBoard {
|
|
|
35
42
|
userPersona?: string;
|
|
36
43
|
additionalParams?: {
|
|
37
44
|
github?: TodoTasksBoardAdditionalParamsGithub;
|
|
45
|
+
clickup?: TodoTasksBoardAdditionalParamsClickUp;
|
|
38
46
|
todoist?: TodoTasksBoardAdditionalParamsTodoist;
|
|
39
47
|
[key: string]: any;
|
|
40
48
|
};
|
|
@@ -79,6 +87,9 @@ export interface TaskItemAdditionalParamsGithub {
|
|
|
79
87
|
total: number;
|
|
80
88
|
};
|
|
81
89
|
}
|
|
90
|
+
export interface TaskItemAdditionalParamsClickUp {
|
|
91
|
+
clickupId: string;
|
|
92
|
+
}
|
|
82
93
|
export interface TaskItemAdditionalParamsTodoist {
|
|
83
94
|
v2Id: string;
|
|
84
95
|
}
|
|
@@ -123,6 +134,7 @@ export interface TaskItem {
|
|
|
123
134
|
taskWebhookStatus?: WebhookStatusSet;
|
|
124
135
|
additionalParams?: {
|
|
125
136
|
github?: TaskItemAdditionalParamsGithub;
|
|
137
|
+
clickup?: TaskItemAdditionalParamsClickUp;
|
|
126
138
|
todoist?: TaskItemAdditionalParamsTodoist;
|
|
127
139
|
[key: string]: any;
|
|
128
140
|
};
|
package/dist/models/Token.d.ts
CHANGED
package/lib/constants.ts
CHANGED
|
@@ -77,6 +77,7 @@ export const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
|
|
|
77
77
|
"trello",
|
|
78
78
|
"todoist",
|
|
79
79
|
"ticktick",
|
|
80
|
+
"clickup",
|
|
80
81
|
"github",
|
|
81
82
|
"notion",
|
|
82
83
|
];
|
|
@@ -84,6 +85,7 @@ export const ALL_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
|
|
|
84
85
|
"trello",
|
|
85
86
|
"todoist",
|
|
86
87
|
"ticktick",
|
|
88
|
+
"clickup",
|
|
87
89
|
"github",
|
|
88
90
|
"notion",
|
|
89
91
|
"apple-reminders",
|
|
@@ -230,6 +230,58 @@ export type WorkoutType =
|
|
|
230
230
|
|
|
231
231
|
export type DifficultyLevel = "beginner" | "intermediate" | "advanced";
|
|
232
232
|
|
|
233
|
+
// ── Workout plan (SSE payload types) ─────────────────────────────────────────
|
|
234
|
+
|
|
235
|
+
export interface GymExercise {
|
|
236
|
+
name?: string;
|
|
237
|
+
sets?: number;
|
|
238
|
+
reps?: number;
|
|
239
|
+
duration_sec?: number;
|
|
240
|
+
rest_sec?: number;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface NoteExerciseItem {
|
|
244
|
+
type: "note";
|
|
245
|
+
text: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface MetaExerciseItem {
|
|
249
|
+
type: "meta";
|
|
250
|
+
estimated_calories: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface CardioSegment {
|
|
254
|
+
type?: string;
|
|
255
|
+
duration_min?: number;
|
|
256
|
+
duration_sec?: number;
|
|
257
|
+
distance_km?: number;
|
|
258
|
+
pace?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface CardioPlanItem {
|
|
262
|
+
type: "cardio_plan";
|
|
263
|
+
description?: string;
|
|
264
|
+
segments?: CardioSegment[];
|
|
265
|
+
rounds?: number;
|
|
266
|
+
estimated_calories?: number;
|
|
267
|
+
duration_min?: number;
|
|
268
|
+
notes?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type ExerciseItem =
|
|
272
|
+
| GymExercise
|
|
273
|
+
| NoteExerciseItem
|
|
274
|
+
| MetaExerciseItem
|
|
275
|
+
| CardioPlanItem;
|
|
276
|
+
|
|
277
|
+
export interface WorkoutPlanPayload {
|
|
278
|
+
plan_title?: string;
|
|
279
|
+
workout_type?: string;
|
|
280
|
+
difficulty?: string;
|
|
281
|
+
duration_min?: number;
|
|
282
|
+
exercises?: ExerciseItem[];
|
|
283
|
+
}
|
|
284
|
+
|
|
233
285
|
export type ActivityType =
|
|
234
286
|
| "running"
|
|
235
287
|
| "walking"
|
|
@@ -300,6 +352,7 @@ export interface WorkoutActivityData {
|
|
|
300
352
|
}
|
|
301
353
|
|
|
302
354
|
export type ContentPayload =
|
|
355
|
+
| WorkoutPlanPayload
|
|
303
356
|
| WorkoutActivityData
|
|
304
357
|
| {
|
|
305
358
|
// checklist
|
package/lib/models/TodoTasks.ts
CHANGED
|
@@ -12,10 +12,18 @@ export interface TodoTasksBoardAdditionalParamsGithub {
|
|
|
12
12
|
repositories: string[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export interface TodoTasksBoardAdditionalParamsClickUp {
|
|
16
|
+
listId: string;
|
|
17
|
+
spaceId: string;
|
|
18
|
+
teamId: string;
|
|
19
|
+
folderId?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
export interface TodoTasksBoardWebhook {
|
|
16
23
|
resourceId: string;
|
|
17
24
|
active: boolean;
|
|
18
25
|
url?: string;
|
|
26
|
+
secret?: string;
|
|
19
27
|
rawJson?: any;
|
|
20
28
|
}
|
|
21
29
|
|
|
@@ -39,6 +47,7 @@ export interface TodoTasksBoard {
|
|
|
39
47
|
userPersona?: string;
|
|
40
48
|
additionalParams?: {
|
|
41
49
|
github?: TodoTasksBoardAdditionalParamsGithub;
|
|
50
|
+
clickup?: TodoTasksBoardAdditionalParamsClickUp;
|
|
42
51
|
todoist?: TodoTasksBoardAdditionalParamsTodoist;
|
|
43
52
|
[key: string]: any;
|
|
44
53
|
};
|
|
@@ -89,6 +98,10 @@ export interface TaskItemAdditionalParamsGithub {
|
|
|
89
98
|
};
|
|
90
99
|
}
|
|
91
100
|
|
|
101
|
+
export interface TaskItemAdditionalParamsClickUp {
|
|
102
|
+
clickupId: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
92
105
|
export interface TaskItemAdditionalParamsTodoist {
|
|
93
106
|
v2Id: string;
|
|
94
107
|
}
|
|
@@ -135,6 +148,7 @@ export interface TaskItem {
|
|
|
135
148
|
taskWebhookStatus?: WebhookStatusSet;
|
|
136
149
|
additionalParams?: {
|
|
137
150
|
github?: TaskItemAdditionalParamsGithub;
|
|
151
|
+
clickup?: TaskItemAdditionalParamsClickUp;
|
|
138
152
|
todoist?: TaskItemAdditionalParamsTodoist;
|
|
139
153
|
[key: string]: any;
|
|
140
154
|
};
|
package/lib/models/Token.ts
CHANGED