@demind-inc/core 1.9.0 → 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.
|
@@ -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;
|
|
@@ -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
|