@nativesquare/soma 0.2.0 → 0.4.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/client/index.d.ts +167 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +150 -0
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +2 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +56 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/garmin.d.ts +110 -0
- package/dist/component/garmin.d.ts.map +1 -0
- package/dist/component/garmin.js +454 -0
- package/dist/component/garmin.js.map +1 -0
- package/dist/component/public.d.ts +761 -761
- package/dist/component/schema.d.ts +390 -388
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +3 -2
- package/dist/component/schema.js.map +1 -1
- package/dist/component/strava.d.ts +5 -4
- package/dist/component/strava.d.ts.map +1 -1
- package/dist/component/strava.js +18 -1
- package/dist/component/strava.js.map +1 -1
- package/dist/component/validators/activity.d.ts +42 -42
- package/dist/component/validators/body.d.ts +47 -47
- package/dist/component/validators/daily.d.ts +17 -17
- package/dist/component/validators/plannedWorkout.d.ts +5 -5
- package/dist/component/validators/samples.d.ts +2 -2
- package/dist/component/validators/shared.d.ts +17 -17
- package/dist/component/validators/sleep.d.ts +17 -17
- package/dist/garmin/activity.d.ts +101 -0
- package/dist/garmin/activity.d.ts.map +1 -0
- package/dist/garmin/activity.js +207 -0
- package/dist/garmin/activity.js.map +1 -0
- package/dist/garmin/auth.d.ts +65 -0
- package/dist/garmin/auth.d.ts.map +1 -0
- package/dist/garmin/auth.js +155 -0
- package/dist/garmin/auth.js.map +1 -0
- package/dist/garmin/body.d.ts +26 -0
- package/dist/garmin/body.d.ts.map +1 -0
- package/dist/garmin/body.js +44 -0
- package/dist/garmin/body.js.map +1 -0
- package/dist/garmin/client.d.ts +99 -0
- package/dist/garmin/client.d.ts.map +1 -0
- package/dist/garmin/client.js +153 -0
- package/dist/garmin/client.js.map +1 -0
- package/dist/garmin/daily.d.ts +74 -0
- package/dist/garmin/daily.d.ts.map +1 -0
- package/dist/garmin/daily.js +143 -0
- package/dist/garmin/daily.js.map +1 -0
- package/dist/garmin/index.d.ts +20 -0
- package/dist/garmin/index.d.ts.map +1 -0
- package/dist/garmin/index.js +21 -0
- package/dist/garmin/index.js.map +1 -0
- package/dist/garmin/maps/activity-type.d.ts +7 -0
- package/dist/garmin/maps/activity-type.d.ts.map +1 -0
- package/dist/garmin/maps/activity-type.js +98 -0
- package/dist/garmin/maps/activity-type.js.map +1 -0
- package/dist/garmin/maps/sleep-level.d.ts +6 -0
- package/dist/garmin/maps/sleep-level.d.ts.map +1 -0
- package/dist/garmin/maps/sleep-level.js +21 -0
- package/dist/garmin/maps/sleep-level.js.map +1 -0
- package/dist/garmin/menstruation.d.ts +23 -0
- package/dist/garmin/menstruation.d.ts.map +1 -0
- package/dist/garmin/menstruation.js +34 -0
- package/dist/garmin/menstruation.js.map +1 -0
- package/dist/garmin/sleep.d.ts +62 -0
- package/dist/garmin/sleep.d.ts.map +1 -0
- package/dist/garmin/sleep.js +125 -0
- package/dist/garmin/sleep.js.map +1 -0
- package/dist/garmin/sync.d.ts +39 -0
- package/dist/garmin/sync.d.ts.map +1 -0
- package/dist/garmin/sync.js +175 -0
- package/dist/garmin/sync.js.map +1 -0
- package/dist/garmin/types.d.ts +212 -0
- package/dist/garmin/types.d.ts.map +1 -0
- package/dist/garmin/types.js +8 -0
- package/dist/garmin/types.js.map +1 -0
- package/dist/validators.d.ts +6617 -0
- package/dist/validators.d.ts.map +1 -0
- package/dist/validators.js +78 -0
- package/dist/validators.js.map +1 -0
- package/package.json +9 -1
- package/src/client/index.ts +194 -1
- package/src/component/_generated/api.ts +2 -0
- package/src/component/_generated/component.ts +62 -0
- package/src/component/garmin.ts +534 -0
- package/src/component/schema.ts +3 -2
- package/src/component/strava.ts +23 -1
- package/src/garmin/activity.test.ts +178 -0
- package/src/garmin/activity.ts +272 -0
- package/src/garmin/auth.test.ts +128 -0
- package/src/garmin/auth.ts +249 -0
- package/src/garmin/body.ts +59 -0
- package/src/garmin/client.ts +254 -0
- package/src/garmin/daily.ts +211 -0
- package/src/garmin/index.ts +76 -0
- package/src/garmin/maps/activity-type.test.ts +78 -0
- package/src/garmin/maps/activity-type.ts +116 -0
- package/src/garmin/maps/sleep-level.ts +22 -0
- package/src/garmin/menstruation.ts +42 -0
- package/src/garmin/sleep.test.ts +110 -0
- package/src/garmin/sleep.ts +170 -0
- package/src/garmin/sync.ts +223 -0
- package/src/garmin/types.ts +338 -0
- package/src/validators.ts +89 -0
|
@@ -15,21 +15,21 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
15
15
|
by_userId_provider: ["userId", "provider", "_creationTime"];
|
|
16
16
|
}, {}, {}>;
|
|
17
17
|
athletes: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
18
|
-
age?: number | undefined;
|
|
19
|
-
bio?: string | undefined;
|
|
20
18
|
city?: string | undefined;
|
|
21
19
|
country?: string | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
state?: string | undefined;
|
|
21
|
+
age?: number | undefined;
|
|
22
|
+
bio?: string | undefined;
|
|
23
|
+
last_name?: string | undefined;
|
|
24
|
+
sex?: string | undefined;
|
|
24
25
|
email?: string | undefined;
|
|
26
|
+
date_of_birth?: string | undefined;
|
|
25
27
|
first_name?: string | undefined;
|
|
26
28
|
gender?: string | undefined;
|
|
27
29
|
joined_provider?: string | undefined;
|
|
28
|
-
|
|
29
|
-
sex?: string | undefined;
|
|
30
|
-
state?: string | undefined;
|
|
31
|
-
userId: string;
|
|
30
|
+
devices?: any[] | undefined;
|
|
32
31
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
32
|
+
userId: string;
|
|
33
33
|
}, {
|
|
34
34
|
connectionId: import("convex/values").VId<import("convex/values").GenericId<"connections">, "required">;
|
|
35
35
|
userId: import("convex/values").VString<string, "required">;
|
|
@@ -46,31 +46,44 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
46
46
|
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
47
47
|
joined_provider: import("convex/values").VString<string | undefined, "optional">;
|
|
48
48
|
devices: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
49
|
-
}, "required", "
|
|
49
|
+
}, "required", "city" | "country" | "state" | "connectionId" | "userId" | "age" | "bio" | "last_name" | "sex" | "email" | "date_of_birth" | "first_name" | "gender" | "joined_provider" | "devices">, {
|
|
50
50
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
51
51
|
by_userId: ["userId", "_creationTime"];
|
|
52
52
|
}, {}, {}>;
|
|
53
53
|
activities: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
54
|
+
heart_rate_data?: {
|
|
55
|
+
detailed?: {
|
|
56
|
+
hr_samples?: {
|
|
57
|
+
timestamp?: string | undefined;
|
|
58
|
+
bpm?: number | undefined;
|
|
59
|
+
timer_duration_seconds?: number | undefined;
|
|
60
|
+
context?: number | undefined;
|
|
61
|
+
}[] | undefined;
|
|
62
|
+
hrv_samples_rmssd?: {
|
|
63
|
+
timestamp?: string | undefined;
|
|
64
|
+
hrv_rmssd?: number | undefined;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
hrv_samples_sdnn?: {
|
|
67
|
+
timestamp?: string | undefined;
|
|
68
|
+
hrv_sdnn?: number | undefined;
|
|
69
|
+
}[] | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
summary?: {
|
|
72
|
+
avg_hr_bpm?: number | undefined;
|
|
73
|
+
avg_hrv_rmssd?: number | undefined;
|
|
74
|
+
avg_hrv_sdnn?: number | undefined;
|
|
75
|
+
hr_zone_data?: {
|
|
76
|
+
zone?: number | undefined;
|
|
77
|
+
start_percentage?: number | undefined;
|
|
78
|
+
end_percentage?: number | undefined;
|
|
79
|
+
name?: string | undefined;
|
|
80
|
+
duration_seconds?: number | undefined;
|
|
81
|
+
}[] | undefined;
|
|
82
|
+
max_hr_bpm?: number | undefined;
|
|
83
|
+
min_hr_bpm?: number | undefined;
|
|
84
|
+
resting_hr_bpm?: number | undefined;
|
|
85
|
+
user_max_hr_bpm?: number | undefined;
|
|
86
|
+
} | undefined;
|
|
74
87
|
} | undefined;
|
|
75
88
|
active_durations_data?: {
|
|
76
89
|
activity_levels_samples?: {
|
|
@@ -124,24 +137,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
124
137
|
sensor_state?: string | undefined;
|
|
125
138
|
} | undefined;
|
|
126
139
|
distance_data?: {
|
|
127
|
-
summary?: {
|
|
128
|
-
distance_meters?: number | undefined;
|
|
129
|
-
steps?: number | undefined;
|
|
130
|
-
floors_climbed?: number | undefined;
|
|
131
|
-
elevation?: {
|
|
132
|
-
avg_meters?: number | undefined;
|
|
133
|
-
gain_actual_meters?: number | undefined;
|
|
134
|
-
gain_planned_meters?: number | undefined;
|
|
135
|
-
loss_actual_meters?: number | undefined;
|
|
136
|
-
max_meters?: number | undefined;
|
|
137
|
-
min_meters?: number | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
swimming?: {
|
|
140
|
-
num_laps?: number | undefined;
|
|
141
|
-
num_strokes?: number | undefined;
|
|
142
|
-
pool_length_meters?: number | undefined;
|
|
143
|
-
} | undefined;
|
|
144
|
-
} | undefined;
|
|
145
140
|
detailed?: {
|
|
146
141
|
distance_samples?: {
|
|
147
142
|
timestamp?: string | undefined;
|
|
@@ -164,45 +159,29 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
164
159
|
steps?: number | undefined;
|
|
165
160
|
}[] | undefined;
|
|
166
161
|
} | undefined;
|
|
162
|
+
summary?: {
|
|
163
|
+
distance_meters?: number | undefined;
|
|
164
|
+
steps?: number | undefined;
|
|
165
|
+
floors_climbed?: number | undefined;
|
|
166
|
+
elevation?: {
|
|
167
|
+
avg_meters?: number | undefined;
|
|
168
|
+
gain_actual_meters?: number | undefined;
|
|
169
|
+
gain_planned_meters?: number | undefined;
|
|
170
|
+
loss_actual_meters?: number | undefined;
|
|
171
|
+
max_meters?: number | undefined;
|
|
172
|
+
min_meters?: number | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
swimming?: {
|
|
175
|
+
num_laps?: number | undefined;
|
|
176
|
+
num_strokes?: number | undefined;
|
|
177
|
+
pool_length_meters?: number | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
} | undefined;
|
|
167
180
|
} | undefined;
|
|
168
181
|
energy_data?: {
|
|
169
182
|
energy_kilojoules?: number | undefined;
|
|
170
183
|
energy_planned_kilojoules?: number | undefined;
|
|
171
184
|
} | undefined;
|
|
172
|
-
heart_rate_data?: {
|
|
173
|
-
summary?: {
|
|
174
|
-
avg_hr_bpm?: number | undefined;
|
|
175
|
-
avg_hrv_rmssd?: number | undefined;
|
|
176
|
-
avg_hrv_sdnn?: number | undefined;
|
|
177
|
-
hr_zone_data?: {
|
|
178
|
-
zone?: number | undefined;
|
|
179
|
-
start_percentage?: number | undefined;
|
|
180
|
-
end_percentage?: number | undefined;
|
|
181
|
-
name?: string | undefined;
|
|
182
|
-
duration_seconds?: number | undefined;
|
|
183
|
-
}[] | undefined;
|
|
184
|
-
max_hr_bpm?: number | undefined;
|
|
185
|
-
min_hr_bpm?: number | undefined;
|
|
186
|
-
resting_hr_bpm?: number | undefined;
|
|
187
|
-
user_max_hr_bpm?: number | undefined;
|
|
188
|
-
} | undefined;
|
|
189
|
-
detailed?: {
|
|
190
|
-
hr_samples?: {
|
|
191
|
-
timestamp?: string | undefined;
|
|
192
|
-
bpm?: number | undefined;
|
|
193
|
-
timer_duration_seconds?: number | undefined;
|
|
194
|
-
context?: number | undefined;
|
|
195
|
-
}[] | undefined;
|
|
196
|
-
hrv_samples_rmssd?: {
|
|
197
|
-
timestamp?: string | undefined;
|
|
198
|
-
hrv_rmssd?: number | undefined;
|
|
199
|
-
}[] | undefined;
|
|
200
|
-
hrv_samples_sdnn?: {
|
|
201
|
-
timestamp?: string | undefined;
|
|
202
|
-
hrv_sdnn?: number | undefined;
|
|
203
|
-
}[] | undefined;
|
|
204
|
-
} | undefined;
|
|
205
|
-
} | undefined;
|
|
206
185
|
lap_data?: {
|
|
207
186
|
laps?: {
|
|
208
187
|
calories?: number | undefined;
|
|
@@ -215,6 +194,17 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
215
194
|
avg_hr_bpm?: number | undefined;
|
|
216
195
|
}[] | undefined;
|
|
217
196
|
} | undefined;
|
|
197
|
+
MET_data?: {
|
|
198
|
+
MET_samples?: {
|
|
199
|
+
timestamp?: string | undefined;
|
|
200
|
+
level?: number | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
avg_level?: number | undefined;
|
|
203
|
+
num_high_intensity_minutes?: number | undefined;
|
|
204
|
+
num_inactive_minutes?: number | undefined;
|
|
205
|
+
num_low_intensity_minutes?: number | undefined;
|
|
206
|
+
num_moderate_intensity_minutes?: number | undefined;
|
|
207
|
+
} | undefined;
|
|
218
208
|
movement_data?: {
|
|
219
209
|
avg_speed_meters_per_second?: number | undefined;
|
|
220
210
|
adjusted_max_speed_meters_per_second?: number | undefined;
|
|
@@ -282,16 +272,26 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
282
272
|
strain_data?: {
|
|
283
273
|
strain_level?: number | undefined;
|
|
284
274
|
} | undefined;
|
|
275
|
+
TSS_data?: {
|
|
276
|
+
TSS_samples?: {
|
|
277
|
+
planned?: number | undefined;
|
|
278
|
+
actual?: number | undefined;
|
|
279
|
+
method?: string | undefined;
|
|
280
|
+
intensity_factor_planned?: number | undefined;
|
|
281
|
+
intensity_factor_actual?: number | undefined;
|
|
282
|
+
normalized_power_watts?: number | undefined;
|
|
283
|
+
}[] | undefined;
|
|
284
|
+
} | undefined;
|
|
285
285
|
work_data?: {
|
|
286
286
|
work_kilojoules?: number | undefined;
|
|
287
287
|
} | undefined;
|
|
288
|
-
userId: string;
|
|
289
288
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
289
|
+
userId: string;
|
|
290
290
|
metadata: {
|
|
291
|
+
name?: string | undefined;
|
|
291
292
|
city?: string | undefined;
|
|
292
293
|
country?: string | undefined;
|
|
293
294
|
state?: string | undefined;
|
|
294
|
-
name?: string | undefined;
|
|
295
295
|
timestamp_localization?: number | undefined;
|
|
296
296
|
type: number;
|
|
297
297
|
start_time: string;
|
|
@@ -432,24 +432,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
432
432
|
software_version: import("convex/values").VString<string | undefined, "optional">;
|
|
433
433
|
}, "optional", "name" | "manufacturer" | "serial_number" | "software_version" | "hardware_version" | "last_upload_date" | "activation_timestamp" | "data_provided" | "other_devices" | "sensor_state">;
|
|
434
434
|
distance_data: import("convex/values").VObject<{
|
|
435
|
-
summary?: {
|
|
436
|
-
distance_meters?: number | undefined;
|
|
437
|
-
steps?: number | undefined;
|
|
438
|
-
floors_climbed?: number | undefined;
|
|
439
|
-
elevation?: {
|
|
440
|
-
avg_meters?: number | undefined;
|
|
441
|
-
gain_actual_meters?: number | undefined;
|
|
442
|
-
gain_planned_meters?: number | undefined;
|
|
443
|
-
loss_actual_meters?: number | undefined;
|
|
444
|
-
max_meters?: number | undefined;
|
|
445
|
-
min_meters?: number | undefined;
|
|
446
|
-
} | undefined;
|
|
447
|
-
swimming?: {
|
|
448
|
-
num_laps?: number | undefined;
|
|
449
|
-
num_strokes?: number | undefined;
|
|
450
|
-
pool_length_meters?: number | undefined;
|
|
451
|
-
} | undefined;
|
|
452
|
-
} | undefined;
|
|
453
435
|
detailed?: {
|
|
454
436
|
distance_samples?: {
|
|
455
437
|
timestamp?: string | undefined;
|
|
@@ -472,6 +454,24 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
472
454
|
steps?: number | undefined;
|
|
473
455
|
}[] | undefined;
|
|
474
456
|
} | undefined;
|
|
457
|
+
summary?: {
|
|
458
|
+
distance_meters?: number | undefined;
|
|
459
|
+
steps?: number | undefined;
|
|
460
|
+
floors_climbed?: number | undefined;
|
|
461
|
+
elevation?: {
|
|
462
|
+
avg_meters?: number | undefined;
|
|
463
|
+
gain_actual_meters?: number | undefined;
|
|
464
|
+
gain_planned_meters?: number | undefined;
|
|
465
|
+
loss_actual_meters?: number | undefined;
|
|
466
|
+
max_meters?: number | undefined;
|
|
467
|
+
min_meters?: number | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
swimming?: {
|
|
470
|
+
num_laps?: number | undefined;
|
|
471
|
+
num_strokes?: number | undefined;
|
|
472
|
+
pool_length_meters?: number | undefined;
|
|
473
|
+
} | undefined;
|
|
474
|
+
} | undefined;
|
|
475
475
|
} | undefined, {
|
|
476
476
|
detailed: import("convex/values").VObject<{
|
|
477
477
|
distance_samples?: {
|
|
@@ -594,7 +594,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
594
594
|
pool_length_meters: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
595
595
|
}, "optional", "num_laps" | "num_strokes" | "pool_length_meters">;
|
|
596
596
|
}, "optional", "distance_meters" | "steps" | "floors_climbed" | "elevation" | "swimming" | "elevation.avg_meters" | "elevation.gain_actual_meters" | "elevation.gain_planned_meters" | "elevation.loss_actual_meters" | "elevation.max_meters" | "elevation.min_meters" | "swimming.num_laps" | "swimming.num_strokes" | "swimming.pool_length_meters">;
|
|
597
|
-
}, "optional", "summary" | "detailed" | "summary.distance_meters" | "summary.steps" | "summary.floors_climbed" | "summary.elevation" | "summary.swimming" | "summary.elevation.avg_meters" | "summary.elevation.gain_actual_meters" | "summary.elevation.gain_planned_meters" | "summary.elevation.loss_actual_meters" | "summary.elevation.max_meters" | "summary.elevation.min_meters" | "summary.swimming.num_laps" | "summary.swimming.num_strokes" | "summary.swimming.pool_length_meters"
|
|
597
|
+
}, "optional", "detailed" | "summary" | "detailed.distance_samples" | "detailed.elevation_samples" | "detailed.floors_climbed_samples" | "detailed.step_samples" | "summary.distance_meters" | "summary.steps" | "summary.floors_climbed" | "summary.elevation" | "summary.swimming" | "summary.elevation.avg_meters" | "summary.elevation.gain_actual_meters" | "summary.elevation.gain_planned_meters" | "summary.elevation.loss_actual_meters" | "summary.elevation.max_meters" | "summary.elevation.min_meters" | "summary.swimming.num_laps" | "summary.swimming.num_strokes" | "summary.swimming.pool_length_meters">;
|
|
598
598
|
energy_data: import("convex/values").VObject<{
|
|
599
599
|
energy_kilojoules?: number | undefined;
|
|
600
600
|
energy_planned_kilojoules?: number | undefined;
|
|
@@ -603,22 +603,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
603
603
|
energy_planned_kilojoules: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
604
604
|
}, "optional", "energy_kilojoules" | "energy_planned_kilojoules">;
|
|
605
605
|
heart_rate_data: import("convex/values").VObject<{
|
|
606
|
-
summary?: {
|
|
607
|
-
avg_hr_bpm?: number | undefined;
|
|
608
|
-
avg_hrv_rmssd?: number | undefined;
|
|
609
|
-
avg_hrv_sdnn?: number | undefined;
|
|
610
|
-
hr_zone_data?: {
|
|
611
|
-
zone?: number | undefined;
|
|
612
|
-
start_percentage?: number | undefined;
|
|
613
|
-
end_percentage?: number | undefined;
|
|
614
|
-
name?: string | undefined;
|
|
615
|
-
duration_seconds?: number | undefined;
|
|
616
|
-
}[] | undefined;
|
|
617
|
-
max_hr_bpm?: number | undefined;
|
|
618
|
-
min_hr_bpm?: number | undefined;
|
|
619
|
-
resting_hr_bpm?: number | undefined;
|
|
620
|
-
user_max_hr_bpm?: number | undefined;
|
|
621
|
-
} | undefined;
|
|
622
606
|
detailed?: {
|
|
623
607
|
hr_samples?: {
|
|
624
608
|
timestamp?: string | undefined;
|
|
@@ -635,6 +619,22 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
635
619
|
hrv_sdnn?: number | undefined;
|
|
636
620
|
}[] | undefined;
|
|
637
621
|
} | undefined;
|
|
622
|
+
summary?: {
|
|
623
|
+
avg_hr_bpm?: number | undefined;
|
|
624
|
+
avg_hrv_rmssd?: number | undefined;
|
|
625
|
+
avg_hrv_sdnn?: number | undefined;
|
|
626
|
+
hr_zone_data?: {
|
|
627
|
+
zone?: number | undefined;
|
|
628
|
+
start_percentage?: number | undefined;
|
|
629
|
+
end_percentage?: number | undefined;
|
|
630
|
+
name?: string | undefined;
|
|
631
|
+
duration_seconds?: number | undefined;
|
|
632
|
+
}[] | undefined;
|
|
633
|
+
max_hr_bpm?: number | undefined;
|
|
634
|
+
min_hr_bpm?: number | undefined;
|
|
635
|
+
resting_hr_bpm?: number | undefined;
|
|
636
|
+
user_max_hr_bpm?: number | undefined;
|
|
637
|
+
} | undefined;
|
|
638
638
|
} | undefined, {
|
|
639
639
|
detailed: import("convex/values").VObject<{
|
|
640
640
|
hr_samples?: {
|
|
@@ -732,7 +732,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
732
732
|
resting_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
733
733
|
user_max_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
734
734
|
}, "optional", "avg_hr_bpm" | "avg_hrv_rmssd" | "avg_hrv_sdnn" | "hr_zone_data" | "max_hr_bpm" | "min_hr_bpm" | "resting_hr_bpm" | "user_max_hr_bpm">;
|
|
735
|
-
}, "optional", "
|
|
735
|
+
}, "optional", "detailed" | "summary" | "detailed.hr_samples" | "detailed.hrv_samples_rmssd" | "detailed.hrv_samples_sdnn" | "summary.avg_hr_bpm" | "summary.avg_hrv_rmssd" | "summary.avg_hrv_sdnn" | "summary.hr_zone_data" | "summary.max_hr_bpm" | "summary.min_hr_bpm" | "summary.resting_hr_bpm" | "summary.user_max_hr_bpm">;
|
|
736
736
|
lap_data: import("convex/values").VObject<{
|
|
737
737
|
laps?: {
|
|
738
738
|
calories?: number | undefined;
|
|
@@ -802,10 +802,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
802
802
|
num_moderate_intensity_minutes: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
803
803
|
}, "optional", "MET_samples" | "avg_level" | "num_high_intensity_minutes" | "num_inactive_minutes" | "num_low_intensity_minutes" | "num_moderate_intensity_minutes">;
|
|
804
804
|
metadata: import("convex/values").VObject<{
|
|
805
|
+
name?: string | undefined;
|
|
805
806
|
city?: string | undefined;
|
|
806
807
|
country?: string | undefined;
|
|
807
808
|
state?: string | undefined;
|
|
808
|
-
name?: string | undefined;
|
|
809
809
|
timestamp_localization?: number | undefined;
|
|
810
810
|
type: number;
|
|
811
811
|
start_time: string;
|
|
@@ -823,7 +823,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
823
823
|
timestamp_localization: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
824
824
|
type: import("convex/values").VFloat64<number, "required">;
|
|
825
825
|
upload_type: import("convex/values").VFloat64<number, "required">;
|
|
826
|
-
}, "required", "
|
|
826
|
+
}, "required", "type" | "name" | "start_time" | "end_time" | "city" | "country" | "state" | "summary_id" | "timestamp_localization" | "upload_type">;
|
|
827
827
|
movement_data: import("convex/values").VObject<{
|
|
828
828
|
avg_speed_meters_per_second?: number | undefined;
|
|
829
829
|
adjusted_max_speed_meters_per_second?: number | undefined;
|
|
@@ -1008,25 +1008,25 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1008
1008
|
}, "optional", "strain_level">;
|
|
1009
1009
|
TSS_data: import("convex/values").VObject<{
|
|
1010
1010
|
TSS_samples?: {
|
|
1011
|
-
method?: string | undefined;
|
|
1012
1011
|
planned?: number | undefined;
|
|
1013
1012
|
actual?: number | undefined;
|
|
1013
|
+
method?: string | undefined;
|
|
1014
1014
|
intensity_factor_planned?: number | undefined;
|
|
1015
1015
|
intensity_factor_actual?: number | undefined;
|
|
1016
1016
|
normalized_power_watts?: number | undefined;
|
|
1017
1017
|
}[] | undefined;
|
|
1018
1018
|
} | undefined, {
|
|
1019
1019
|
TSS_samples: import("convex/values").VArray<{
|
|
1020
|
-
method?: string | undefined;
|
|
1021
1020
|
planned?: number | undefined;
|
|
1022
1021
|
actual?: number | undefined;
|
|
1022
|
+
method?: string | undefined;
|
|
1023
1023
|
intensity_factor_planned?: number | undefined;
|
|
1024
1024
|
intensity_factor_actual?: number | undefined;
|
|
1025
1025
|
normalized_power_watts?: number | undefined;
|
|
1026
1026
|
}[] | undefined, import("convex/values").VObject<{
|
|
1027
|
-
method?: string | undefined;
|
|
1028
1027
|
planned?: number | undefined;
|
|
1029
1028
|
actual?: number | undefined;
|
|
1029
|
+
method?: string | undefined;
|
|
1030
1030
|
intensity_factor_planned?: number | undefined;
|
|
1031
1031
|
intensity_factor_actual?: number | undefined;
|
|
1032
1032
|
normalized_power_watts?: number | undefined;
|
|
@@ -1037,14 +1037,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1037
1037
|
intensity_factor_planned: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1038
1038
|
intensity_factor_actual: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1039
1039
|
normalized_power_watts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1040
|
-
}, "required", "
|
|
1040
|
+
}, "required", "planned" | "actual" | "method" | "intensity_factor_planned" | "intensity_factor_actual" | "normalized_power_watts">, "optional">;
|
|
1041
1041
|
}, "optional", "TSS_samples">;
|
|
1042
1042
|
work_data: import("convex/values").VObject<{
|
|
1043
1043
|
work_kilojoules?: number | undefined;
|
|
1044
1044
|
} | undefined, {
|
|
1045
1045
|
work_kilojoules: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1046
1046
|
}, "optional", "work_kilojoules">;
|
|
1047
|
-
}, "required", "
|
|
1047
|
+
}, "required", "heart_rate_data" | "heart_rate_data.detailed" | "heart_rate_data.summary" | "heart_rate_data.detailed.hr_samples" | "heart_rate_data.detailed.hrv_samples_rmssd" | "heart_rate_data.detailed.hrv_samples_sdnn" | "heart_rate_data.summary.avg_hr_bpm" | "heart_rate_data.summary.avg_hrv_rmssd" | "heart_rate_data.summary.avg_hrv_sdnn" | "heart_rate_data.summary.hr_zone_data" | "heart_rate_data.summary.max_hr_bpm" | "heart_rate_data.summary.min_hr_bpm" | "heart_rate_data.summary.resting_hr_bpm" | "heart_rate_data.summary.user_max_hr_bpm" | "connectionId" | "userId" | "active_durations_data" | "calories_data" | "cheat_detection" | "data_enrichment" | "device_data" | "distance_data" | "energy_data" | "lap_data" | "MET_data" | "metadata" | "movement_data" | "oxygen_data" | "polyline_map_data" | "position_data" | "power_data" | "strain_data" | "TSS_data" | "work_data" | "active_durations_data.activity_levels_samples" | "active_durations_data.activity_seconds" | "active_durations_data.inactivity_seconds" | "active_durations_data.low_intensity_seconds" | "active_durations_data.moderate_intensity_seconds" | "active_durations_data.num_continuous_inactive_periods" | "active_durations_data.rest_seconds" | "active_durations_data.standing_hours_count" | "active_durations_data.standing_seconds" | "active_durations_data.vigorous_intensity_seconds" | "calories_data.BMR_calories" | "calories_data.calorie_samples" | "calories_data.net_activity_calories" | "calories_data.net_intake_calories" | "calories_data.total_burned_calories" | "data_enrichment.stress_score" | "device_data.name" | "device_data.manufacturer" | "device_data.serial_number" | "device_data.software_version" | "device_data.hardware_version" | "device_data.last_upload_date" | "device_data.activation_timestamp" | "device_data.data_provided" | "device_data.other_devices" | "device_data.sensor_state" | "distance_data.detailed" | "distance_data.summary" | "distance_data.detailed.distance_samples" | "distance_data.detailed.elevation_samples" | "distance_data.detailed.floors_climbed_samples" | "distance_data.detailed.step_samples" | "distance_data.summary.distance_meters" | "distance_data.summary.steps" | "distance_data.summary.floors_climbed" | "distance_data.summary.elevation" | "distance_data.summary.swimming" | "distance_data.summary.elevation.avg_meters" | "distance_data.summary.elevation.gain_actual_meters" | "distance_data.summary.elevation.gain_planned_meters" | "distance_data.summary.elevation.loss_actual_meters" | "distance_data.summary.elevation.max_meters" | "distance_data.summary.elevation.min_meters" | "distance_data.summary.swimming.num_laps" | "distance_data.summary.swimming.num_strokes" | "distance_data.summary.swimming.pool_length_meters" | "energy_data.energy_kilojoules" | "energy_data.energy_planned_kilojoules" | "lap_data.laps" | "MET_data.MET_samples" | "MET_data.avg_level" | "MET_data.num_high_intensity_minutes" | "MET_data.num_inactive_minutes" | "MET_data.num_low_intensity_minutes" | "MET_data.num_moderate_intensity_minutes" | "metadata.type" | "metadata.name" | "metadata.start_time" | "metadata.end_time" | "metadata.city" | "metadata.country" | "metadata.state" | "metadata.summary_id" | "metadata.timestamp_localization" | "metadata.upload_type" | "movement_data.avg_speed_meters_per_second" | "movement_data.adjusted_max_speed_meters_per_second" | "movement_data.avg_cadence_rpm" | "movement_data.avg_pace_minutes_per_kilometer" | "movement_data.avg_torque_newton_meters" | "movement_data.avg_velocity_meters_per_second" | "movement_data.cadence_samples" | "movement_data.max_cadence_rpm" | "movement_data.max_pace_minutes_per_kilometer" | "movement_data.max_speed_meters_per_second" | "movement_data.max_torque_newton_meters" | "movement_data.max_velocity_meters_per_second" | "movement_data.normalized_speed_meters_per_second" | "movement_data.speed_samples" | "movement_data.torque_samples" | "oxygen_data.vo2max_ml_per_min_per_kg" | "oxygen_data.avg_saturation_percentage" | "oxygen_data.saturation_samples" | "oxygen_data.vo2_samples" | "polyline_map_data.summary_polyline" | "position_data.center_pos_lat_lng_deg" | "position_data.end_pos_lat_lng_deg" | "position_data.position_samples" | "position_data.start_pos_lat_lng_deg" | "power_data.avg_watts" | "power_data.max_watts" | "power_data.power_samples" | "strain_data.strain_level" | "TSS_data.TSS_samples" | "work_data.work_kilojoules">, {
|
|
1048
1048
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
1049
1049
|
by_userId: ["userId", "_creationTime"];
|
|
1050
1050
|
by_userId_startTime: ["userId", "metadata.start_time", "_creationTime"];
|
|
@@ -1092,50 +1092,21 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1092
1092
|
systolic_bp?: number | undefined;
|
|
1093
1093
|
}[] | undefined;
|
|
1094
1094
|
} | undefined;
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
timestamp?: string | undefined;
|
|
1098
|
-
blood_glucose_mg_per_dL?: number | undefined;
|
|
1099
|
-
glucose_level_flag?: number | undefined;
|
|
1100
|
-
trend_arrow?: number | undefined;
|
|
1101
|
-
}[] | undefined;
|
|
1102
|
-
detailed_blood_glucose_samples?: {
|
|
1095
|
+
heart_data?: {
|
|
1096
|
+
afib_classification_samples?: {
|
|
1103
1097
|
timestamp?: string | undefined;
|
|
1104
|
-
|
|
1105
|
-
glucose_level_flag?: number | undefined;
|
|
1106
|
-
trend_arrow?: number | undefined;
|
|
1098
|
+
afib_classification?: number | undefined;
|
|
1107
1099
|
}[] | undefined;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1100
|
+
ecg_signal?: {
|
|
1101
|
+
avg_hr_bpm?: number | undefined;
|
|
1102
|
+
start_timestamp?: string | undefined;
|
|
1103
|
+
afib_classification?: number | undefined;
|
|
1104
|
+
raw_signal?: {
|
|
1105
|
+
timestamp?: string | undefined;
|
|
1106
|
+
potential_uV?: number | undefined;
|
|
1107
|
+
}[] | undefined;
|
|
1115
1108
|
}[] | undefined;
|
|
1116
|
-
sensor_usage?: number | undefined;
|
|
1117
|
-
day_avg_blood_glucose_mg_per_dL?: number | undefined;
|
|
1118
|
-
time_in_range?: number | undefined;
|
|
1119
|
-
gmi?: number | undefined;
|
|
1120
|
-
} | undefined;
|
|
1121
|
-
heart_data?: {
|
|
1122
1109
|
heart_rate_data?: {
|
|
1123
|
-
summary?: {
|
|
1124
|
-
avg_hr_bpm?: number | undefined;
|
|
1125
|
-
avg_hrv_rmssd?: number | undefined;
|
|
1126
|
-
avg_hrv_sdnn?: number | undefined;
|
|
1127
|
-
hr_zone_data?: {
|
|
1128
|
-
zone?: number | undefined;
|
|
1129
|
-
start_percentage?: number | undefined;
|
|
1130
|
-
end_percentage?: number | undefined;
|
|
1131
|
-
name?: string | undefined;
|
|
1132
|
-
duration_seconds?: number | undefined;
|
|
1133
|
-
}[] | undefined;
|
|
1134
|
-
max_hr_bpm?: number | undefined;
|
|
1135
|
-
min_hr_bpm?: number | undefined;
|
|
1136
|
-
resting_hr_bpm?: number | undefined;
|
|
1137
|
-
user_max_hr_bpm?: number | undefined;
|
|
1138
|
-
} | undefined;
|
|
1139
1110
|
detailed?: {
|
|
1140
1111
|
hr_samples?: {
|
|
1141
1112
|
timestamp?: string | undefined;
|
|
@@ -1152,20 +1123,23 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1152
1123
|
hrv_sdnn?: number | undefined;
|
|
1153
1124
|
}[] | undefined;
|
|
1154
1125
|
} | undefined;
|
|
1126
|
+
summary?: {
|
|
1127
|
+
avg_hr_bpm?: number | undefined;
|
|
1128
|
+
avg_hrv_rmssd?: number | undefined;
|
|
1129
|
+
avg_hrv_sdnn?: number | undefined;
|
|
1130
|
+
hr_zone_data?: {
|
|
1131
|
+
zone?: number | undefined;
|
|
1132
|
+
start_percentage?: number | undefined;
|
|
1133
|
+
end_percentage?: number | undefined;
|
|
1134
|
+
name?: string | undefined;
|
|
1135
|
+
duration_seconds?: number | undefined;
|
|
1136
|
+
}[] | undefined;
|
|
1137
|
+
max_hr_bpm?: number | undefined;
|
|
1138
|
+
min_hr_bpm?: number | undefined;
|
|
1139
|
+
resting_hr_bpm?: number | undefined;
|
|
1140
|
+
user_max_hr_bpm?: number | undefined;
|
|
1141
|
+
} | undefined;
|
|
1155
1142
|
} | undefined;
|
|
1156
|
-
afib_classification_samples?: {
|
|
1157
|
-
timestamp?: string | undefined;
|
|
1158
|
-
afib_classification?: number | undefined;
|
|
1159
|
-
}[] | undefined;
|
|
1160
|
-
ecg_signal?: {
|
|
1161
|
-
avg_hr_bpm?: number | undefined;
|
|
1162
|
-
start_timestamp?: string | undefined;
|
|
1163
|
-
afib_classification?: number | undefined;
|
|
1164
|
-
raw_signal?: {
|
|
1165
|
-
timestamp?: string | undefined;
|
|
1166
|
-
potential_uV?: number | undefined;
|
|
1167
|
-
}[] | undefined;
|
|
1168
|
-
}[] | undefined;
|
|
1169
1143
|
pulse_wave_velocity_samples?: {
|
|
1170
1144
|
timestamp?: string | undefined;
|
|
1171
1145
|
pulse_wave_velocity_meters_per_second?: number | undefined;
|
|
@@ -1225,8 +1199,34 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1225
1199
|
temperature_celsius?: number | undefined;
|
|
1226
1200
|
}[] | undefined;
|
|
1227
1201
|
} | undefined;
|
|
1228
|
-
|
|
1202
|
+
glucose_data?: {
|
|
1203
|
+
blood_glucose_samples?: {
|
|
1204
|
+
timestamp?: string | undefined;
|
|
1205
|
+
blood_glucose_mg_per_dL?: number | undefined;
|
|
1206
|
+
glucose_level_flag?: number | undefined;
|
|
1207
|
+
trend_arrow?: number | undefined;
|
|
1208
|
+
}[] | undefined;
|
|
1209
|
+
detailed_blood_glucose_samples?: {
|
|
1210
|
+
timestamp?: string | undefined;
|
|
1211
|
+
blood_glucose_mg_per_dL?: number | undefined;
|
|
1212
|
+
glucose_level_flag?: number | undefined;
|
|
1213
|
+
trend_arrow?: number | undefined;
|
|
1214
|
+
}[] | undefined;
|
|
1215
|
+
daily_patterns?: {
|
|
1216
|
+
time_from_midnight?: number | undefined;
|
|
1217
|
+
percentile_5?: number | undefined;
|
|
1218
|
+
percentile_25?: number | undefined;
|
|
1219
|
+
percentile_50?: number | undefined;
|
|
1220
|
+
percentile_75?: number | undefined;
|
|
1221
|
+
percentile_95?: number | undefined;
|
|
1222
|
+
}[] | undefined;
|
|
1223
|
+
sensor_usage?: number | undefined;
|
|
1224
|
+
day_avg_blood_glucose_mg_per_dL?: number | undefined;
|
|
1225
|
+
time_in_range?: number | undefined;
|
|
1226
|
+
gmi?: number | undefined;
|
|
1227
|
+
} | undefined;
|
|
1229
1228
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
1229
|
+
userId: string;
|
|
1230
1230
|
metadata: {
|
|
1231
1231
|
timestamp_localization?: number | undefined;
|
|
1232
1232
|
start_time: string;
|
|
@@ -1316,23 +1316,20 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1316
1316
|
software_version: import("convex/values").VString<string | undefined, "optional">;
|
|
1317
1317
|
}, "optional", "name" | "manufacturer" | "serial_number" | "software_version" | "hardware_version" | "last_upload_date" | "activation_timestamp" | "data_provided" | "other_devices" | "sensor_state">;
|
|
1318
1318
|
heart_data: import("convex/values").VObject<{
|
|
1319
|
+
afib_classification_samples?: {
|
|
1320
|
+
timestamp?: string | undefined;
|
|
1321
|
+
afib_classification?: number | undefined;
|
|
1322
|
+
}[] | undefined;
|
|
1323
|
+
ecg_signal?: {
|
|
1324
|
+
avg_hr_bpm?: number | undefined;
|
|
1325
|
+
start_timestamp?: string | undefined;
|
|
1326
|
+
afib_classification?: number | undefined;
|
|
1327
|
+
raw_signal?: {
|
|
1328
|
+
timestamp?: string | undefined;
|
|
1329
|
+
potential_uV?: number | undefined;
|
|
1330
|
+
}[] | undefined;
|
|
1331
|
+
}[] | undefined;
|
|
1319
1332
|
heart_rate_data?: {
|
|
1320
|
-
summary?: {
|
|
1321
|
-
avg_hr_bpm?: number | undefined;
|
|
1322
|
-
avg_hrv_rmssd?: number | undefined;
|
|
1323
|
-
avg_hrv_sdnn?: number | undefined;
|
|
1324
|
-
hr_zone_data?: {
|
|
1325
|
-
zone?: number | undefined;
|
|
1326
|
-
start_percentage?: number | undefined;
|
|
1327
|
-
end_percentage?: number | undefined;
|
|
1328
|
-
name?: string | undefined;
|
|
1329
|
-
duration_seconds?: number | undefined;
|
|
1330
|
-
}[] | undefined;
|
|
1331
|
-
max_hr_bpm?: number | undefined;
|
|
1332
|
-
min_hr_bpm?: number | undefined;
|
|
1333
|
-
resting_hr_bpm?: number | undefined;
|
|
1334
|
-
user_max_hr_bpm?: number | undefined;
|
|
1335
|
-
} | undefined;
|
|
1336
1333
|
detailed?: {
|
|
1337
1334
|
hr_samples?: {
|
|
1338
1335
|
timestamp?: string | undefined;
|
|
@@ -1349,20 +1346,23 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1349
1346
|
hrv_sdnn?: number | undefined;
|
|
1350
1347
|
}[] | undefined;
|
|
1351
1348
|
} | undefined;
|
|
1349
|
+
summary?: {
|
|
1350
|
+
avg_hr_bpm?: number | undefined;
|
|
1351
|
+
avg_hrv_rmssd?: number | undefined;
|
|
1352
|
+
avg_hrv_sdnn?: number | undefined;
|
|
1353
|
+
hr_zone_data?: {
|
|
1354
|
+
zone?: number | undefined;
|
|
1355
|
+
start_percentage?: number | undefined;
|
|
1356
|
+
end_percentage?: number | undefined;
|
|
1357
|
+
name?: string | undefined;
|
|
1358
|
+
duration_seconds?: number | undefined;
|
|
1359
|
+
}[] | undefined;
|
|
1360
|
+
max_hr_bpm?: number | undefined;
|
|
1361
|
+
min_hr_bpm?: number | undefined;
|
|
1362
|
+
resting_hr_bpm?: number | undefined;
|
|
1363
|
+
user_max_hr_bpm?: number | undefined;
|
|
1364
|
+
} | undefined;
|
|
1352
1365
|
} | undefined;
|
|
1353
|
-
afib_classification_samples?: {
|
|
1354
|
-
timestamp?: string | undefined;
|
|
1355
|
-
afib_classification?: number | undefined;
|
|
1356
|
-
}[] | undefined;
|
|
1357
|
-
ecg_signal?: {
|
|
1358
|
-
avg_hr_bpm?: number | undefined;
|
|
1359
|
-
start_timestamp?: string | undefined;
|
|
1360
|
-
afib_classification?: number | undefined;
|
|
1361
|
-
raw_signal?: {
|
|
1362
|
-
timestamp?: string | undefined;
|
|
1363
|
-
potential_uV?: number | undefined;
|
|
1364
|
-
}[] | undefined;
|
|
1365
|
-
}[] | undefined;
|
|
1366
1366
|
pulse_wave_velocity_samples?: {
|
|
1367
1367
|
timestamp?: string | undefined;
|
|
1368
1368
|
pulse_wave_velocity_meters_per_second?: number | undefined;
|
|
@@ -1415,22 +1415,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1415
1415
|
}, "required", "timestamp" | "potential_uV">, "optional">;
|
|
1416
1416
|
}, "required", "avg_hr_bpm" | "start_timestamp" | "afib_classification" | "raw_signal">, "optional">;
|
|
1417
1417
|
heart_rate_data: import("convex/values").VObject<{
|
|
1418
|
-
summary?: {
|
|
1419
|
-
avg_hr_bpm?: number | undefined;
|
|
1420
|
-
avg_hrv_rmssd?: number | undefined;
|
|
1421
|
-
avg_hrv_sdnn?: number | undefined;
|
|
1422
|
-
hr_zone_data?: {
|
|
1423
|
-
zone?: number | undefined;
|
|
1424
|
-
start_percentage?: number | undefined;
|
|
1425
|
-
end_percentage?: number | undefined;
|
|
1426
|
-
name?: string | undefined;
|
|
1427
|
-
duration_seconds?: number | undefined;
|
|
1428
|
-
}[] | undefined;
|
|
1429
|
-
max_hr_bpm?: number | undefined;
|
|
1430
|
-
min_hr_bpm?: number | undefined;
|
|
1431
|
-
resting_hr_bpm?: number | undefined;
|
|
1432
|
-
user_max_hr_bpm?: number | undefined;
|
|
1433
|
-
} | undefined;
|
|
1434
1418
|
detailed?: {
|
|
1435
1419
|
hr_samples?: {
|
|
1436
1420
|
timestamp?: string | undefined;
|
|
@@ -1447,6 +1431,22 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1447
1431
|
hrv_sdnn?: number | undefined;
|
|
1448
1432
|
}[] | undefined;
|
|
1449
1433
|
} | undefined;
|
|
1434
|
+
summary?: {
|
|
1435
|
+
avg_hr_bpm?: number | undefined;
|
|
1436
|
+
avg_hrv_rmssd?: number | undefined;
|
|
1437
|
+
avg_hrv_sdnn?: number | undefined;
|
|
1438
|
+
hr_zone_data?: {
|
|
1439
|
+
zone?: number | undefined;
|
|
1440
|
+
start_percentage?: number | undefined;
|
|
1441
|
+
end_percentage?: number | undefined;
|
|
1442
|
+
name?: string | undefined;
|
|
1443
|
+
duration_seconds?: number | undefined;
|
|
1444
|
+
}[] | undefined;
|
|
1445
|
+
max_hr_bpm?: number | undefined;
|
|
1446
|
+
min_hr_bpm?: number | undefined;
|
|
1447
|
+
resting_hr_bpm?: number | undefined;
|
|
1448
|
+
user_max_hr_bpm?: number | undefined;
|
|
1449
|
+
} | undefined;
|
|
1450
1450
|
} | undefined, {
|
|
1451
1451
|
detailed: import("convex/values").VObject<{
|
|
1452
1452
|
hr_samples?: {
|
|
@@ -1544,7 +1544,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1544
1544
|
resting_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1545
1545
|
user_max_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1546
1546
|
}, "optional", "avg_hr_bpm" | "avg_hrv_rmssd" | "avg_hrv_sdnn" | "hr_zone_data" | "max_hr_bpm" | "min_hr_bpm" | "resting_hr_bpm" | "user_max_hr_bpm">;
|
|
1547
|
-
}, "optional", "
|
|
1547
|
+
}, "optional", "detailed" | "summary" | "detailed.hr_samples" | "detailed.hrv_samples_rmssd" | "detailed.hrv_samples_sdnn" | "summary.avg_hr_bpm" | "summary.avg_hrv_rmssd" | "summary.avg_hrv_sdnn" | "summary.hr_zone_data" | "summary.max_hr_bpm" | "summary.min_hr_bpm" | "summary.resting_hr_bpm" | "summary.user_max_hr_bpm">;
|
|
1548
1548
|
pulse_wave_velocity_samples: import("convex/values").VArray<{
|
|
1549
1549
|
timestamp?: string | undefined;
|
|
1550
1550
|
pulse_wave_velocity_meters_per_second?: number | undefined;
|
|
@@ -1568,7 +1568,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1568
1568
|
rr_interval_ms: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1569
1569
|
hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1570
1570
|
}, "required", "timestamp" | "rr_interval_ms" | "hr_bpm">, "optional">;
|
|
1571
|
-
}, "optional", "
|
|
1571
|
+
}, "optional", "afib_classification_samples" | "ecg_signal" | "heart_rate_data" | "pulse_wave_velocity_samples" | "rr_interval_samples" | "heart_rate_data.detailed" | "heart_rate_data.summary" | "heart_rate_data.detailed.hr_samples" | "heart_rate_data.detailed.hrv_samples_rmssd" | "heart_rate_data.detailed.hrv_samples_sdnn" | "heart_rate_data.summary.avg_hr_bpm" | "heart_rate_data.summary.avg_hrv_rmssd" | "heart_rate_data.summary.avg_hrv_sdnn" | "heart_rate_data.summary.hr_zone_data" | "heart_rate_data.summary.max_hr_bpm" | "heart_rate_data.summary.min_hr_bpm" | "heart_rate_data.summary.resting_hr_bpm" | "heart_rate_data.summary.user_max_hr_bpm">;
|
|
1572
1572
|
hydration_data: import("convex/values").VObject<{
|
|
1573
1573
|
day_total_water_consumption_ml?: number | undefined;
|
|
1574
1574
|
hydration_amount_samples?: {
|
|
@@ -1864,23 +1864,46 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1864
1864
|
time_in_range: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1865
1865
|
gmi: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1866
1866
|
}, "optional", "blood_glucose_samples" | "detailed_blood_glucose_samples" | "daily_patterns" | "sensor_usage" | "day_avg_blood_glucose_mg_per_dL" | "time_in_range" | "gmi">;
|
|
1867
|
-
}, "required", "
|
|
1867
|
+
}, "required", "connectionId" | "userId" | "device_data" | "metadata" | "oxygen_data" | "blood_pressure_data" | "heart_data" | "hydration_data" | "ketone_data" | "measurements_data" | "temperature_data" | "glucose_data" | "device_data.name" | "device_data.manufacturer" | "device_data.serial_number" | "device_data.software_version" | "device_data.hardware_version" | "device_data.last_upload_date" | "device_data.activation_timestamp" | "device_data.data_provided" | "device_data.other_devices" | "device_data.sensor_state" | "metadata.start_time" | "metadata.end_time" | "metadata.timestamp_localization" | "oxygen_data.vo2max_ml_per_min_per_kg" | "oxygen_data.avg_saturation_percentage" | "oxygen_data.saturation_samples" | "oxygen_data.vo2_samples" | "blood_pressure_data.blood_pressure_samples" | "heart_data.afib_classification_samples" | "heart_data.ecg_signal" | "heart_data.heart_rate_data" | "heart_data.pulse_wave_velocity_samples" | "heart_data.rr_interval_samples" | "heart_data.heart_rate_data.detailed" | "heart_data.heart_rate_data.summary" | "heart_data.heart_rate_data.detailed.hr_samples" | "heart_data.heart_rate_data.detailed.hrv_samples_rmssd" | "heart_data.heart_rate_data.detailed.hrv_samples_sdnn" | "heart_data.heart_rate_data.summary.avg_hr_bpm" | "heart_data.heart_rate_data.summary.avg_hrv_rmssd" | "heart_data.heart_rate_data.summary.avg_hrv_sdnn" | "heart_data.heart_rate_data.summary.hr_zone_data" | "heart_data.heart_rate_data.summary.max_hr_bpm" | "heart_data.heart_rate_data.summary.min_hr_bpm" | "heart_data.heart_rate_data.summary.resting_hr_bpm" | "heart_data.heart_rate_data.summary.user_max_hr_bpm" | "hydration_data.day_total_water_consumption_ml" | "hydration_data.hydration_amount_samples" | "ketone_data.ketone_samples" | "measurements_data.measurements" | "temperature_data.ambient_temperature_samples" | "temperature_data.body_temperature_samples" | "temperature_data.skin_temperature_samples" | "glucose_data.blood_glucose_samples" | "glucose_data.detailed_blood_glucose_samples" | "glucose_data.daily_patterns" | "glucose_data.sensor_usage" | "glucose_data.day_avg_blood_glucose_mg_per_dL" | "glucose_data.time_in_range" | "glucose_data.gmi">, {
|
|
1868
1868
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
1869
1869
|
by_userId: ["userId", "_creationTime"];
|
|
1870
1870
|
by_userId_startTime: ["userId", "metadata.start_time", "_creationTime"];
|
|
1871
1871
|
by_connectionId_timeRange: ["connectionId", "metadata.start_time", "metadata.end_time", "_creationTime"];
|
|
1872
1872
|
}, {}, {}>;
|
|
1873
1873
|
daily: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1874
|
+
heart_rate_data?: {
|
|
1875
|
+
detailed?: {
|
|
1876
|
+
hr_samples?: {
|
|
1877
|
+
timestamp?: string | undefined;
|
|
1878
|
+
bpm?: number | undefined;
|
|
1879
|
+
timer_duration_seconds?: number | undefined;
|
|
1880
|
+
context?: number | undefined;
|
|
1881
|
+
}[] | undefined;
|
|
1882
|
+
hrv_samples_rmssd?: {
|
|
1883
|
+
timestamp?: string | undefined;
|
|
1884
|
+
hrv_rmssd?: number | undefined;
|
|
1885
|
+
}[] | undefined;
|
|
1886
|
+
hrv_samples_sdnn?: {
|
|
1887
|
+
timestamp?: string | undefined;
|
|
1888
|
+
hrv_sdnn?: number | undefined;
|
|
1889
|
+
}[] | undefined;
|
|
1890
|
+
} | undefined;
|
|
1891
|
+
summary?: {
|
|
1892
|
+
avg_hr_bpm?: number | undefined;
|
|
1893
|
+
avg_hrv_rmssd?: number | undefined;
|
|
1894
|
+
avg_hrv_sdnn?: number | undefined;
|
|
1895
|
+
hr_zone_data?: {
|
|
1896
|
+
zone?: number | undefined;
|
|
1897
|
+
start_percentage?: number | undefined;
|
|
1898
|
+
end_percentage?: number | undefined;
|
|
1899
|
+
name?: string | undefined;
|
|
1900
|
+
duration_seconds?: number | undefined;
|
|
1901
|
+
}[] | undefined;
|
|
1902
|
+
max_hr_bpm?: number | undefined;
|
|
1903
|
+
min_hr_bpm?: number | undefined;
|
|
1904
|
+
resting_hr_bpm?: number | undefined;
|
|
1905
|
+
user_max_hr_bpm?: number | undefined;
|
|
1906
|
+
} | undefined;
|
|
1884
1907
|
} | undefined;
|
|
1885
1908
|
active_durations_data?: {
|
|
1886
1909
|
activity_levels_samples?: {
|
|
@@ -1997,39 +2020,16 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1997
2020
|
pool_length_meters?: number | undefined;
|
|
1998
2021
|
} | undefined;
|
|
1999
2022
|
} | undefined;
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
duration_seconds?: number | undefined;
|
|
2011
|
-
}[] | undefined;
|
|
2012
|
-
max_hr_bpm?: number | undefined;
|
|
2013
|
-
min_hr_bpm?: number | undefined;
|
|
2014
|
-
resting_hr_bpm?: number | undefined;
|
|
2015
|
-
user_max_hr_bpm?: number | undefined;
|
|
2016
|
-
} | undefined;
|
|
2017
|
-
detailed?: {
|
|
2018
|
-
hr_samples?: {
|
|
2019
|
-
timestamp?: string | undefined;
|
|
2020
|
-
bpm?: number | undefined;
|
|
2021
|
-
timer_duration_seconds?: number | undefined;
|
|
2022
|
-
context?: number | undefined;
|
|
2023
|
-
}[] | undefined;
|
|
2024
|
-
hrv_samples_rmssd?: {
|
|
2025
|
-
timestamp?: string | undefined;
|
|
2026
|
-
hrv_rmssd?: number | undefined;
|
|
2027
|
-
}[] | undefined;
|
|
2028
|
-
hrv_samples_sdnn?: {
|
|
2029
|
-
timestamp?: string | undefined;
|
|
2030
|
-
hrv_sdnn?: number | undefined;
|
|
2031
|
-
}[] | undefined;
|
|
2032
|
-
} | undefined;
|
|
2023
|
+
MET_data?: {
|
|
2024
|
+
MET_samples?: {
|
|
2025
|
+
timestamp?: string | undefined;
|
|
2026
|
+
level?: number | undefined;
|
|
2027
|
+
}[] | undefined;
|
|
2028
|
+
avg_level?: number | undefined;
|
|
2029
|
+
num_high_intensity_minutes?: number | undefined;
|
|
2030
|
+
num_inactive_minutes?: number | undefined;
|
|
2031
|
+
num_low_intensity_minutes?: number | undefined;
|
|
2032
|
+
num_moderate_intensity_minutes?: number | undefined;
|
|
2033
2033
|
} | undefined;
|
|
2034
2034
|
oxygen_data?: {
|
|
2035
2035
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
@@ -2079,8 +2079,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2079
2079
|
notes: string;
|
|
2080
2080
|
}[] | undefined;
|
|
2081
2081
|
} | undefined;
|
|
2082
|
-
userId: string;
|
|
2083
2082
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
2083
|
+
userId: string;
|
|
2084
2084
|
metadata: {
|
|
2085
2085
|
timestamp_localization?: number | undefined;
|
|
2086
2086
|
start_time: string;
|
|
@@ -2442,22 +2442,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2442
2442
|
}, "optional", "num_laps" | "num_strokes" | "pool_length_meters">;
|
|
2443
2443
|
}, "optional", "distance_meters" | "steps" | "floors_climbed" | "detailed" | "elevation" | "swimming" | "elevation.avg_meters" | "elevation.gain_actual_meters" | "elevation.gain_planned_meters" | "elevation.loss_actual_meters" | "elevation.max_meters" | "elevation.min_meters" | "swimming.num_laps" | "swimming.num_strokes" | "swimming.pool_length_meters" | "detailed.distance_samples" | "detailed.elevation_samples" | "detailed.floors_climbed_samples" | "detailed.step_samples">;
|
|
2444
2444
|
heart_rate_data: import("convex/values").VObject<{
|
|
2445
|
-
summary?: {
|
|
2446
|
-
avg_hr_bpm?: number | undefined;
|
|
2447
|
-
avg_hrv_rmssd?: number | undefined;
|
|
2448
|
-
avg_hrv_sdnn?: number | undefined;
|
|
2449
|
-
hr_zone_data?: {
|
|
2450
|
-
zone?: number | undefined;
|
|
2451
|
-
start_percentage?: number | undefined;
|
|
2452
|
-
end_percentage?: number | undefined;
|
|
2453
|
-
name?: string | undefined;
|
|
2454
|
-
duration_seconds?: number | undefined;
|
|
2455
|
-
}[] | undefined;
|
|
2456
|
-
max_hr_bpm?: number | undefined;
|
|
2457
|
-
min_hr_bpm?: number | undefined;
|
|
2458
|
-
resting_hr_bpm?: number | undefined;
|
|
2459
|
-
user_max_hr_bpm?: number | undefined;
|
|
2460
|
-
} | undefined;
|
|
2461
2445
|
detailed?: {
|
|
2462
2446
|
hr_samples?: {
|
|
2463
2447
|
timestamp?: string | undefined;
|
|
@@ -2474,6 +2458,22 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2474
2458
|
hrv_sdnn?: number | undefined;
|
|
2475
2459
|
}[] | undefined;
|
|
2476
2460
|
} | undefined;
|
|
2461
|
+
summary?: {
|
|
2462
|
+
avg_hr_bpm?: number | undefined;
|
|
2463
|
+
avg_hrv_rmssd?: number | undefined;
|
|
2464
|
+
avg_hrv_sdnn?: number | undefined;
|
|
2465
|
+
hr_zone_data?: {
|
|
2466
|
+
zone?: number | undefined;
|
|
2467
|
+
start_percentage?: number | undefined;
|
|
2468
|
+
end_percentage?: number | undefined;
|
|
2469
|
+
name?: string | undefined;
|
|
2470
|
+
duration_seconds?: number | undefined;
|
|
2471
|
+
}[] | undefined;
|
|
2472
|
+
max_hr_bpm?: number | undefined;
|
|
2473
|
+
min_hr_bpm?: number | undefined;
|
|
2474
|
+
resting_hr_bpm?: number | undefined;
|
|
2475
|
+
user_max_hr_bpm?: number | undefined;
|
|
2476
|
+
} | undefined;
|
|
2477
2477
|
} | undefined, {
|
|
2478
2478
|
detailed: import("convex/values").VObject<{
|
|
2479
2479
|
hr_samples?: {
|
|
@@ -2571,7 +2571,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2571
2571
|
resting_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2572
2572
|
user_max_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2573
2573
|
}, "optional", "avg_hr_bpm" | "avg_hrv_rmssd" | "avg_hrv_sdnn" | "hr_zone_data" | "max_hr_bpm" | "min_hr_bpm" | "resting_hr_bpm" | "user_max_hr_bpm">;
|
|
2574
|
-
}, "optional", "
|
|
2574
|
+
}, "optional", "detailed" | "summary" | "detailed.hr_samples" | "detailed.hrv_samples_rmssd" | "detailed.hrv_samples_sdnn" | "summary.avg_hr_bpm" | "summary.avg_hrv_rmssd" | "summary.avg_hrv_sdnn" | "summary.hr_zone_data" | "summary.max_hr_bpm" | "summary.min_hr_bpm" | "summary.resting_hr_bpm" | "summary.user_max_hr_bpm">;
|
|
2575
2575
|
MET_data: import("convex/values").VObject<{
|
|
2576
2576
|
MET_samples?: {
|
|
2577
2577
|
timestamp?: string | undefined;
|
|
@@ -2735,13 +2735,47 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2735
2735
|
notes: import("convex/values").VString<string, "required">;
|
|
2736
2736
|
}, "required", "timestamp" | "tag_name" | "notes">, "optional">;
|
|
2737
2737
|
}, "optional", "tags">;
|
|
2738
|
-
}, "required", "
|
|
2738
|
+
}, "required", "heart_rate_data" | "heart_rate_data.detailed" | "heart_rate_data.summary" | "heart_rate_data.detailed.hr_samples" | "heart_rate_data.detailed.hrv_samples_rmssd" | "heart_rate_data.detailed.hrv_samples_sdnn" | "heart_rate_data.summary.avg_hr_bpm" | "heart_rate_data.summary.avg_hrv_rmssd" | "heart_rate_data.summary.avg_hrv_sdnn" | "heart_rate_data.summary.hr_zone_data" | "heart_rate_data.summary.max_hr_bpm" | "heart_rate_data.summary.min_hr_bpm" | "heart_rate_data.summary.resting_hr_bpm" | "heart_rate_data.summary.user_max_hr_bpm" | "connectionId" | "userId" | "active_durations_data" | "calories_data" | "data_enrichment" | "device_data" | "distance_data" | "MET_data" | "metadata" | "oxygen_data" | "strain_data" | "scores" | "stress_data" | "tag_data" | "active_durations_data.activity_levels_samples" | "active_durations_data.activity_seconds" | "active_durations_data.inactivity_seconds" | "active_durations_data.low_intensity_seconds" | "active_durations_data.moderate_intensity_seconds" | "active_durations_data.num_continuous_inactive_periods" | "active_durations_data.rest_seconds" | "active_durations_data.standing_hours_count" | "active_durations_data.standing_seconds" | "active_durations_data.vigorous_intensity_seconds" | "calories_data.BMR_calories" | "calories_data.calorie_samples" | "calories_data.net_activity_calories" | "calories_data.net_intake_calories" | "calories_data.total_burned_calories" | "device_data.name" | "device_data.manufacturer" | "device_data.serial_number" | "device_data.software_version" | "device_data.hardware_version" | "device_data.last_upload_date" | "device_data.activation_timestamp" | "device_data.data_provided" | "device_data.other_devices" | "device_data.sensor_state" | "distance_data.detailed" | "distance_data.detailed.distance_samples" | "distance_data.detailed.elevation_samples" | "distance_data.detailed.floors_climbed_samples" | "distance_data.detailed.step_samples" | "MET_data.MET_samples" | "MET_data.avg_level" | "MET_data.num_high_intensity_minutes" | "MET_data.num_inactive_minutes" | "MET_data.num_low_intensity_minutes" | "MET_data.num_moderate_intensity_minutes" | "metadata.start_time" | "metadata.end_time" | "metadata.timestamp_localization" | "metadata.upload_type" | "oxygen_data.vo2max_ml_per_min_per_kg" | "oxygen_data.avg_saturation_percentage" | "oxygen_data.saturation_samples" | "oxygen_data.vo2_samples" | "strain_data.strain_level" | "data_enrichment.start_time" | "data_enrichment.cardiovascular_contributors" | "data_enrichment.cardiovascular_score" | "data_enrichment.immune_contributors" | "data_enrichment.immune_index" | "data_enrichment.readiness_contributors" | "data_enrichment.readiness_score" | "data_enrichment.respiratory_contributors" | "data_enrichment.respiratory_score" | "data_enrichment.stress_contributors" | "data_enrichment.total_stress_score" | "distance_data.distance_meters" | "distance_data.steps" | "distance_data.floors_climbed" | "distance_data.elevation" | "distance_data.swimming" | "distance_data.elevation.avg_meters" | "distance_data.elevation.gain_actual_meters" | "distance_data.elevation.gain_planned_meters" | "distance_data.elevation.loss_actual_meters" | "distance_data.elevation.max_meters" | "distance_data.elevation.min_meters" | "distance_data.swimming.num_laps" | "distance_data.swimming.num_strokes" | "distance_data.swimming.pool_length_meters" | "scores.activity" | "scores.recovery" | "scores.sleep" | "scores.biological_age" | "stress_data.activity_stress_duration_seconds" | "stress_data.avg_stress_level" | "stress_data.body_battery_samples" | "stress_data.high_stress_duration_seconds" | "stress_data.low_stress_duration_seconds" | "stress_data.max_stress_level" | "stress_data.medium_stress_duration_seconds" | "stress_data.rest_stress_duration_seconds" | "stress_data.samples" | "stress_data.stress_duration_seconds" | "stress_data.stress_rating" | "tag_data.tags">, {
|
|
2739
2739
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
2740
2740
|
by_userId: ["userId", "_creationTime"];
|
|
2741
2741
|
by_userId_startTime: ["userId", "metadata.start_time", "_creationTime"];
|
|
2742
2742
|
by_connectionId_timeRange: ["connectionId", "metadata.start_time", "metadata.end_time", "_creationTime"];
|
|
2743
2743
|
}, {}, {}>;
|
|
2744
2744
|
sleep: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2745
|
+
heart_rate_data?: {
|
|
2746
|
+
detailed?: {
|
|
2747
|
+
hr_samples?: {
|
|
2748
|
+
timestamp?: string | undefined;
|
|
2749
|
+
bpm?: number | undefined;
|
|
2750
|
+
timer_duration_seconds?: number | undefined;
|
|
2751
|
+
context?: number | undefined;
|
|
2752
|
+
}[] | undefined;
|
|
2753
|
+
hrv_samples_rmssd?: {
|
|
2754
|
+
timestamp?: string | undefined;
|
|
2755
|
+
hrv_rmssd?: number | undefined;
|
|
2756
|
+
}[] | undefined;
|
|
2757
|
+
hrv_samples_sdnn?: {
|
|
2758
|
+
timestamp?: string | undefined;
|
|
2759
|
+
hrv_sdnn?: number | undefined;
|
|
2760
|
+
}[] | undefined;
|
|
2761
|
+
} | undefined;
|
|
2762
|
+
summary?: {
|
|
2763
|
+
avg_hr_bpm?: number | undefined;
|
|
2764
|
+
avg_hrv_rmssd?: number | undefined;
|
|
2765
|
+
avg_hrv_sdnn?: number | undefined;
|
|
2766
|
+
hr_zone_data?: {
|
|
2767
|
+
zone?: number | undefined;
|
|
2768
|
+
start_percentage?: number | undefined;
|
|
2769
|
+
end_percentage?: number | undefined;
|
|
2770
|
+
name?: string | undefined;
|
|
2771
|
+
duration_seconds?: number | undefined;
|
|
2772
|
+
}[] | undefined;
|
|
2773
|
+
max_hr_bpm?: number | undefined;
|
|
2774
|
+
min_hr_bpm?: number | undefined;
|
|
2775
|
+
resting_hr_bpm?: number | undefined;
|
|
2776
|
+
user_max_hr_bpm?: number | undefined;
|
|
2777
|
+
} | undefined;
|
|
2778
|
+
} | undefined;
|
|
2745
2779
|
data_enrichment?: {
|
|
2746
2780
|
sleep_contributors?: {
|
|
2747
2781
|
contributor_name: string;
|
|
@@ -2770,40 +2804,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2770
2804
|
}[] | undefined;
|
|
2771
2805
|
sensor_state?: string | undefined;
|
|
2772
2806
|
} | undefined;
|
|
2773
|
-
heart_rate_data?: {
|
|
2774
|
-
summary?: {
|
|
2775
|
-
avg_hr_bpm?: number | undefined;
|
|
2776
|
-
avg_hrv_rmssd?: number | undefined;
|
|
2777
|
-
avg_hrv_sdnn?: number | undefined;
|
|
2778
|
-
hr_zone_data?: {
|
|
2779
|
-
zone?: number | undefined;
|
|
2780
|
-
start_percentage?: number | undefined;
|
|
2781
|
-
end_percentage?: number | undefined;
|
|
2782
|
-
name?: string | undefined;
|
|
2783
|
-
duration_seconds?: number | undefined;
|
|
2784
|
-
}[] | undefined;
|
|
2785
|
-
max_hr_bpm?: number | undefined;
|
|
2786
|
-
min_hr_bpm?: number | undefined;
|
|
2787
|
-
resting_hr_bpm?: number | undefined;
|
|
2788
|
-
user_max_hr_bpm?: number | undefined;
|
|
2789
|
-
} | undefined;
|
|
2790
|
-
detailed?: {
|
|
2791
|
-
hr_samples?: {
|
|
2792
|
-
timestamp?: string | undefined;
|
|
2793
|
-
bpm?: number | undefined;
|
|
2794
|
-
timer_duration_seconds?: number | undefined;
|
|
2795
|
-
context?: number | undefined;
|
|
2796
|
-
}[] | undefined;
|
|
2797
|
-
hrv_samples_rmssd?: {
|
|
2798
|
-
timestamp?: string | undefined;
|
|
2799
|
-
hrv_rmssd?: number | undefined;
|
|
2800
|
-
}[] | undefined;
|
|
2801
|
-
hrv_samples_sdnn?: {
|
|
2802
|
-
timestamp?: string | undefined;
|
|
2803
|
-
hrv_sdnn?: number | undefined;
|
|
2804
|
-
}[] | undefined;
|
|
2805
|
-
} | undefined;
|
|
2806
|
-
} | undefined;
|
|
2807
2807
|
temperature_data?: {
|
|
2808
2808
|
delta?: number | undefined;
|
|
2809
2809
|
} | undefined;
|
|
@@ -2875,8 +2875,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2875
2875
|
} | undefined;
|
|
2876
2876
|
sleep_efficiency?: number | undefined;
|
|
2877
2877
|
} | undefined;
|
|
2878
|
-
userId: string;
|
|
2879
2878
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
2879
|
+
userId: string;
|
|
2880
2880
|
metadata: {
|
|
2881
2881
|
summary_id?: string | undefined;
|
|
2882
2882
|
timestamp_localization?: number | undefined;
|
|
@@ -2967,22 +2967,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2967
2967
|
software_version: import("convex/values").VString<string | undefined, "optional">;
|
|
2968
2968
|
}, "optional", "name" | "manufacturer" | "serial_number" | "software_version" | "hardware_version" | "last_upload_date" | "activation_timestamp" | "data_provided" | "other_devices" | "sensor_state">;
|
|
2969
2969
|
heart_rate_data: import("convex/values").VObject<{
|
|
2970
|
-
summary?: {
|
|
2971
|
-
avg_hr_bpm?: number | undefined;
|
|
2972
|
-
avg_hrv_rmssd?: number | undefined;
|
|
2973
|
-
avg_hrv_sdnn?: number | undefined;
|
|
2974
|
-
hr_zone_data?: {
|
|
2975
|
-
zone?: number | undefined;
|
|
2976
|
-
start_percentage?: number | undefined;
|
|
2977
|
-
end_percentage?: number | undefined;
|
|
2978
|
-
name?: string | undefined;
|
|
2979
|
-
duration_seconds?: number | undefined;
|
|
2980
|
-
}[] | undefined;
|
|
2981
|
-
max_hr_bpm?: number | undefined;
|
|
2982
|
-
min_hr_bpm?: number | undefined;
|
|
2983
|
-
resting_hr_bpm?: number | undefined;
|
|
2984
|
-
user_max_hr_bpm?: number | undefined;
|
|
2985
|
-
} | undefined;
|
|
2986
2970
|
detailed?: {
|
|
2987
2971
|
hr_samples?: {
|
|
2988
2972
|
timestamp?: string | undefined;
|
|
@@ -2999,6 +2983,22 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2999
2983
|
hrv_sdnn?: number | undefined;
|
|
3000
2984
|
}[] | undefined;
|
|
3001
2985
|
} | undefined;
|
|
2986
|
+
summary?: {
|
|
2987
|
+
avg_hr_bpm?: number | undefined;
|
|
2988
|
+
avg_hrv_rmssd?: number | undefined;
|
|
2989
|
+
avg_hrv_sdnn?: number | undefined;
|
|
2990
|
+
hr_zone_data?: {
|
|
2991
|
+
zone?: number | undefined;
|
|
2992
|
+
start_percentage?: number | undefined;
|
|
2993
|
+
end_percentage?: number | undefined;
|
|
2994
|
+
name?: string | undefined;
|
|
2995
|
+
duration_seconds?: number | undefined;
|
|
2996
|
+
}[] | undefined;
|
|
2997
|
+
max_hr_bpm?: number | undefined;
|
|
2998
|
+
min_hr_bpm?: number | undefined;
|
|
2999
|
+
resting_hr_bpm?: number | undefined;
|
|
3000
|
+
user_max_hr_bpm?: number | undefined;
|
|
3001
|
+
} | undefined;
|
|
3002
3002
|
} | undefined, {
|
|
3003
3003
|
detailed: import("convex/values").VObject<{
|
|
3004
3004
|
hr_samples?: {
|
|
@@ -3096,7 +3096,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3096
3096
|
resting_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3097
3097
|
user_max_hr_bpm: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3098
3098
|
}, "optional", "avg_hr_bpm" | "avg_hrv_rmssd" | "avg_hrv_sdnn" | "hr_zone_data" | "max_hr_bpm" | "min_hr_bpm" | "resting_hr_bpm" | "user_max_hr_bpm">;
|
|
3099
|
-
}, "optional", "
|
|
3099
|
+
}, "optional", "detailed" | "summary" | "detailed.hr_samples" | "detailed.hrv_samples_rmssd" | "detailed.hrv_samples_sdnn" | "summary.avg_hr_bpm" | "summary.avg_hrv_rmssd" | "summary.avg_hrv_sdnn" | "summary.hr_zone_data" | "summary.max_hr_bpm" | "summary.min_hr_bpm" | "summary.resting_hr_bpm" | "summary.user_max_hr_bpm">;
|
|
3100
3100
|
metadata: import("convex/values").VObject<{
|
|
3101
3101
|
summary_id?: string | undefined;
|
|
3102
3102
|
timestamp_localization?: number | undefined;
|
|
@@ -3321,7 +3321,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3321
3321
|
} | undefined, {
|
|
3322
3322
|
delta: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3323
3323
|
}, "optional", "delta">;
|
|
3324
|
-
}, "required", "
|
|
3324
|
+
}, "required", "heart_rate_data" | "heart_rate_data.detailed" | "heart_rate_data.summary" | "heart_rate_data.detailed.hr_samples" | "heart_rate_data.detailed.hrv_samples_rmssd" | "heart_rate_data.detailed.hrv_samples_sdnn" | "heart_rate_data.summary.avg_hr_bpm" | "heart_rate_data.summary.avg_hrv_rmssd" | "heart_rate_data.summary.avg_hrv_sdnn" | "heart_rate_data.summary.hr_zone_data" | "heart_rate_data.summary.max_hr_bpm" | "heart_rate_data.summary.min_hr_bpm" | "heart_rate_data.summary.resting_hr_bpm" | "heart_rate_data.summary.user_max_hr_bpm" | "connectionId" | "userId" | "data_enrichment" | "device_data" | "metadata" | "temperature_data" | "scores" | "readiness_data" | "respiration_data" | "sleep_durations_data" | "device_data.name" | "device_data.manufacturer" | "device_data.serial_number" | "device_data.software_version" | "device_data.hardware_version" | "device_data.last_upload_date" | "device_data.activation_timestamp" | "device_data.data_provided" | "device_data.other_devices" | "device_data.sensor_state" | "metadata.start_time" | "metadata.end_time" | "metadata.summary_id" | "metadata.timestamp_localization" | "metadata.upload_type" | "scores.sleep" | "data_enrichment.sleep_contributors" | "data_enrichment.sleep_score" | "metadata.is_nap" | "temperature_data.delta" | "readiness_data.readiness" | "readiness_data.recovery_level" | "respiration_data.breaths_data" | "respiration_data.oxygen_saturation_data" | "respiration_data.snoring_data" | "respiration_data.breaths_data.start_time" | "respiration_data.breaths_data.end_time" | "respiration_data.breaths_data.samples" | "respiration_data.breaths_data.avg_breaths_per_min" | "respiration_data.breaths_data.max_breaths_per_min" | "respiration_data.breaths_data.min_breaths_per_min" | "respiration_data.breaths_data.on_demand_reading" | "respiration_data.oxygen_saturation_data.start_time" | "respiration_data.oxygen_saturation_data.end_time" | "respiration_data.oxygen_saturation_data.avg_saturation_percentage" | "respiration_data.oxygen_saturation_data.samples" | "respiration_data.snoring_data.start_time" | "respiration_data.snoring_data.end_time" | "respiration_data.snoring_data.samples" | "respiration_data.snoring_data.num_snoring_events" | "respiration_data.snoring_data.total_snoring_duration_seconds" | "sleep_durations_data.asleep" | "sleep_durations_data.awake" | "sleep_durations_data.hypnogram_samples" | "sleep_durations_data.other" | "sleep_durations_data.sleep_efficiency" | "sleep_durations_data.asleep.duration_asleep_state_seconds" | "sleep_durations_data.asleep.duration_deep_sleep_state_seconds" | "sleep_durations_data.asleep.duration_light_sleep_state_seconds" | "sleep_durations_data.asleep.duration_REM_sleep_state_seconds" | "sleep_durations_data.asleep.num_REM_events" | "sleep_durations_data.awake.duration_awake_state_seconds" | "sleep_durations_data.awake.duration_long_interruption_seconds" | "sleep_durations_data.awake.duration_short_interruption_seconds" | "sleep_durations_data.awake.num_out_of_bed_events" | "sleep_durations_data.awake.num_wakeup_events" | "sleep_durations_data.awake.sleep_latency_seconds" | "sleep_durations_data.awake.wake_up_latency_seconds" | "sleep_durations_data.other.duration_in_bed_seconds" | "sleep_durations_data.other.duration_unmeasurable_sleep_seconds">, {
|
|
3325
3325
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
3326
3326
|
by_userId: ["userId", "_creationTime"];
|
|
3327
3327
|
by_userId_startTime: ["userId", "metadata.start_time", "_creationTime"];
|
|
@@ -3344,8 +3344,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3344
3344
|
is_predicted_cycle?: string | undefined;
|
|
3345
3345
|
days_until_next_phase?: number | undefined;
|
|
3346
3346
|
} | undefined;
|
|
3347
|
-
userId: string;
|
|
3348
3347
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
3348
|
+
userId: string;
|
|
3349
3349
|
metadata: {
|
|
3350
3350
|
timestamp_localization?: number | undefined;
|
|
3351
3351
|
start_time: string;
|
|
@@ -3400,28 +3400,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3400
3400
|
is_predicted_cycle: import("convex/values").VString<string | undefined, "optional">;
|
|
3401
3401
|
days_until_next_phase: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3402
3402
|
}, "optional", "menstruation_flow" | "period_length_days" | "predicted_cycle_length_days" | "last_updated_time" | "day_in_cycle" | "length_of_current_phase_days" | "period_start_date" | "cycle_length_days" | "current_phase" | "is_predicted_cycle" | "days_until_next_phase">;
|
|
3403
|
-
}, "required", "
|
|
3403
|
+
}, "required", "connectionId" | "userId" | "metadata" | "menstruation_data" | "metadata.start_time" | "metadata.end_time" | "metadata.timestamp_localization" | "menstruation_data.menstruation_flow" | "menstruation_data.period_length_days" | "menstruation_data.predicted_cycle_length_days" | "menstruation_data.last_updated_time" | "menstruation_data.day_in_cycle" | "menstruation_data.length_of_current_phase_days" | "menstruation_data.period_start_date" | "menstruation_data.cycle_length_days" | "menstruation_data.current_phase" | "menstruation_data.is_predicted_cycle" | "menstruation_data.days_until_next_phase">, {
|
|
3404
3404
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
3405
3405
|
by_userId: ["userId", "_creationTime"];
|
|
3406
3406
|
by_userId_startTime: ["userId", "metadata.start_time", "_creationTime"];
|
|
3407
3407
|
}, {}, {}>;
|
|
3408
3408
|
nutrition: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
drink_volume?: number | undefined;
|
|
3412
|
-
drink_unit?: string | undefined;
|
|
3413
|
-
drink_name?: string | undefined;
|
|
3414
|
-
}[] | undefined;
|
|
3415
|
-
meals?: {
|
|
3416
|
-
id: string;
|
|
3417
|
-
type: number;
|
|
3418
|
-
timestamp: string;
|
|
3419
|
-
name: string;
|
|
3420
|
-
quantity: {
|
|
3421
|
-
unit: number;
|
|
3422
|
-
amount: number;
|
|
3423
|
-
};
|
|
3424
|
-
macros: {
|
|
3409
|
+
summary?: {
|
|
3410
|
+
macros?: {
|
|
3425
3411
|
calories?: number | undefined;
|
|
3426
3412
|
alcohol_g?: number | undefined;
|
|
3427
3413
|
carbohydrates_g?: number | undefined;
|
|
@@ -3434,8 +3420,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3434
3420
|
sodium_mg?: number | undefined;
|
|
3435
3421
|
sugar_g?: number | undefined;
|
|
3436
3422
|
trans_fat_g?: number | undefined;
|
|
3437
|
-
};
|
|
3438
|
-
micros
|
|
3423
|
+
} | undefined;
|
|
3424
|
+
micros?: {
|
|
3439
3425
|
biotin_mg?: number | undefined;
|
|
3440
3426
|
caffeine_mg?: number | undefined;
|
|
3441
3427
|
calcium_mg?: number | undefined;
|
|
@@ -3482,10 +3468,26 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3482
3468
|
omega3_g?: number | undefined;
|
|
3483
3469
|
omega6_g?: number | undefined;
|
|
3484
3470
|
starch_g?: number | undefined;
|
|
3485
|
-
};
|
|
3471
|
+
} | undefined;
|
|
3472
|
+
water_ml?: number | undefined;
|
|
3473
|
+
drink_ml?: number | undefined;
|
|
3474
|
+
} | undefined;
|
|
3475
|
+
drink_samples?: {
|
|
3476
|
+
timestamp?: string | undefined;
|
|
3477
|
+
drink_volume?: number | undefined;
|
|
3478
|
+
drink_unit?: string | undefined;
|
|
3479
|
+
drink_name?: string | undefined;
|
|
3486
3480
|
}[] | undefined;
|
|
3487
|
-
|
|
3488
|
-
|
|
3481
|
+
meals?: {
|
|
3482
|
+
id: string;
|
|
3483
|
+
type: number;
|
|
3484
|
+
timestamp: string;
|
|
3485
|
+
name: string;
|
|
3486
|
+
quantity: {
|
|
3487
|
+
unit: number;
|
|
3488
|
+
amount: number;
|
|
3489
|
+
};
|
|
3490
|
+
macros: {
|
|
3489
3491
|
calories?: number | undefined;
|
|
3490
3492
|
alcohol_g?: number | undefined;
|
|
3491
3493
|
carbohydrates_g?: number | undefined;
|
|
@@ -3498,8 +3500,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3498
3500
|
sodium_mg?: number | undefined;
|
|
3499
3501
|
sugar_g?: number | undefined;
|
|
3500
3502
|
trans_fat_g?: number | undefined;
|
|
3501
|
-
}
|
|
3502
|
-
micros
|
|
3503
|
+
};
|
|
3504
|
+
micros: {
|
|
3503
3505
|
biotin_mg?: number | undefined;
|
|
3504
3506
|
caffeine_mg?: number | undefined;
|
|
3505
3507
|
calcium_mg?: number | undefined;
|
|
@@ -3546,12 +3548,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3546
3548
|
omega3_g?: number | undefined;
|
|
3547
3549
|
omega6_g?: number | undefined;
|
|
3548
3550
|
starch_g?: number | undefined;
|
|
3549
|
-
}
|
|
3550
|
-
|
|
3551
|
-
drink_ml?: number | undefined;
|
|
3552
|
-
} | undefined;
|
|
3553
|
-
userId: string;
|
|
3551
|
+
};
|
|
3552
|
+
}[] | undefined;
|
|
3554
3553
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
3554
|
+
userId: string;
|
|
3555
3555
|
metadata: {
|
|
3556
3556
|
timestamp_localization?: number | undefined;
|
|
3557
3557
|
start_time: string;
|
|
@@ -4053,7 +4053,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4053
4053
|
water_ml: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4054
4054
|
drink_ml: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4055
4055
|
}, "optional", "macros" | "micros" | "macros.calories" | "macros.alcohol_g" | "macros.carbohydrates_g" | "macros.cholesterol_mg" | "macros.fat_g" | "macros.fiber_g" | "macros.net_carbohydrates_g" | "macros.protein_g" | "macros.saturated_fat_g" | "macros.sodium_mg" | "macros.sugar_g" | "macros.trans_fat_g" | "micros.biotin_mg" | "micros.caffeine_mg" | "micros.calcium_mg" | "micros.chloride_mg" | "micros.chromium_mg" | "micros.copper_mg" | "micros.folate_mg" | "micros.folic_acid_mg" | "micros.iodine_mg" | "micros.iron_mg" | "micros.magnesium_mg" | "micros.manganese_mg" | "micros.molybdenum_mg" | "micros.niacin_mg" | "micros.pantothenic_acid_mg" | "micros.phosphorus_mg" | "micros.potassium_mg" | "micros.riboflavin_mg" | "micros.selenium_mg" | "micros.thiamin_mg" | "micros.vitamin_A_mg" | "micros.vitamin_B12_mg" | "micros.vitamin_B6_mg" | "micros.vitamin_C_mg" | "micros.vitamin_D_mg" | "micros.vitamin_D2_mg" | "micros.vitamin_D3_mg" | "micros.vitamin_E_mg" | "micros.vitamin_K_mg" | "micros.zinc_mg" | "micros.cystine_g" | "micros.histidine_g" | "micros.isoleucine_g" | "micros.leucine_g" | "micros.lysine_g" | "micros.methionine_g" | "micros.phenylalanine_g" | "micros.threonine_g" | "micros.tryptophan_g" | "micros.tyrosine_g" | "micros.valine_g" | "micros.monounsaturated_fat_g" | "micros.polyunsaturated_fat_g" | "micros.omega3_g" | "micros.omega6_g" | "micros.starch_g" | "water_ml" | "drink_ml">;
|
|
4056
|
-
}, "required", "
|
|
4056
|
+
}, "required", "summary" | "connectionId" | "userId" | "metadata" | "drink_samples" | "meals" | "metadata.start_time" | "metadata.end_time" | "metadata.timestamp_localization" | "summary.macros" | "summary.micros" | "summary.macros.calories" | "summary.macros.alcohol_g" | "summary.macros.carbohydrates_g" | "summary.macros.cholesterol_mg" | "summary.macros.fat_g" | "summary.macros.fiber_g" | "summary.macros.net_carbohydrates_g" | "summary.macros.protein_g" | "summary.macros.saturated_fat_g" | "summary.macros.sodium_mg" | "summary.macros.sugar_g" | "summary.macros.trans_fat_g" | "summary.micros.biotin_mg" | "summary.micros.caffeine_mg" | "summary.micros.calcium_mg" | "summary.micros.chloride_mg" | "summary.micros.chromium_mg" | "summary.micros.copper_mg" | "summary.micros.folate_mg" | "summary.micros.folic_acid_mg" | "summary.micros.iodine_mg" | "summary.micros.iron_mg" | "summary.micros.magnesium_mg" | "summary.micros.manganese_mg" | "summary.micros.molybdenum_mg" | "summary.micros.niacin_mg" | "summary.micros.pantothenic_acid_mg" | "summary.micros.phosphorus_mg" | "summary.micros.potassium_mg" | "summary.micros.riboflavin_mg" | "summary.micros.selenium_mg" | "summary.micros.thiamin_mg" | "summary.micros.vitamin_A_mg" | "summary.micros.vitamin_B12_mg" | "summary.micros.vitamin_B6_mg" | "summary.micros.vitamin_C_mg" | "summary.micros.vitamin_D_mg" | "summary.micros.vitamin_D2_mg" | "summary.micros.vitamin_D3_mg" | "summary.micros.vitamin_E_mg" | "summary.micros.vitamin_K_mg" | "summary.micros.zinc_mg" | "summary.micros.cystine_g" | "summary.micros.histidine_g" | "summary.micros.isoleucine_g" | "summary.micros.leucine_g" | "summary.micros.lysine_g" | "summary.micros.methionine_g" | "summary.micros.phenylalanine_g" | "summary.micros.threonine_g" | "summary.micros.tryptophan_g" | "summary.micros.tyrosine_g" | "summary.micros.valine_g" | "summary.micros.monounsaturated_fat_g" | "summary.micros.polyunsaturated_fat_g" | "summary.micros.omega3_g" | "summary.micros.omega6_g" | "summary.micros.starch_g" | "summary.water_ml" | "summary.drink_ml">, {
|
|
4057
4057
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
4058
4058
|
by_userId: ["userId", "_creationTime"];
|
|
4059
4059
|
by_userId_startTime: ["userId", "metadata.start_time", "_creationTime"];
|
|
@@ -4061,13 +4061,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4061
4061
|
}, {}, {}>;
|
|
4062
4062
|
plannedWorkouts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4063
4063
|
steps?: {
|
|
4064
|
-
order?: number | undefined;
|
|
4065
4064
|
type?: string | undefined;
|
|
4066
4065
|
name?: string | undefined;
|
|
4067
4066
|
steps?: any[] | undefined;
|
|
4068
4067
|
stroke_type?: string | undefined;
|
|
4069
4068
|
weight_kg?: number | undefined;
|
|
4070
4069
|
description?: string | undefined;
|
|
4070
|
+
order?: number | undefined;
|
|
4071
4071
|
intensity?: string | number | undefined;
|
|
4072
4072
|
durations?: {
|
|
4073
4073
|
calories?: number | undefined;
|
|
@@ -4113,16 +4113,16 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4113
4113
|
exercise_category?: string | undefined;
|
|
4114
4114
|
exercise_name?: string | undefined;
|
|
4115
4115
|
}[] | undefined;
|
|
4116
|
-
userId: string;
|
|
4117
4116
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
4117
|
+
userId: string;
|
|
4118
4118
|
metadata: {
|
|
4119
|
-
provider?: string | undefined;
|
|
4120
4119
|
id?: string | undefined;
|
|
4121
4120
|
type?: string | undefined;
|
|
4122
4121
|
name?: string | undefined;
|
|
4123
4122
|
pool_length_meters?: number | undefined;
|
|
4124
4123
|
description?: string | undefined;
|
|
4125
4124
|
estimated_if?: number | undefined;
|
|
4125
|
+
provider?: string | undefined;
|
|
4126
4126
|
estimated_distance_meters?: number | undefined;
|
|
4127
4127
|
estimated_elevation_gain_meters?: number | undefined;
|
|
4128
4128
|
estimated_energy_kj?: number | undefined;
|
|
@@ -4139,13 +4139,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4139
4139
|
connectionId: import("convex/values").VId<import("convex/values").GenericId<"connections">, "required">;
|
|
4140
4140
|
userId: import("convex/values").VString<string, "required">;
|
|
4141
4141
|
steps: import("convex/values").VArray<{
|
|
4142
|
-
order?: number | undefined;
|
|
4143
4142
|
type?: string | undefined;
|
|
4144
4143
|
name?: string | undefined;
|
|
4145
4144
|
steps?: any[] | undefined;
|
|
4146
4145
|
stroke_type?: string | undefined;
|
|
4147
4146
|
weight_kg?: number | undefined;
|
|
4148
4147
|
description?: string | undefined;
|
|
4148
|
+
order?: number | undefined;
|
|
4149
4149
|
intensity?: string | number | undefined;
|
|
4150
4150
|
durations?: {
|
|
4151
4151
|
calories?: number | undefined;
|
|
@@ -4191,13 +4191,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4191
4191
|
exercise_category?: string | undefined;
|
|
4192
4192
|
exercise_name?: string | undefined;
|
|
4193
4193
|
}[] | undefined, import("convex/values").VObject<{
|
|
4194
|
-
order?: number | undefined;
|
|
4195
4194
|
type?: string | undefined;
|
|
4196
4195
|
name?: string | undefined;
|
|
4197
4196
|
steps?: any[] | undefined;
|
|
4198
4197
|
stroke_type?: string | undefined;
|
|
4199
4198
|
weight_kg?: number | undefined;
|
|
4200
4199
|
description?: string | undefined;
|
|
4200
|
+
order?: number | undefined;
|
|
4201
4201
|
intensity?: string | number | undefined;
|
|
4202
4202
|
durations?: {
|
|
4203
4203
|
calories?: number | undefined;
|
|
@@ -4370,15 +4370,15 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4370
4370
|
exercise_name: import("convex/values").VString<string | undefined, "optional">;
|
|
4371
4371
|
weight_kg: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4372
4372
|
steps: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
4373
|
-
}, "required", "
|
|
4373
|
+
}, "required", "type" | "name" | "steps" | "stroke_type" | "weight_kg" | "description" | "order" | "intensity" | "durations" | "targets" | "equipment_type" | "exercise_category" | "exercise_name">, "optional">;
|
|
4374
4374
|
metadata: import("convex/values").VObject<{
|
|
4375
|
-
provider?: string | undefined;
|
|
4376
4375
|
id?: string | undefined;
|
|
4377
4376
|
type?: string | undefined;
|
|
4378
4377
|
name?: string | undefined;
|
|
4379
4378
|
pool_length_meters?: number | undefined;
|
|
4380
4379
|
description?: string | undefined;
|
|
4381
4380
|
estimated_if?: number | undefined;
|
|
4381
|
+
provider?: string | undefined;
|
|
4382
4382
|
estimated_distance_meters?: number | undefined;
|
|
4383
4383
|
estimated_elevation_gain_meters?: number | undefined;
|
|
4384
4384
|
estimated_energy_kj?: number | undefined;
|
|
@@ -4409,23 +4409,25 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
4409
4409
|
pool_length_meters: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4410
4410
|
estimated_calories: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4411
4411
|
estimated_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4412
|
-
}, "required", "
|
|
4413
|
-
}, "required", "
|
|
4412
|
+
}, "required", "id" | "type" | "name" | "pool_length_meters" | "description" | "estimated_if" | "provider" | "estimated_distance_meters" | "estimated_elevation_gain_meters" | "estimated_energy_kj" | "estimated_speed_meters_per_second" | "estimated_pace_minutes_per_kilometer" | "planned_date" | "created_date" | "estimated_tss" | "estimated_tscore" | "estimated_calories" | "estimated_duration_seconds">;
|
|
4413
|
+
}, "required", "steps" | "connectionId" | "userId" | "metadata" | "metadata.type" | "metadata.name" | "metadata.id" | "metadata.pool_length_meters" | "metadata.description" | "metadata.estimated_if" | "metadata.provider" | "metadata.estimated_distance_meters" | "metadata.estimated_elevation_gain_meters" | "metadata.estimated_energy_kj" | "metadata.estimated_speed_meters_per_second" | "metadata.estimated_pace_minutes_per_kilometer" | "metadata.planned_date" | "metadata.created_date" | "metadata.estimated_tss" | "metadata.estimated_tscore" | "metadata.estimated_calories" | "metadata.estimated_duration_seconds">, {
|
|
4414
4414
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
4415
4415
|
by_userId: ["userId", "_creationTime"];
|
|
4416
4416
|
by_userId_plannedDate: ["userId", "metadata.planned_date", "_creationTime"];
|
|
4417
4417
|
}, {}, {}>;
|
|
4418
4418
|
providerTokens: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4419
|
+
tokenSecret?: string | undefined;
|
|
4420
|
+
refreshToken?: string | undefined;
|
|
4421
|
+
expiresAt?: number | undefined;
|
|
4419
4422
|
connectionId: import("convex/values").GenericId<"connections">;
|
|
4420
4423
|
accessToken: string;
|
|
4421
|
-
refreshToken: string;
|
|
4422
|
-
expiresAt: number;
|
|
4423
4424
|
}, {
|
|
4424
4425
|
connectionId: import("convex/values").VId<import("convex/values").GenericId<"connections">, "required">;
|
|
4425
4426
|
accessToken: import("convex/values").VString<string, "required">;
|
|
4426
|
-
refreshToken: import("convex/values").VString<string, "
|
|
4427
|
-
|
|
4428
|
-
|
|
4427
|
+
refreshToken: import("convex/values").VString<string | undefined, "optional">;
|
|
4428
|
+
tokenSecret: import("convex/values").VString<string | undefined, "optional">;
|
|
4429
|
+
expiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4430
|
+
}, "required", "connectionId" | "tokenSecret" | "accessToken" | "refreshToken" | "expiresAt">, {
|
|
4429
4431
|
by_connectionId: ["connectionId", "_creationTime"];
|
|
4430
4432
|
}, {}, {}>;
|
|
4431
4433
|
}, true>;
|