@nativesquare/soma 0.7.3 → 0.8.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 +83 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +131 -0
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/component.d.ts +159 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/garmin.d.ts +190 -6
- package/dist/component/garmin.d.ts.map +1 -1
- package/dist/component/garmin.js +805 -25
- package/dist/component/garmin.js.map +1 -1
- package/dist/component/private.d.ts +18 -0
- package/dist/component/private.d.ts.map +1 -1
- package/dist/component/private.js +18 -0
- package/dist/component/private.js.map +1 -1
- package/dist/component/public.d.ts +88 -42
- package/dist/component/public.d.ts.map +1 -1
- package/dist/component/public.js +12 -2
- package/dist/component/public.js.map +1 -1
- package/dist/component/schema.d.ts +87 -32
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +2 -1
- package/dist/component/schema.js.map +1 -1
- package/dist/component/validators/connection.d.ts +1 -0
- package/dist/component/validators/connection.d.ts.map +1 -1
- package/dist/component/validators/connection.js +2 -0
- package/dist/component/validators/connection.js.map +1 -1
- package/dist/component/validators/daily.d.ts +40 -5
- package/dist/component/validators/daily.d.ts.map +1 -1
- package/dist/component/validators/daily.js +10 -1
- package/dist/component/validators/daily.js.map +1 -1
- package/dist/component/validators/enums.d.ts +1 -1
- package/dist/component/validators/plannedWorkout.d.ts +5 -1
- package/dist/component/validators/plannedWorkout.d.ts.map +1 -1
- package/dist/component/validators/plannedWorkout.js +4 -0
- package/dist/component/validators/plannedWorkout.js.map +1 -1
- package/dist/component/validators/sleep.d.ts +8 -8
- package/dist/garmin/activity.d.ts +7 -16
- package/dist/garmin/activity.d.ts.map +1 -1
- package/dist/garmin/activity.js +17 -23
- package/dist/garmin/activity.js.map +1 -1
- package/dist/garmin/bloodPressure.d.ts +28 -0
- package/dist/garmin/bloodPressure.d.ts.map +1 -0
- package/dist/garmin/bloodPressure.js +34 -0
- package/dist/garmin/bloodPressure.js.map +1 -0
- package/dist/garmin/body.js +1 -1
- package/dist/garmin/body.js.map +1 -1
- package/dist/garmin/client.d.ts +117 -17
- package/dist/garmin/client.d.ts.map +1 -1
- package/dist/garmin/client.js +337 -43
- package/dist/garmin/client.js.map +1 -1
- package/dist/garmin/daily.d.ts.map +1 -1
- package/dist/garmin/daily.js +3 -3
- package/dist/garmin/daily.js.map +1 -1
- package/dist/garmin/hrv.d.ts +30 -0
- package/dist/garmin/hrv.d.ts.map +1 -0
- package/dist/garmin/hrv.js +45 -0
- package/dist/garmin/hrv.js.map +1 -0
- package/dist/garmin/index.d.ts +16 -2
- package/dist/garmin/index.d.ts.map +1 -1
- package/dist/garmin/index.js +8 -1
- package/dist/garmin/index.js.map +1 -1
- package/dist/garmin/maps/activity-type.d.ts +1 -2
- package/dist/garmin/maps/activity-type.d.ts.map +1 -1
- package/dist/garmin/maps/activity-type.js +1 -0
- package/dist/garmin/maps/activity-type.js.map +1 -1
- package/dist/garmin/menstruation.d.ts +6 -4
- package/dist/garmin/menstruation.d.ts.map +1 -1
- package/dist/garmin/menstruation.js +12 -8
- package/dist/garmin/menstruation.js.map +1 -1
- package/dist/garmin/pulseOx.d.ts +24 -0
- package/dist/garmin/pulseOx.d.ts.map +1 -0
- package/dist/garmin/pulseOx.js +33 -0
- package/dist/garmin/pulseOx.js.map +1 -0
- package/dist/garmin/respiration.d.ts +29 -0
- package/dist/garmin/respiration.d.ts.map +1 -0
- package/dist/garmin/respiration.js +42 -0
- package/dist/garmin/respiration.js.map +1 -0
- package/dist/garmin/skinTemp.d.ts +27 -0
- package/dist/garmin/skinTemp.d.ts.map +1 -0
- package/dist/garmin/skinTemp.js +35 -0
- package/dist/garmin/skinTemp.js.map +1 -0
- package/dist/garmin/sleep.d.ts +4 -4
- package/dist/garmin/sleep.d.ts.map +1 -1
- package/dist/garmin/sleep.js +15 -9
- package/dist/garmin/sleep.js.map +1 -1
- package/dist/garmin/stressDetails.d.ts +30 -0
- package/dist/garmin/stressDetails.d.ts.map +1 -0
- package/dist/garmin/stressDetails.js +49 -0
- package/dist/garmin/stressDetails.js.map +1 -0
- package/dist/garmin/sync.d.ts +14 -0
- package/dist/garmin/sync.d.ts.map +1 -1
- package/dist/garmin/sync.js +287 -5
- package/dist/garmin/sync.js.map +1 -1
- package/dist/garmin/types.d.ts +77 -186
- package/dist/garmin/types.d.ts.map +1 -1
- package/dist/garmin/types.js +4 -2
- package/dist/garmin/types.js.map +1 -1
- package/dist/garmin/userMetrics.d.ts +23 -0
- package/dist/garmin/userMetrics.d.ts.map +1 -0
- package/dist/garmin/userMetrics.js +41 -0
- package/dist/garmin/userMetrics.js.map +1 -0
- package/dist/validators.d.ts +107 -28
- package/dist/validators.d.ts.map +1 -1
- package/package.json +133 -124
- package/src/client/index.ts +199 -0
- package/src/component/_generated/component.ts +161 -2
- package/src/component/garmin.ts +898 -26
- package/src/component/private.ts +21 -0
- package/src/component/public.ts +11 -2
- package/src/component/schema.ts +2 -1
- package/src/component/validators/connection.ts +2 -0
- package/src/component/validators/daily.ts +15 -0
- package/src/component/validators/plannedWorkout.ts +4 -0
- package/src/garmin/activity.test.ts +13 -21
- package/src/garmin/activity.ts +38 -45
- package/src/garmin/bloodPressure.ts +41 -0
- package/src/garmin/body.ts +1 -1
- package/src/garmin/client.ts +550 -71
- package/src/garmin/daily.ts +8 -4
- package/src/garmin/hrv.ts +57 -0
- package/src/garmin/index.ts +77 -7
- package/src/garmin/maps/activity-type.ts +2 -2
- package/src/garmin/menstruation.ts +14 -12
- package/src/garmin/pulseOx.ts +45 -0
- package/src/garmin/respiration.ts +55 -0
- package/src/garmin/skinTemp.ts +42 -0
- package/src/garmin/sleep.test.ts +5 -6
- package/src/garmin/sleep.ts +22 -16
- package/src/garmin/spec/wellness-api.json +1 -0
- package/src/garmin/stressDetails.ts +71 -0
- package/src/garmin/sync.ts +348 -5
- package/src/garmin/types.ts +88 -300
- package/src/garmin/userMetrics.ts +50 -0
- package/src/garmin/wellness-api.d.ts +5637 -0
package/dist/validators.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const connectionValidator: {
|
|
2
2
|
userId: import("convex/values").VString<string, "required">;
|
|
3
3
|
provider: import("convex/values").VString<string, "required">;
|
|
4
|
+
providerUserId: import("convex/values").VString<string | undefined, "optional">;
|
|
4
5
|
active: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5
6
|
lastDataUpdate: import("convex/values").VString<string | undefined, "optional">;
|
|
6
7
|
};
|
|
@@ -1923,6 +1924,41 @@ export declare const dailyValidator: {
|
|
|
1923
1924
|
timestamp_localization: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1924
1925
|
upload_type: import("convex/values").VFloat64<number, "required">;
|
|
1925
1926
|
}, "required", "start_time" | "end_time" | "timestamp_localization" | "upload_type">;
|
|
1927
|
+
respiration_data: import("convex/values").VObject<{
|
|
1928
|
+
breaths_data?: {
|
|
1929
|
+
avg_breaths_per_min?: number | undefined;
|
|
1930
|
+
max_breaths_per_min?: number | undefined;
|
|
1931
|
+
min_breaths_per_min?: number | undefined;
|
|
1932
|
+
samples?: {
|
|
1933
|
+
timestamp?: string | undefined;
|
|
1934
|
+
breaths_per_min?: number | undefined;
|
|
1935
|
+
}[] | undefined;
|
|
1936
|
+
} | undefined;
|
|
1937
|
+
} | undefined, {
|
|
1938
|
+
breaths_data: import("convex/values").VObject<{
|
|
1939
|
+
avg_breaths_per_min?: number | undefined;
|
|
1940
|
+
max_breaths_per_min?: number | undefined;
|
|
1941
|
+
min_breaths_per_min?: number | undefined;
|
|
1942
|
+
samples?: {
|
|
1943
|
+
timestamp?: string | undefined;
|
|
1944
|
+
breaths_per_min?: number | undefined;
|
|
1945
|
+
}[] | undefined;
|
|
1946
|
+
} | undefined, {
|
|
1947
|
+
avg_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1948
|
+
max_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1949
|
+
min_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1950
|
+
samples: import("convex/values").VArray<{
|
|
1951
|
+
timestamp?: string | undefined;
|
|
1952
|
+
breaths_per_min?: number | undefined;
|
|
1953
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
1954
|
+
timestamp?: string | undefined;
|
|
1955
|
+
breaths_per_min?: number | undefined;
|
|
1956
|
+
}, {
|
|
1957
|
+
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
1958
|
+
breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1959
|
+
}, "required", "timestamp" | "breaths_per_min">, "optional">;
|
|
1960
|
+
}, "optional", "avg_breaths_per_min" | "max_breaths_per_min" | "min_breaths_per_min" | "samples">;
|
|
1961
|
+
}, "optional", "breaths_data" | "breaths_data.avg_breaths_per_min" | "breaths_data.max_breaths_per_min" | "breaths_data.min_breaths_per_min" | "breaths_data.samples">;
|
|
1926
1962
|
oxygen_data: import("convex/values").VObject<{
|
|
1927
1963
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
1928
1964
|
avg_saturation_percentage?: number | undefined;
|
|
@@ -1979,6 +2015,10 @@ export declare const dailyValidator: {
|
|
|
1979
2015
|
strain_level: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1980
2016
|
}, "optional", "strain_level">;
|
|
1981
2017
|
stress_data: import("convex/values").VObject<{
|
|
2018
|
+
samples?: {
|
|
2019
|
+
timestamp?: string | undefined;
|
|
2020
|
+
level?: number | undefined;
|
|
2021
|
+
}[] | undefined;
|
|
1982
2022
|
activity_stress_duration_seconds?: number | undefined;
|
|
1983
2023
|
avg_stress_level?: number | undefined;
|
|
1984
2024
|
body_battery_samples?: {
|
|
@@ -1990,10 +2030,6 @@ export declare const dailyValidator: {
|
|
|
1990
2030
|
max_stress_level?: number | undefined;
|
|
1991
2031
|
medium_stress_duration_seconds?: number | undefined;
|
|
1992
2032
|
rest_stress_duration_seconds?: number | undefined;
|
|
1993
|
-
samples?: {
|
|
1994
|
-
timestamp?: string | undefined;
|
|
1995
|
-
level?: number | undefined;
|
|
1996
|
-
}[] | undefined;
|
|
1997
2033
|
stress_duration_seconds?: number | undefined;
|
|
1998
2034
|
stress_rating?: number | undefined;
|
|
1999
2035
|
} | undefined, {
|
|
@@ -2026,7 +2062,7 @@ export declare const dailyValidator: {
|
|
|
2026
2062
|
}, "required", "timestamp" | "level">, "optional">;
|
|
2027
2063
|
stress_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2028
2064
|
stress_rating: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2029
|
-
}, "optional", "activity_stress_duration_seconds" | "avg_stress_level" | "body_battery_samples" | "high_stress_duration_seconds" | "low_stress_duration_seconds" | "max_stress_level" | "medium_stress_duration_seconds" | "rest_stress_duration_seconds" | "
|
|
2065
|
+
}, "optional", "samples" | "activity_stress_duration_seconds" | "avg_stress_level" | "body_battery_samples" | "high_stress_duration_seconds" | "low_stress_duration_seconds" | "max_stress_level" | "medium_stress_duration_seconds" | "rest_stress_duration_seconds" | "stress_duration_seconds" | "stress_rating">;
|
|
2030
2066
|
tag_data: import("convex/values").VObject<{
|
|
2031
2067
|
tags?: {
|
|
2032
2068
|
timestamp: string;
|
|
@@ -2287,13 +2323,13 @@ export declare const sleepValidator: {
|
|
|
2287
2323
|
breaths_data?: {
|
|
2288
2324
|
start_time?: string | undefined;
|
|
2289
2325
|
end_time?: string | undefined;
|
|
2326
|
+
avg_breaths_per_min?: number | undefined;
|
|
2327
|
+
max_breaths_per_min?: number | undefined;
|
|
2328
|
+
min_breaths_per_min?: number | undefined;
|
|
2290
2329
|
samples?: {
|
|
2291
2330
|
timestamp?: string | undefined;
|
|
2292
2331
|
breaths_per_min?: number | undefined;
|
|
2293
2332
|
}[] | undefined;
|
|
2294
|
-
avg_breaths_per_min?: number | undefined;
|
|
2295
|
-
max_breaths_per_min?: number | undefined;
|
|
2296
|
-
min_breaths_per_min?: number | undefined;
|
|
2297
2333
|
on_demand_reading?: boolean | undefined;
|
|
2298
2334
|
} | undefined;
|
|
2299
2335
|
oxygen_saturation_data?: {
|
|
@@ -2320,13 +2356,13 @@ export declare const sleepValidator: {
|
|
|
2320
2356
|
breaths_data: import("convex/values").VObject<{
|
|
2321
2357
|
start_time?: string | undefined;
|
|
2322
2358
|
end_time?: string | undefined;
|
|
2359
|
+
avg_breaths_per_min?: number | undefined;
|
|
2360
|
+
max_breaths_per_min?: number | undefined;
|
|
2361
|
+
min_breaths_per_min?: number | undefined;
|
|
2323
2362
|
samples?: {
|
|
2324
2363
|
timestamp?: string | undefined;
|
|
2325
2364
|
breaths_per_min?: number | undefined;
|
|
2326
2365
|
}[] | undefined;
|
|
2327
|
-
avg_breaths_per_min?: number | undefined;
|
|
2328
|
-
max_breaths_per_min?: number | undefined;
|
|
2329
|
-
min_breaths_per_min?: number | undefined;
|
|
2330
2366
|
on_demand_reading?: boolean | undefined;
|
|
2331
2367
|
} | undefined, {
|
|
2332
2368
|
avg_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -2345,7 +2381,7 @@ export declare const sleepValidator: {
|
|
|
2345
2381
|
breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2346
2382
|
}, "required", "timestamp" | "breaths_per_min">, "optional">;
|
|
2347
2383
|
start_time: import("convex/values").VString<string | undefined, "optional">;
|
|
2348
|
-
}, "optional", "start_time" | "end_time" | "
|
|
2384
|
+
}, "optional", "start_time" | "end_time" | "avg_breaths_per_min" | "max_breaths_per_min" | "min_breaths_per_min" | "samples" | "on_demand_reading">;
|
|
2349
2385
|
oxygen_saturation_data: import("convex/values").VObject<{
|
|
2350
2386
|
start_time?: string | undefined;
|
|
2351
2387
|
end_time?: string | undefined;
|
|
@@ -2398,7 +2434,7 @@ export declare const sleepValidator: {
|
|
|
2398
2434
|
start_time: import("convex/values").VString<string | undefined, "optional">;
|
|
2399
2435
|
total_snoring_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2400
2436
|
}, "optional", "start_time" | "end_time" | "samples" | "num_snoring_events" | "total_snoring_duration_seconds">;
|
|
2401
|
-
}, "optional", "breaths_data" | "
|
|
2437
|
+
}, "optional", "breaths_data" | "breaths_data.avg_breaths_per_min" | "breaths_data.max_breaths_per_min" | "breaths_data.min_breaths_per_min" | "breaths_data.samples" | "oxygen_saturation_data" | "snoring_data" | "breaths_data.start_time" | "breaths_data.end_time" | "breaths_data.on_demand_reading" | "oxygen_saturation_data.start_time" | "oxygen_saturation_data.end_time" | "oxygen_saturation_data.avg_saturation_percentage" | "oxygen_saturation_data.samples" | "snoring_data.start_time" | "snoring_data.end_time" | "snoring_data.samples" | "snoring_data.num_snoring_events" | "snoring_data.total_snoring_duration_seconds">;
|
|
2402
2438
|
scores: import("convex/values").VObject<{
|
|
2403
2439
|
sleep?: number | undefined;
|
|
2404
2440
|
} | undefined, {
|
|
@@ -3288,6 +3324,8 @@ export declare const plannedWorkoutValidator: {
|
|
|
3288
3324
|
estimated_tscore?: number | undefined;
|
|
3289
3325
|
estimated_calories?: number | undefined;
|
|
3290
3326
|
estimated_duration_seconds?: number | undefined;
|
|
3327
|
+
provider_workout_id?: string | undefined;
|
|
3328
|
+
provider_schedule_id?: string | undefined;
|
|
3291
3329
|
}, {
|
|
3292
3330
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3293
3331
|
estimated_if: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -3307,7 +3345,9 @@ export declare const plannedWorkoutValidator: {
|
|
|
3307
3345
|
pool_length_meters: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3308
3346
|
estimated_calories: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3309
3347
|
estimated_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3310
|
-
|
|
3348
|
+
provider_workout_id: import("convex/values").VString<string | undefined, "optional">;
|
|
3349
|
+
provider_schedule_id: import("convex/values").VString<string | undefined, "optional">;
|
|
3350
|
+
}, "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" | "provider_workout_id" | "provider_schedule_id">;
|
|
3311
3351
|
};
|
|
3312
3352
|
export declare const athleteData: Omit<{
|
|
3313
3353
|
connectionId: import("convex/values").VId<import("convex/values").GenericId<"connections">, "required">;
|
|
@@ -5228,6 +5268,41 @@ export declare const dailyData: Omit<{
|
|
|
5228
5268
|
timestamp_localization: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5229
5269
|
upload_type: import("convex/values").VFloat64<number, "required">;
|
|
5230
5270
|
}, "required", "start_time" | "end_time" | "timestamp_localization" | "upload_type">;
|
|
5271
|
+
respiration_data: import("convex/values").VObject<{
|
|
5272
|
+
breaths_data?: {
|
|
5273
|
+
avg_breaths_per_min?: number | undefined;
|
|
5274
|
+
max_breaths_per_min?: number | undefined;
|
|
5275
|
+
min_breaths_per_min?: number | undefined;
|
|
5276
|
+
samples?: {
|
|
5277
|
+
timestamp?: string | undefined;
|
|
5278
|
+
breaths_per_min?: number | undefined;
|
|
5279
|
+
}[] | undefined;
|
|
5280
|
+
} | undefined;
|
|
5281
|
+
} | undefined, {
|
|
5282
|
+
breaths_data: import("convex/values").VObject<{
|
|
5283
|
+
avg_breaths_per_min?: number | undefined;
|
|
5284
|
+
max_breaths_per_min?: number | undefined;
|
|
5285
|
+
min_breaths_per_min?: number | undefined;
|
|
5286
|
+
samples?: {
|
|
5287
|
+
timestamp?: string | undefined;
|
|
5288
|
+
breaths_per_min?: number | undefined;
|
|
5289
|
+
}[] | undefined;
|
|
5290
|
+
} | undefined, {
|
|
5291
|
+
avg_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5292
|
+
max_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5293
|
+
min_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5294
|
+
samples: import("convex/values").VArray<{
|
|
5295
|
+
timestamp?: string | undefined;
|
|
5296
|
+
breaths_per_min?: number | undefined;
|
|
5297
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
5298
|
+
timestamp?: string | undefined;
|
|
5299
|
+
breaths_per_min?: number | undefined;
|
|
5300
|
+
}, {
|
|
5301
|
+
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
5302
|
+
breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5303
|
+
}, "required", "timestamp" | "breaths_per_min">, "optional">;
|
|
5304
|
+
}, "optional", "avg_breaths_per_min" | "max_breaths_per_min" | "min_breaths_per_min" | "samples">;
|
|
5305
|
+
}, "optional", "breaths_data" | "breaths_data.avg_breaths_per_min" | "breaths_data.max_breaths_per_min" | "breaths_data.min_breaths_per_min" | "breaths_data.samples">;
|
|
5231
5306
|
oxygen_data: import("convex/values").VObject<{
|
|
5232
5307
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
5233
5308
|
avg_saturation_percentage?: number | undefined;
|
|
@@ -5284,6 +5359,10 @@ export declare const dailyData: Omit<{
|
|
|
5284
5359
|
strain_level: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5285
5360
|
}, "optional", "strain_level">;
|
|
5286
5361
|
stress_data: import("convex/values").VObject<{
|
|
5362
|
+
samples?: {
|
|
5363
|
+
timestamp?: string | undefined;
|
|
5364
|
+
level?: number | undefined;
|
|
5365
|
+
}[] | undefined;
|
|
5287
5366
|
activity_stress_duration_seconds?: number | undefined;
|
|
5288
5367
|
avg_stress_level?: number | undefined;
|
|
5289
5368
|
body_battery_samples?: {
|
|
@@ -5295,10 +5374,6 @@ export declare const dailyData: Omit<{
|
|
|
5295
5374
|
max_stress_level?: number | undefined;
|
|
5296
5375
|
medium_stress_duration_seconds?: number | undefined;
|
|
5297
5376
|
rest_stress_duration_seconds?: number | undefined;
|
|
5298
|
-
samples?: {
|
|
5299
|
-
timestamp?: string | undefined;
|
|
5300
|
-
level?: number | undefined;
|
|
5301
|
-
}[] | undefined;
|
|
5302
5377
|
stress_duration_seconds?: number | undefined;
|
|
5303
5378
|
stress_rating?: number | undefined;
|
|
5304
5379
|
} | undefined, {
|
|
@@ -5331,7 +5406,7 @@ export declare const dailyData: Omit<{
|
|
|
5331
5406
|
}, "required", "timestamp" | "level">, "optional">;
|
|
5332
5407
|
stress_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5333
5408
|
stress_rating: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5334
|
-
}, "optional", "activity_stress_duration_seconds" | "avg_stress_level" | "body_battery_samples" | "high_stress_duration_seconds" | "low_stress_duration_seconds" | "max_stress_level" | "medium_stress_duration_seconds" | "rest_stress_duration_seconds" | "
|
|
5409
|
+
}, "optional", "samples" | "activity_stress_duration_seconds" | "avg_stress_level" | "body_battery_samples" | "high_stress_duration_seconds" | "low_stress_duration_seconds" | "max_stress_level" | "medium_stress_duration_seconds" | "rest_stress_duration_seconds" | "stress_duration_seconds" | "stress_rating">;
|
|
5335
5410
|
tag_data: import("convex/values").VObject<{
|
|
5336
5411
|
tags?: {
|
|
5337
5412
|
timestamp: string;
|
|
@@ -5592,13 +5667,13 @@ export declare const sleepData: Omit<{
|
|
|
5592
5667
|
breaths_data?: {
|
|
5593
5668
|
start_time?: string | undefined;
|
|
5594
5669
|
end_time?: string | undefined;
|
|
5670
|
+
avg_breaths_per_min?: number | undefined;
|
|
5671
|
+
max_breaths_per_min?: number | undefined;
|
|
5672
|
+
min_breaths_per_min?: number | undefined;
|
|
5595
5673
|
samples?: {
|
|
5596
5674
|
timestamp?: string | undefined;
|
|
5597
5675
|
breaths_per_min?: number | undefined;
|
|
5598
5676
|
}[] | undefined;
|
|
5599
|
-
avg_breaths_per_min?: number | undefined;
|
|
5600
|
-
max_breaths_per_min?: number | undefined;
|
|
5601
|
-
min_breaths_per_min?: number | undefined;
|
|
5602
5677
|
on_demand_reading?: boolean | undefined;
|
|
5603
5678
|
} | undefined;
|
|
5604
5679
|
oxygen_saturation_data?: {
|
|
@@ -5625,13 +5700,13 @@ export declare const sleepData: Omit<{
|
|
|
5625
5700
|
breaths_data: import("convex/values").VObject<{
|
|
5626
5701
|
start_time?: string | undefined;
|
|
5627
5702
|
end_time?: string | undefined;
|
|
5703
|
+
avg_breaths_per_min?: number | undefined;
|
|
5704
|
+
max_breaths_per_min?: number | undefined;
|
|
5705
|
+
min_breaths_per_min?: number | undefined;
|
|
5628
5706
|
samples?: {
|
|
5629
5707
|
timestamp?: string | undefined;
|
|
5630
5708
|
breaths_per_min?: number | undefined;
|
|
5631
5709
|
}[] | undefined;
|
|
5632
|
-
avg_breaths_per_min?: number | undefined;
|
|
5633
|
-
max_breaths_per_min?: number | undefined;
|
|
5634
|
-
min_breaths_per_min?: number | undefined;
|
|
5635
5710
|
on_demand_reading?: boolean | undefined;
|
|
5636
5711
|
} | undefined, {
|
|
5637
5712
|
avg_breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -5650,7 +5725,7 @@ export declare const sleepData: Omit<{
|
|
|
5650
5725
|
breaths_per_min: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5651
5726
|
}, "required", "timestamp" | "breaths_per_min">, "optional">;
|
|
5652
5727
|
start_time: import("convex/values").VString<string | undefined, "optional">;
|
|
5653
|
-
}, "optional", "start_time" | "end_time" | "
|
|
5728
|
+
}, "optional", "start_time" | "end_time" | "avg_breaths_per_min" | "max_breaths_per_min" | "min_breaths_per_min" | "samples" | "on_demand_reading">;
|
|
5654
5729
|
oxygen_saturation_data: import("convex/values").VObject<{
|
|
5655
5730
|
start_time?: string | undefined;
|
|
5656
5731
|
end_time?: string | undefined;
|
|
@@ -5703,7 +5778,7 @@ export declare const sleepData: Omit<{
|
|
|
5703
5778
|
start_time: import("convex/values").VString<string | undefined, "optional">;
|
|
5704
5779
|
total_snoring_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5705
5780
|
}, "optional", "start_time" | "end_time" | "samples" | "num_snoring_events" | "total_snoring_duration_seconds">;
|
|
5706
|
-
}, "optional", "breaths_data" | "
|
|
5781
|
+
}, "optional", "breaths_data" | "breaths_data.avg_breaths_per_min" | "breaths_data.max_breaths_per_min" | "breaths_data.min_breaths_per_min" | "breaths_data.samples" | "oxygen_saturation_data" | "snoring_data" | "breaths_data.start_time" | "breaths_data.end_time" | "breaths_data.on_demand_reading" | "oxygen_saturation_data.start_time" | "oxygen_saturation_data.end_time" | "oxygen_saturation_data.avg_saturation_percentage" | "oxygen_saturation_data.samples" | "snoring_data.start_time" | "snoring_data.end_time" | "snoring_data.samples" | "snoring_data.num_snoring_events" | "snoring_data.total_snoring_duration_seconds">;
|
|
5707
5782
|
scores: import("convex/values").VObject<{
|
|
5708
5783
|
sleep?: number | undefined;
|
|
5709
5784
|
} | undefined, {
|
|
@@ -6593,6 +6668,8 @@ export declare const plannedWorkoutData: Omit<{
|
|
|
6593
6668
|
estimated_tscore?: number | undefined;
|
|
6594
6669
|
estimated_calories?: number | undefined;
|
|
6595
6670
|
estimated_duration_seconds?: number | undefined;
|
|
6671
|
+
provider_workout_id?: string | undefined;
|
|
6672
|
+
provider_schedule_id?: string | undefined;
|
|
6596
6673
|
}, {
|
|
6597
6674
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
6598
6675
|
estimated_if: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -6612,6 +6689,8 @@ export declare const plannedWorkoutData: Omit<{
|
|
|
6612
6689
|
pool_length_meters: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6613
6690
|
estimated_calories: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6614
6691
|
estimated_duration_seconds: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6615
|
-
|
|
6692
|
+
provider_workout_id: import("convex/values").VString<string | undefined, "optional">;
|
|
6693
|
+
provider_schedule_id: import("convex/values").VString<string | undefined, "optional">;
|
|
6694
|
+
}, "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" | "provider_workout_id" | "provider_schedule_id">;
|
|
6616
6695
|
}, "connectionId" | "userId">;
|
|
6617
6696
|
//# sourceMappingURL=validators.d.ts.map
|
package/dist/validators.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../src/validators.ts"],"names":[],"mappings":"AAkEA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../src/validators.ts"],"names":[],"mappings":"AAkEA,eAAO,MAAM,mBAAmB;;;;;;CAAuB,CAAC;AACxD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAAwC,CAAC;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAuC,CAAC;AAClE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,124 +1,133 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nativesquare/soma",
|
|
3
|
-
"description": "A Convex component that normalizes health and fitness data from multiple wearable providers into a single, consistent schema.",
|
|
4
|
-
"repository": "github:NativeSquare/soma",
|
|
5
|
-
"homepage": "https://github.com/NativeSquare/soma#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/NativeSquare/soma/issues"
|
|
8
|
-
},
|
|
9
|
-
"version": "0.
|
|
10
|
-
"license": "Apache-2.0",
|
|
11
|
-
"keywords": [
|
|
12
|
-
"convex",
|
|
13
|
-
"component"
|
|
14
|
-
],
|
|
15
|
-
"type": "module",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"dev": "run-p -r dev:*",
|
|
18
|
-
"dev:backend": "convex dev --typecheck-components",
|
|
19
|
-
"dev:frontend": "cd example && vite --clearScreen false",
|
|
20
|
-
"dev:build": "chokidar \"tsconfig*.json\" \"src/**/*.ts\" -i \"**/*.test.ts\" -c \"npm run build:codegen\" --initial",
|
|
21
|
-
"predev": "path-exists .env.local dist || (npm run build && convex dev --once)",
|
|
22
|
-
"build": "tsc --project ./tsconfig.build.json",
|
|
23
|
-
"build:codegen": "npx convex codegen --component-dir ./src/component && npm run build",
|
|
24
|
-
"build:clean": "npx rimraf dist *.tsbuildinfo && npm run build:codegen",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"test
|
|
30
|
-
"test:
|
|
31
|
-
"test:
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"./
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"./
|
|
70
|
-
"types": "./dist/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"typescript": "
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@nativesquare/soma",
|
|
3
|
+
"description": "A Convex component that normalizes health and fitness data from multiple wearable providers into a single, consistent schema.",
|
|
4
|
+
"repository": "github:NativeSquare/soma",
|
|
5
|
+
"homepage": "https://github.com/NativeSquare/soma#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/NativeSquare/soma/issues"
|
|
8
|
+
},
|
|
9
|
+
"version": "0.8.0",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"convex",
|
|
13
|
+
"component"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "run-p -r dev:*",
|
|
18
|
+
"dev:backend": "convex dev --typecheck-components",
|
|
19
|
+
"dev:frontend": "cd example && vite --clearScreen false",
|
|
20
|
+
"dev:build": "chokidar \"tsconfig*.json\" \"src/**/*.ts\" -i \"**/*.test.ts\" -c \"npm run build:codegen\" --initial",
|
|
21
|
+
"predev": "path-exists .env.local dist || (npm run build && convex dev --once)",
|
|
22
|
+
"build": "tsc --project ./tsconfig.build.json",
|
|
23
|
+
"build:codegen": "npx convex codegen --component-dir ./src/component && npm run build",
|
|
24
|
+
"build:clean": "npx rimraf dist *.tsbuildinfo && npm run build:codegen",
|
|
25
|
+
"generate:garmin": "openapi-typescript src/garmin/spec/wellness-api.json -o src/garmin/wellness-api.d.ts",
|
|
26
|
+
"typecheck": "tsc --noEmit && tsc -p example && tsc -p example/convex",
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"all": "run-p -r dev:* test:watch",
|
|
29
|
+
"test": "vitest run --typecheck",
|
|
30
|
+
"test:watch": "vitest --typecheck --clearScreen false",
|
|
31
|
+
"test:debug": "vitest --inspect-brk --no-file-parallelism",
|
|
32
|
+
"test:coverage": "vitest run --coverage --coverage.reporter=text",
|
|
33
|
+
"webhook:push": "tsx scripts/test-garmin-webhooks.ts push",
|
|
34
|
+
"webhook:ping": "tsx scripts/test-garmin-webhooks.ts ping",
|
|
35
|
+
"webhook:backfill": "tsx scripts/test-garmin-webhooks.ts backfill",
|
|
36
|
+
"webhook:all": "tsx scripts/test-garmin-webhooks.ts all _",
|
|
37
|
+
"preversion": "npm ci && npm run build:clean && run-p test lint typecheck",
|
|
38
|
+
"prepublishOnly": "npm whoami || npm login",
|
|
39
|
+
"alpha": "npm version prerelease --preid alpha && npm publish --tag alpha && git push --follow-tags",
|
|
40
|
+
"release": "npm version patch && npm publish && git push --follow-tags",
|
|
41
|
+
"version": "vim -c 'normal o' -c 'normal o## '$npm_package_version CHANGELOG.md && prettier -w CHANGELOG.md && git add CHANGELOG.md"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"src"
|
|
46
|
+
],
|
|
47
|
+
"exports": {
|
|
48
|
+
"./package.json": "./package.json",
|
|
49
|
+
".": {
|
|
50
|
+
"types": "./dist/client/index.d.ts",
|
|
51
|
+
"default": "./dist/client/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./react": {
|
|
54
|
+
"types": "./dist/react/index.d.ts",
|
|
55
|
+
"default": "./dist/react/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./healthkit": {
|
|
58
|
+
"types": "./dist/healthkit/index.d.ts",
|
|
59
|
+
"default": "./dist/healthkit/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./strava": {
|
|
62
|
+
"types": "./dist/strava/index.d.ts",
|
|
63
|
+
"default": "./dist/strava/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./garmin": {
|
|
66
|
+
"types": "./dist/garmin/index.d.ts",
|
|
67
|
+
"default": "./dist/garmin/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./validators": {
|
|
70
|
+
"types": "./dist/validators.d.ts",
|
|
71
|
+
"default": "./dist/validators.js"
|
|
72
|
+
},
|
|
73
|
+
"./test": "./src/test.ts",
|
|
74
|
+
"./_generated/component.js": {
|
|
75
|
+
"types": "./dist/component/_generated/component.d.ts"
|
|
76
|
+
},
|
|
77
|
+
"./_generated/component": {
|
|
78
|
+
"types": "./dist/component/_generated/component.d.ts"
|
|
79
|
+
},
|
|
80
|
+
"./convex.config.js": {
|
|
81
|
+
"types": "./dist/component/convex.config.d.ts",
|
|
82
|
+
"default": "./dist/component/convex.config.js"
|
|
83
|
+
},
|
|
84
|
+
"./convex.config": {
|
|
85
|
+
"types": "./dist/component/convex.config.d.ts",
|
|
86
|
+
"default": "./dist/component/convex.config.js"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"convex": "^1.31.7",
|
|
91
|
+
"react": "^18.3.1 || ^19.0.0"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@convex-dev/eslint-plugin": "^1.1.1",
|
|
95
|
+
"@edge-runtime/vm": "^5.0.0",
|
|
96
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
97
|
+
"@eslint/js": "9.39.2",
|
|
98
|
+
"@types/node": "^24.10.11",
|
|
99
|
+
"@types/react": "^19.2.13",
|
|
100
|
+
"@types/react-dom": "^19.2.3",
|
|
101
|
+
"@vitejs/plugin-react": "^5.1.3",
|
|
102
|
+
"chokidar-cli": "3.0.0",
|
|
103
|
+
"convex": "1.31.7",
|
|
104
|
+
"convex-test": "0.0.41",
|
|
105
|
+
"eslint": "9.39.2",
|
|
106
|
+
"eslint-plugin-react": "^7.37.5",
|
|
107
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
108
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
109
|
+
"globals": "^17.3.0",
|
|
110
|
+
"npm-run-all2": "8.0.4",
|
|
111
|
+
"openapi-typescript": "^7.13.0",
|
|
112
|
+
"path-exists-cli": "2.0.0",
|
|
113
|
+
"pkg-pr-new": "^0.0.63",
|
|
114
|
+
"prettier": "3.8.1",
|
|
115
|
+
"react": "^19.2.4",
|
|
116
|
+
"react-dom": "^19.2.4",
|
|
117
|
+
"typescript": "5.9.3",
|
|
118
|
+
"typescript-eslint": "8.54.0",
|
|
119
|
+
"vite": "7.3.1",
|
|
120
|
+
"vitest": "4.0.18"
|
|
121
|
+
},
|
|
122
|
+
"types": "./dist/client/index.d.ts",
|
|
123
|
+
"module": "./dist/client/index.js",
|
|
124
|
+
"pnpm": {
|
|
125
|
+
"onlyBuiltDependencies": [
|
|
126
|
+
"esbuild",
|
|
127
|
+
"@tailwindcss/oxide"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"dependencies": {
|
|
131
|
+
"openapi-fetch": "^0.17.0"
|
|
132
|
+
}
|
|
133
|
+
}
|