@demind-inc/core 1.8.3 → 1.8.5
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.
|
@@ -105,7 +105,7 @@ export interface CalendarRoutineFrom {
|
|
|
105
105
|
routineActivityId: string;
|
|
106
106
|
completed?: boolean;
|
|
107
107
|
}
|
|
108
|
-
export type CalendarScheduleFrom = "todo" | "activity" | "calendar" | "energyBoost" | "aiScheduler" | "sleep" | "meal" | "routine";
|
|
108
|
+
export type CalendarScheduleFrom = "todo" | "activity" | "calendar" | "energyBoost" | "aiScheduler" | "sleep" | "meal" | "routine" | "workout";
|
|
109
109
|
export type CalendarEventType = "default" | "outOfOffice" | "focusTime" | "workingLocation" | "other";
|
|
110
110
|
export interface CalendarEventUser {
|
|
111
111
|
email: string;
|
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -138,6 +138,9 @@ export interface MetricMealDetailMacros {
|
|
|
138
138
|
protein_g?: number;
|
|
139
139
|
cholesterol_mg?: number;
|
|
140
140
|
sodium_mg?: number;
|
|
141
|
+
calories: number;
|
|
142
|
+
sugar_g?: number;
|
|
143
|
+
alcohol_g?: number;
|
|
141
144
|
}
|
|
142
145
|
export interface MetricMealDetailMicros {
|
|
143
146
|
selenium_mg?: number;
|
|
@@ -139,16 +139,59 @@ export interface MealSuggestionPayload {
|
|
|
139
139
|
end_time?: string;
|
|
140
140
|
}
|
|
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
|
-
export type
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
142
|
+
export type WorkoutType = "gym" | "running" | "walking" | "cycling" | "swimming" | "rowing" | "hiking" | "yoga" | "other";
|
|
143
|
+
export type DifficultyLevel = "beginner" | "intermediate" | "advanced";
|
|
144
|
+
export type ActivityType = "running" | "walking" | "cycling" | "swimming" | "rowing" | "hiking" | "gym" | "yoga" | "other";
|
|
145
|
+
export interface HeartRateZoneData {
|
|
146
|
+
zone?: string | null;
|
|
147
|
+
min_hr_bpm?: number | null;
|
|
148
|
+
max_hr_bpm?: number | null;
|
|
149
|
+
duration_seconds?: number | null;
|
|
150
|
+
}
|
|
151
|
+
export interface MovementData {
|
|
152
|
+
avg_speed_meters_per_second?: number | null;
|
|
153
|
+
max_speed_meters_per_second?: number | null;
|
|
154
|
+
avg_pace_minutes_per_kilometer?: number | null;
|
|
155
|
+
max_pace_minutes_per_kilometer?: number | null;
|
|
156
|
+
avg_cadence_rpm?: number | null;
|
|
157
|
+
max_cadence_rpm?: number | null;
|
|
158
|
+
}
|
|
159
|
+
export interface DistanceData {
|
|
160
|
+
distance_meters?: number | null;
|
|
161
|
+
steps?: number | null;
|
|
162
|
+
elevation_gain_meters?: number | null;
|
|
163
|
+
elevation_loss_meters?: number | null;
|
|
164
|
+
floors_climbed?: number | null;
|
|
165
|
+
}
|
|
166
|
+
export interface CaloriesData {
|
|
167
|
+
total_burned_calories?: number | null;
|
|
168
|
+
net_activity_calories?: number | null;
|
|
169
|
+
}
|
|
170
|
+
export interface HeartRateData {
|
|
171
|
+
avg_hr_bpm?: number | null;
|
|
172
|
+
max_hr_bpm?: number | null;
|
|
173
|
+
min_hr_bpm?: number | null;
|
|
174
|
+
avg_hrv_rmssd?: number | null;
|
|
175
|
+
hr_zone_data?: HeartRateZoneData[];
|
|
176
|
+
}
|
|
177
|
+
export interface ActiveDurationsData {
|
|
178
|
+
activity_seconds?: number | null;
|
|
179
|
+
low_intensity_seconds?: number | null;
|
|
180
|
+
moderate_intensity_seconds?: number | null;
|
|
181
|
+
vigorous_intensity_seconds?: number | null;
|
|
182
|
+
rest_seconds?: number | null;
|
|
183
|
+
}
|
|
184
|
+
export interface WorkoutActivityData {
|
|
185
|
+
activity_type?: ActivityType | null;
|
|
186
|
+
start_time: string;
|
|
187
|
+
end_time: string;
|
|
188
|
+
movement_data?: MovementData | null;
|
|
189
|
+
distance_data?: DistanceData | null;
|
|
190
|
+
calories_data?: CaloriesData | null;
|
|
191
|
+
heart_rate_data?: HeartRateData | null;
|
|
192
|
+
active_durations_data?: ActiveDurationsData | null;
|
|
193
|
+
}
|
|
194
|
+
export type ContentPayload = WorkoutActivityData | {
|
|
152
195
|
label: string | null;
|
|
153
196
|
items: {
|
|
154
197
|
text: string;
|
package/lib/models/Calendar.ts
CHANGED
package/lib/models/Metrics.ts
CHANGED
|
@@ -217,18 +217,90 @@ export type ContentType =
|
|
|
217
217
|
| "meal_plan_week"
|
|
218
218
|
| (string & {});
|
|
219
219
|
|
|
220
|
+
export type WorkoutType =
|
|
221
|
+
| "gym"
|
|
222
|
+
| "running"
|
|
223
|
+
| "walking"
|
|
224
|
+
| "cycling"
|
|
225
|
+
| "swimming"
|
|
226
|
+
| "rowing"
|
|
227
|
+
| "hiking"
|
|
228
|
+
| "yoga"
|
|
229
|
+
| "other";
|
|
230
|
+
|
|
231
|
+
export type DifficultyLevel = "beginner" | "intermediate" | "advanced";
|
|
232
|
+
|
|
233
|
+
export type ActivityType =
|
|
234
|
+
| "running"
|
|
235
|
+
| "walking"
|
|
236
|
+
| "cycling"
|
|
237
|
+
| "swimming"
|
|
238
|
+
| "rowing"
|
|
239
|
+
| "hiking"
|
|
240
|
+
| "gym"
|
|
241
|
+
| "yoga"
|
|
242
|
+
| "other";
|
|
243
|
+
|
|
244
|
+
// ── Recorded activity ─────────────────────────────────────────────────────────
|
|
245
|
+
|
|
246
|
+
export interface HeartRateZoneData {
|
|
247
|
+
zone?: string | null;
|
|
248
|
+
min_hr_bpm?: number | null;
|
|
249
|
+
max_hr_bpm?: number | null;
|
|
250
|
+
duration_seconds?: number | null;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface MovementData {
|
|
254
|
+
avg_speed_meters_per_second?: number | null;
|
|
255
|
+
max_speed_meters_per_second?: number | null;
|
|
256
|
+
avg_pace_minutes_per_kilometer?: number | null;
|
|
257
|
+
max_pace_minutes_per_kilometer?: number | null;
|
|
258
|
+
avg_cadence_rpm?: number | null;
|
|
259
|
+
max_cadence_rpm?: number | null;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface DistanceData {
|
|
263
|
+
distance_meters?: number | null;
|
|
264
|
+
steps?: number | null;
|
|
265
|
+
elevation_gain_meters?: number | null;
|
|
266
|
+
elevation_loss_meters?: number | null;
|
|
267
|
+
floors_climbed?: number | null;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface CaloriesData {
|
|
271
|
+
total_burned_calories?: number | null;
|
|
272
|
+
net_activity_calories?: number | null;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface HeartRateData {
|
|
276
|
+
avg_hr_bpm?: number | null;
|
|
277
|
+
max_hr_bpm?: number | null;
|
|
278
|
+
min_hr_bpm?: number | null;
|
|
279
|
+
avg_hrv_rmssd?: number | null;
|
|
280
|
+
hr_zone_data?: HeartRateZoneData[];
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface ActiveDurationsData {
|
|
284
|
+
activity_seconds?: number | null;
|
|
285
|
+
low_intensity_seconds?: number | null;
|
|
286
|
+
moderate_intensity_seconds?: number | null;
|
|
287
|
+
vigorous_intensity_seconds?: number | null;
|
|
288
|
+
rest_seconds?: number | null;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface WorkoutActivityData {
|
|
292
|
+
activity_type?: ActivityType | null;
|
|
293
|
+
start_time: string;
|
|
294
|
+
end_time: string;
|
|
295
|
+
movement_data?: MovementData | null;
|
|
296
|
+
distance_data?: DistanceData | null;
|
|
297
|
+
calories_data?: CaloriesData | null;
|
|
298
|
+
heart_rate_data?: HeartRateData | null;
|
|
299
|
+
active_durations_data?: ActiveDurationsData | null;
|
|
300
|
+
}
|
|
301
|
+
|
|
220
302
|
export type ContentPayload =
|
|
221
|
-
|
|
|
222
|
-
// workout_plan
|
|
223
|
-
plan_title: string;
|
|
224
|
-
difficulty: "beginner" | "intermediate" | "advanced";
|
|
225
|
-
exercises: {
|
|
226
|
-
name: string;
|
|
227
|
-
sets: number;
|
|
228
|
-
reps: number;
|
|
229
|
-
note: string | null;
|
|
230
|
-
}[];
|
|
231
|
-
}
|
|
303
|
+
| WorkoutActivityData
|
|
232
304
|
| {
|
|
233
305
|
// checklist
|
|
234
306
|
label: string | null;
|