@nativesquare/soma 0.12.0 → 0.13.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/garmin.d.ts +5 -1
- package/dist/client/garmin.d.ts.map +1 -1
- package/dist/client/garmin.js +148 -0
- package/dist/client/garmin.js.map +1 -1
- package/dist/client/index.d.ts +5 -6
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -211
- package/dist/client/index.js.map +1 -1
- package/dist/client/strava.d.ts +11 -6
- package/dist/client/strava.d.ts.map +1 -1
- package/dist/client/strava.js +64 -0
- package/dist/client/strava.js.map +1 -1
- package/dist/client/types.d.ts +93 -20
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +24 -5
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/garmin/private.d.ts +53 -68
- package/dist/component/garmin/private.d.ts.map +1 -1
- package/dist/component/garmin/private.js +87 -85
- package/dist/component/garmin/private.js.map +1 -1
- package/dist/component/garmin/public.d.ts +97 -43
- package/dist/component/garmin/public.d.ts.map +1 -1
- package/dist/component/garmin/public.js +75 -51
- package/dist/component/garmin/public.js.map +1 -1
- package/dist/component/garmin/webhooks.d.ts +22 -20
- package/dist/component/garmin/webhooks.d.ts.map +1 -1
- package/dist/component/garmin/webhooks.js +115 -76
- package/dist/component/garmin/webhooks.js.map +1 -1
- package/dist/component/public.d.ts +15 -15
- package/dist/component/schema.d.ts +25 -25
- package/dist/component/strava/public.d.ts +12 -8
- package/dist/component/strava/public.d.ts.map +1 -1
- package/dist/component/strava/public.js +7 -7
- package/dist/component/strava/public.js.map +1 -1
- package/dist/component/validators/activity.d.ts +4 -4
- package/dist/component/validators/body.d.ts +4 -4
- package/dist/component/validators/daily.d.ts +4 -4
- package/dist/component/validators/nutrition.d.ts +3 -3
- package/dist/component/validators/samples.d.ts +4 -4
- package/dist/component/validators/shared.d.ts +13 -4
- package/dist/component/validators/shared.d.ts.map +1 -1
- package/dist/component/validators/shared.js +7 -0
- package/dist/component/validators/shared.js.map +1 -1
- package/dist/component/validators/sleep.d.ts +5 -5
- package/dist/validators.d.ts +41 -40
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +1 -0
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/garmin.ts +692 -487
- package/src/client/index.ts +10 -279
- package/src/client/strava.ts +199 -108
- package/src/client/types.ts +303 -215
- package/src/component/_generated/component.ts +19 -19
- package/src/component/garmin/private.ts +1872 -1870
- package/src/component/garmin/public.ts +104 -80
- package/src/component/garmin/webhooks.ts +122 -81
- package/src/component/strava/public.ts +393 -393
- package/src/component/validators/shared.ts +9 -0
- package/src/validators.ts +1 -0
|
@@ -275,8 +275,8 @@ export declare const ingestActivity: import("convex/server").RegisteredMutation<
|
|
|
275
275
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
276
276
|
avg_saturation_percentage?: number | undefined;
|
|
277
277
|
saturation_samples?: {
|
|
278
|
-
type?: number | undefined;
|
|
279
278
|
timestamp?: string | undefined;
|
|
279
|
+
type?: number | undefined;
|
|
280
280
|
percentage?: number | undefined;
|
|
281
281
|
}[] | undefined;
|
|
282
282
|
vo2_samples?: {
|
|
@@ -427,8 +427,8 @@ export declare const ingestSleep: import("convex/server").RegisteredMutation<"pu
|
|
|
427
427
|
end_time?: string | undefined;
|
|
428
428
|
avg_saturation_percentage?: number | undefined;
|
|
429
429
|
samples?: {
|
|
430
|
-
type?: number | undefined;
|
|
431
430
|
timestamp?: string | undefined;
|
|
431
|
+
type?: number | undefined;
|
|
432
432
|
percentage?: number | undefined;
|
|
433
433
|
}[] | undefined;
|
|
434
434
|
} | undefined;
|
|
@@ -519,8 +519,8 @@ export declare const ingestBody: import("convex/server").RegisteredMutation<"pub
|
|
|
519
519
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
520
520
|
avg_saturation_percentage?: number | undefined;
|
|
521
521
|
saturation_samples?: {
|
|
522
|
-
type?: number | undefined;
|
|
523
522
|
timestamp?: string | undefined;
|
|
523
|
+
type?: number | undefined;
|
|
524
524
|
percentage?: number | undefined;
|
|
525
525
|
}[] | undefined;
|
|
526
526
|
vo2_samples?: {
|
|
@@ -846,8 +846,8 @@ export declare const ingestDaily: import("convex/server").RegisteredMutation<"pu
|
|
|
846
846
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
847
847
|
avg_saturation_percentage?: number | undefined;
|
|
848
848
|
saturation_samples?: {
|
|
849
|
-
type?: number | undefined;
|
|
850
849
|
timestamp?: string | undefined;
|
|
850
|
+
type?: number | undefined;
|
|
851
851
|
percentage?: number | undefined;
|
|
852
852
|
}[] | undefined;
|
|
853
853
|
vo2_samples?: {
|
|
@@ -989,9 +989,9 @@ export declare const ingestNutrition: import("convex/server").RegisteredMutation
|
|
|
989
989
|
drink_name?: string | undefined;
|
|
990
990
|
}[] | undefined;
|
|
991
991
|
meals?: {
|
|
992
|
+
timestamp: string;
|
|
992
993
|
id: string;
|
|
993
994
|
type: number;
|
|
994
|
-
timestamp: string;
|
|
995
995
|
name: string;
|
|
996
996
|
quantity: {
|
|
997
997
|
unit: number;
|
|
@@ -1325,8 +1325,8 @@ export declare const listActivities: import("convex/server").RegisteredQuery<"pu
|
|
|
1325
1325
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
1326
1326
|
avg_saturation_percentage?: number | undefined;
|
|
1327
1327
|
saturation_samples?: {
|
|
1328
|
-
type?: number | undefined;
|
|
1329
1328
|
timestamp?: string | undefined;
|
|
1329
|
+
type?: number | undefined;
|
|
1330
1330
|
percentage?: number | undefined;
|
|
1331
1331
|
}[] | undefined;
|
|
1332
1332
|
vo2_samples?: {
|
|
@@ -1594,8 +1594,8 @@ export declare const paginateActivities: import("convex/server").RegisteredQuery
|
|
|
1594
1594
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
1595
1595
|
avg_saturation_percentage?: number | undefined;
|
|
1596
1596
|
saturation_samples?: {
|
|
1597
|
-
type?: number | undefined;
|
|
1598
1597
|
timestamp?: string | undefined;
|
|
1598
|
+
type?: number | undefined;
|
|
1599
1599
|
percentage?: number | undefined;
|
|
1600
1600
|
}[] | undefined;
|
|
1601
1601
|
vo2_samples?: {
|
|
@@ -1757,8 +1757,8 @@ export declare const listSleep: import("convex/server").RegisteredQuery<"public"
|
|
|
1757
1757
|
end_time?: string | undefined;
|
|
1758
1758
|
avg_saturation_percentage?: number | undefined;
|
|
1759
1759
|
samples?: {
|
|
1760
|
-
type?: number | undefined;
|
|
1761
1760
|
timestamp?: string | undefined;
|
|
1761
|
+
type?: number | undefined;
|
|
1762
1762
|
percentage?: number | undefined;
|
|
1763
1763
|
}[] | undefined;
|
|
1764
1764
|
} | undefined;
|
|
@@ -1921,8 +1921,8 @@ export declare const paginateSleep: import("convex/server").RegisteredQuery<"pub
|
|
|
1921
1921
|
end_time?: string | undefined;
|
|
1922
1922
|
avg_saturation_percentage?: number | undefined;
|
|
1923
1923
|
samples?: {
|
|
1924
|
-
type?: number | undefined;
|
|
1925
1924
|
timestamp?: string | undefined;
|
|
1925
|
+
type?: number | undefined;
|
|
1926
1926
|
percentage?: number | undefined;
|
|
1927
1927
|
}[] | undefined;
|
|
1928
1928
|
} | undefined;
|
|
@@ -2025,8 +2025,8 @@ export declare const listBody: import("convex/server").RegisteredQuery<"public",
|
|
|
2025
2025
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
2026
2026
|
avg_saturation_percentage?: number | undefined;
|
|
2027
2027
|
saturation_samples?: {
|
|
2028
|
-
type?: number | undefined;
|
|
2029
2028
|
timestamp?: string | undefined;
|
|
2029
|
+
type?: number | undefined;
|
|
2030
2030
|
percentage?: number | undefined;
|
|
2031
2031
|
}[] | undefined;
|
|
2032
2032
|
vo2_samples?: {
|
|
@@ -2227,8 +2227,8 @@ export declare const paginateBody: import("convex/server").RegisteredQuery<"publ
|
|
|
2227
2227
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
2228
2228
|
avg_saturation_percentage?: number | undefined;
|
|
2229
2229
|
saturation_samples?: {
|
|
2230
|
-
type?: number | undefined;
|
|
2231
2230
|
timestamp?: string | undefined;
|
|
2231
|
+
type?: number | undefined;
|
|
2232
2232
|
percentage?: number | undefined;
|
|
2233
2233
|
}[] | undefined;
|
|
2234
2234
|
vo2_samples?: {
|
|
@@ -2566,8 +2566,8 @@ export declare const listDaily: import("convex/server").RegisteredQuery<"public"
|
|
|
2566
2566
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
2567
2567
|
avg_saturation_percentage?: number | undefined;
|
|
2568
2568
|
saturation_samples?: {
|
|
2569
|
-
type?: number | undefined;
|
|
2570
2569
|
timestamp?: string | undefined;
|
|
2570
|
+
type?: number | undefined;
|
|
2571
2571
|
percentage?: number | undefined;
|
|
2572
2572
|
}[] | undefined;
|
|
2573
2573
|
vo2_samples?: {
|
|
@@ -2814,8 +2814,8 @@ export declare const paginateDaily: import("convex/server").RegisteredQuery<"pub
|
|
|
2814
2814
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
2815
2815
|
avg_saturation_percentage?: number | undefined;
|
|
2816
2816
|
saturation_samples?: {
|
|
2817
|
-
type?: number | undefined;
|
|
2818
2817
|
timestamp?: string | undefined;
|
|
2818
|
+
type?: number | undefined;
|
|
2819
2819
|
percentage?: number | undefined;
|
|
2820
2820
|
}[] | undefined;
|
|
2821
2821
|
vo2_samples?: {
|
|
@@ -2969,9 +2969,9 @@ export declare const listNutrition: import("convex/server").RegisteredQuery<"pub
|
|
|
2969
2969
|
drink_name?: string | undefined;
|
|
2970
2970
|
}[] | undefined;
|
|
2971
2971
|
meals?: {
|
|
2972
|
+
timestamp: string;
|
|
2972
2973
|
id: string;
|
|
2973
2974
|
type: number;
|
|
2974
|
-
timestamp: string;
|
|
2975
2975
|
name: string;
|
|
2976
2976
|
quantity: {
|
|
2977
2977
|
unit: number;
|
|
@@ -3141,9 +3141,9 @@ export declare const paginateNutrition: import("convex/server").RegisteredQuery<
|
|
|
3141
3141
|
drink_name?: string | undefined;
|
|
3142
3142
|
}[] | undefined;
|
|
3143
3143
|
meals?: {
|
|
3144
|
+
timestamp: string;
|
|
3144
3145
|
id: string;
|
|
3145
3146
|
type: number;
|
|
3146
|
-
timestamp: string;
|
|
3147
3147
|
name: string;
|
|
3148
3148
|
quantity: {
|
|
3149
3149
|
unit: number;
|
|
@@ -241,8 +241,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
241
241
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
242
242
|
avg_saturation_percentage?: number | undefined;
|
|
243
243
|
saturation_samples?: {
|
|
244
|
-
type?: number | undefined;
|
|
245
244
|
timestamp?: string | undefined;
|
|
245
|
+
type?: number | undefined;
|
|
246
246
|
percentage?: number | undefined;
|
|
247
247
|
}[] | undefined;
|
|
248
248
|
vo2_samples?: {
|
|
@@ -912,8 +912,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
912
912
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
913
913
|
avg_saturation_percentage?: number | undefined;
|
|
914
914
|
saturation_samples?: {
|
|
915
|
-
type?: number | undefined;
|
|
916
915
|
timestamp?: string | undefined;
|
|
916
|
+
type?: number | undefined;
|
|
917
917
|
percentage?: number | undefined;
|
|
918
918
|
}[] | undefined;
|
|
919
919
|
vo2_samples?: {
|
|
@@ -923,18 +923,18 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
923
923
|
} | undefined, {
|
|
924
924
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
925
925
|
saturation_samples: import("convex/values").VArray<{
|
|
926
|
-
type?: number | undefined;
|
|
927
926
|
timestamp?: string | undefined;
|
|
927
|
+
type?: number | undefined;
|
|
928
928
|
percentage?: number | undefined;
|
|
929
929
|
}[] | undefined, import("convex/values").VObject<{
|
|
930
|
-
type?: number | undefined;
|
|
931
930
|
timestamp?: string | undefined;
|
|
931
|
+
type?: number | undefined;
|
|
932
932
|
percentage?: number | undefined;
|
|
933
933
|
}, {
|
|
934
934
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
935
935
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
936
936
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
937
|
-
}, "required", "
|
|
937
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
938
938
|
vo2_samples: import("convex/values").VArray<{
|
|
939
939
|
timestamp?: string | undefined;
|
|
940
940
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
@@ -1079,8 +1079,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1079
1079
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
1080
1080
|
avg_saturation_percentage?: number | undefined;
|
|
1081
1081
|
saturation_samples?: {
|
|
1082
|
-
type?: number | undefined;
|
|
1083
1082
|
timestamp?: string | undefined;
|
|
1083
|
+
type?: number | undefined;
|
|
1084
1084
|
percentage?: number | undefined;
|
|
1085
1085
|
}[] | undefined;
|
|
1086
1086
|
vo2_samples?: {
|
|
@@ -1702,8 +1702,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1702
1702
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
1703
1703
|
avg_saturation_percentage?: number | undefined;
|
|
1704
1704
|
saturation_samples?: {
|
|
1705
|
-
type?: number | undefined;
|
|
1706
1705
|
timestamp?: string | undefined;
|
|
1706
|
+
type?: number | undefined;
|
|
1707
1707
|
percentage?: number | undefined;
|
|
1708
1708
|
}[] | undefined;
|
|
1709
1709
|
vo2_samples?: {
|
|
@@ -1713,18 +1713,18 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
1713
1713
|
} | undefined, {
|
|
1714
1714
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1715
1715
|
saturation_samples: import("convex/values").VArray<{
|
|
1716
|
-
type?: number | undefined;
|
|
1717
1716
|
timestamp?: string | undefined;
|
|
1717
|
+
type?: number | undefined;
|
|
1718
1718
|
percentage?: number | undefined;
|
|
1719
1719
|
}[] | undefined, import("convex/values").VObject<{
|
|
1720
|
-
type?: number | undefined;
|
|
1721
1720
|
timestamp?: string | undefined;
|
|
1721
|
+
type?: number | undefined;
|
|
1722
1722
|
percentage?: number | undefined;
|
|
1723
1723
|
}, {
|
|
1724
1724
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
1725
1725
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1726
1726
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1727
|
-
}, "required", "
|
|
1727
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
1728
1728
|
vo2_samples: import("convex/values").VArray<{
|
|
1729
1729
|
timestamp?: string | undefined;
|
|
1730
1730
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
@@ -2038,8 +2038,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2038
2038
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
2039
2039
|
avg_saturation_percentage?: number | undefined;
|
|
2040
2040
|
saturation_samples?: {
|
|
2041
|
-
type?: number | undefined;
|
|
2042
2041
|
timestamp?: string | undefined;
|
|
2042
|
+
type?: number | undefined;
|
|
2043
2043
|
percentage?: number | undefined;
|
|
2044
2044
|
}[] | undefined;
|
|
2045
2045
|
vo2_samples?: {
|
|
@@ -2663,8 +2663,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2663
2663
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
2664
2664
|
avg_saturation_percentage?: number | undefined;
|
|
2665
2665
|
saturation_samples?: {
|
|
2666
|
-
type?: number | undefined;
|
|
2667
2666
|
timestamp?: string | undefined;
|
|
2667
|
+
type?: number | undefined;
|
|
2668
2668
|
percentage?: number | undefined;
|
|
2669
2669
|
}[] | undefined;
|
|
2670
2670
|
vo2_samples?: {
|
|
@@ -2674,18 +2674,18 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2674
2674
|
} | undefined, {
|
|
2675
2675
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2676
2676
|
saturation_samples: import("convex/values").VArray<{
|
|
2677
|
-
type?: number | undefined;
|
|
2678
2677
|
timestamp?: string | undefined;
|
|
2678
|
+
type?: number | undefined;
|
|
2679
2679
|
percentage?: number | undefined;
|
|
2680
2680
|
}[] | undefined, import("convex/values").VObject<{
|
|
2681
|
-
type?: number | undefined;
|
|
2682
2681
|
timestamp?: string | undefined;
|
|
2682
|
+
type?: number | undefined;
|
|
2683
2683
|
percentage?: number | undefined;
|
|
2684
2684
|
}, {
|
|
2685
2685
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
2686
2686
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2687
2687
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2688
|
-
}, "required", "
|
|
2688
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
2689
2689
|
vo2_samples: import("convex/values").VArray<{
|
|
2690
2690
|
timestamp?: string | undefined;
|
|
2691
2691
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
@@ -2874,8 +2874,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
2874
2874
|
end_time?: string | undefined;
|
|
2875
2875
|
avg_saturation_percentage?: number | undefined;
|
|
2876
2876
|
samples?: {
|
|
2877
|
-
type?: number | undefined;
|
|
2878
2877
|
timestamp?: string | undefined;
|
|
2878
|
+
type?: number | undefined;
|
|
2879
2879
|
percentage?: number | undefined;
|
|
2880
2880
|
}[] | undefined;
|
|
2881
2881
|
} | undefined;
|
|
@@ -3186,8 +3186,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3186
3186
|
end_time?: string | undefined;
|
|
3187
3187
|
avg_saturation_percentage?: number | undefined;
|
|
3188
3188
|
samples?: {
|
|
3189
|
-
type?: number | undefined;
|
|
3190
3189
|
timestamp?: string | undefined;
|
|
3190
|
+
type?: number | undefined;
|
|
3191
3191
|
percentage?: number | undefined;
|
|
3192
3192
|
}[] | undefined;
|
|
3193
3193
|
} | undefined;
|
|
@@ -3236,26 +3236,26 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3236
3236
|
end_time?: string | undefined;
|
|
3237
3237
|
avg_saturation_percentage?: number | undefined;
|
|
3238
3238
|
samples?: {
|
|
3239
|
-
type?: number | undefined;
|
|
3240
3239
|
timestamp?: string | undefined;
|
|
3240
|
+
type?: number | undefined;
|
|
3241
3241
|
percentage?: number | undefined;
|
|
3242
3242
|
}[] | undefined;
|
|
3243
3243
|
} | undefined, {
|
|
3244
3244
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3245
3245
|
end_time: import("convex/values").VString<string | undefined, "optional">;
|
|
3246
3246
|
samples: import("convex/values").VArray<{
|
|
3247
|
-
type?: number | undefined;
|
|
3248
3247
|
timestamp?: string | undefined;
|
|
3248
|
+
type?: number | undefined;
|
|
3249
3249
|
percentage?: number | undefined;
|
|
3250
3250
|
}[] | undefined, import("convex/values").VObject<{
|
|
3251
|
-
type?: number | undefined;
|
|
3252
3251
|
timestamp?: string | undefined;
|
|
3252
|
+
type?: number | undefined;
|
|
3253
3253
|
percentage?: number | undefined;
|
|
3254
3254
|
}, {
|
|
3255
3255
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
3256
3256
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3257
3257
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3258
|
-
}, "required", "
|
|
3258
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
3259
3259
|
start_time: import("convex/values").VString<string | undefined, "optional">;
|
|
3260
3260
|
}, "optional", "start_time" | "end_time" | "avg_saturation_percentage" | "samples">;
|
|
3261
3261
|
snoring_data: import("convex/values").VObject<{
|
|
@@ -3528,9 +3528,9 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3528
3528
|
drink_name?: string | undefined;
|
|
3529
3529
|
}[] | undefined;
|
|
3530
3530
|
meals?: {
|
|
3531
|
+
timestamp: string;
|
|
3531
3532
|
id: string;
|
|
3532
3533
|
type: number;
|
|
3533
|
-
timestamp: string;
|
|
3534
3534
|
name: string;
|
|
3535
3535
|
quantity: {
|
|
3536
3536
|
unit: number;
|
|
@@ -3626,9 +3626,9 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3626
3626
|
drink_name: import("convex/values").VString<string | undefined, "optional">;
|
|
3627
3627
|
}, "required", "timestamp" | "drink_volume" | "drink_unit" | "drink_name">, "optional">;
|
|
3628
3628
|
meals: import("convex/values").VArray<{
|
|
3629
|
+
timestamp: string;
|
|
3629
3630
|
id: string;
|
|
3630
3631
|
type: number;
|
|
3631
|
-
timestamp: string;
|
|
3632
3632
|
name: string;
|
|
3633
3633
|
quantity: {
|
|
3634
3634
|
unit: number;
|
|
@@ -3697,9 +3697,9 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3697
3697
|
starch_g?: number | undefined;
|
|
3698
3698
|
};
|
|
3699
3699
|
}[] | undefined, import("convex/values").VObject<{
|
|
3700
|
+
timestamp: string;
|
|
3700
3701
|
id: string;
|
|
3701
3702
|
type: number;
|
|
3702
|
-
timestamp: string;
|
|
3703
3703
|
name: string;
|
|
3704
3704
|
quantity: {
|
|
3705
3705
|
unit: number;
|
|
@@ -3901,7 +3901,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
3901
3901
|
omega6_g: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3902
3902
|
starch_g: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3903
3903
|
}, "required", "biotin_mg" | "caffeine_mg" | "calcium_mg" | "chloride_mg" | "chromium_mg" | "copper_mg" | "folate_mg" | "folic_acid_mg" | "iodine_mg" | "iron_mg" | "magnesium_mg" | "manganese_mg" | "molybdenum_mg" | "niacin_mg" | "pantothenic_acid_mg" | "phosphorus_mg" | "potassium_mg" | "riboflavin_mg" | "selenium_mg" | "thiamin_mg" | "vitamin_A_mg" | "vitamin_B12_mg" | "vitamin_B6_mg" | "vitamin_C_mg" | "vitamin_D_mg" | "vitamin_D2_mg" | "vitamin_D3_mg" | "vitamin_E_mg" | "vitamin_K_mg" | "zinc_mg" | "cystine_g" | "histidine_g" | "isoleucine_g" | "leucine_g" | "lysine_g" | "methionine_g" | "phenylalanine_g" | "threonine_g" | "tryptophan_g" | "tyrosine_g" | "valine_g" | "monounsaturated_fat_g" | "polyunsaturated_fat_g" | "omega3_g" | "omega6_g" | "starch_g">;
|
|
3904
|
-
}, "required", "
|
|
3904
|
+
}, "required", "timestamp" | "id" | "type" | "name" | "quantity" | "macros" | "micros" | "quantity.unit" | "quantity.amount" | "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">, "optional">;
|
|
3905
3905
|
metadata: import("convex/values").VObject<{
|
|
3906
3906
|
timestamp_localization?: number | undefined;
|
|
3907
3907
|
start_time: string;
|
|
@@ -49,14 +49,16 @@ export declare const syncStrava: import("convex/server").RegisteredAction<"publi
|
|
|
49
49
|
clientId: string;
|
|
50
50
|
clientSecret: string;
|
|
51
51
|
}, Promise<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
data: {
|
|
53
|
+
synced: {
|
|
54
|
+
athletes: number;
|
|
55
|
+
activities: number;
|
|
56
|
+
};
|
|
55
57
|
};
|
|
56
58
|
errors: Array<{
|
|
57
59
|
type: string;
|
|
58
60
|
id: string;
|
|
59
|
-
|
|
61
|
+
message: string;
|
|
60
62
|
}>;
|
|
61
63
|
}>>;
|
|
62
64
|
/**
|
|
@@ -71,14 +73,16 @@ export declare const syncAllTypes: import("convex/server").RegisteredAction<"pub
|
|
|
71
73
|
userId: string;
|
|
72
74
|
accessToken: string;
|
|
73
75
|
}, Promise<{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
data: {
|
|
77
|
+
synced: {
|
|
78
|
+
athletes: number;
|
|
79
|
+
activities: number;
|
|
80
|
+
};
|
|
77
81
|
};
|
|
78
82
|
errors: {
|
|
79
83
|
type: string;
|
|
80
84
|
id: string;
|
|
81
|
-
|
|
85
|
+
message: string;
|
|
82
86
|
}[];
|
|
83
87
|
}>>;
|
|
84
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/component/strava/public.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAO,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAmBvD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;GAyB3B,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;kBAYd,EAAE,CAAC,aAAa,CAAC;YACvB,MAAM;GAoDhB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;;;
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/component/strava/public.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAO,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAmBvD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;GAyB3B,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;kBAYd,EAAE,CAAC,aAAa,CAAC;YACvB,MAAM;GAoDhB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;;;UAcb;QAAE,MAAM,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;YAClD,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;GA+E9D,CAAC;AAIH;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;cAaO,MAAM;YAAM,MAAM;iBAAW,MAAM;;GAmEjE,CAAC;AAIH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;iBAoD3B,CAAC"}
|
|
@@ -114,8 +114,8 @@ export const syncStrava = action({
|
|
|
114
114
|
after: v.optional(v.number()),
|
|
115
115
|
},
|
|
116
116
|
returns: v.object({
|
|
117
|
-
synced: v.object({ athletes: v.number(), activities: v.number() }),
|
|
118
|
-
errors: v.array(v.object({ type: v.string(), id: v.string(),
|
|
117
|
+
data: v.object({ synced: v.object({ athletes: v.number(), activities: v.number() }) }),
|
|
118
|
+
errors: v.array(v.object({ type: v.string(), id: v.string(), message: v.string() })),
|
|
119
119
|
}),
|
|
120
120
|
handler: async (ctx, args) => {
|
|
121
121
|
// 1. Look up connection
|
|
@@ -167,7 +167,7 @@ export const syncStrava = action({
|
|
|
167
167
|
connectionId,
|
|
168
168
|
lastDataUpdate: new Date().toISOString(),
|
|
169
169
|
});
|
|
170
|
-
return { synced: result.synced, errors: result.errors };
|
|
170
|
+
return { data: { synced: result.data.synced }, errors: result.errors };
|
|
171
171
|
},
|
|
172
172
|
});
|
|
173
173
|
// ─── Sync Engine ────────────────────────────────────────────────────────────
|
|
@@ -206,7 +206,7 @@ export const syncAllTypes = action({
|
|
|
206
206
|
errors.push({
|
|
207
207
|
type: "athlete",
|
|
208
208
|
id: "fetch",
|
|
209
|
-
|
|
209
|
+
message: err instanceof Error ? err.message : String(err),
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
// ── Activities ───────────────────────────────────────────────────────
|
|
@@ -242,7 +242,7 @@ export const syncAllTypes = action({
|
|
|
242
242
|
errors.push({
|
|
243
243
|
type: "activity",
|
|
244
244
|
id: String(summary.id),
|
|
245
|
-
|
|
245
|
+
message: err instanceof Error ? err.message : String(err),
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -251,10 +251,10 @@ export const syncAllTypes = action({
|
|
|
251
251
|
errors.push({
|
|
252
252
|
type: "activity",
|
|
253
253
|
id: "fetch",
|
|
254
|
-
|
|
254
|
+
message: err instanceof Error ? err.message : String(err),
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
return { synced, errors };
|
|
257
|
+
return { data: { synced }, errors };
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
260
|
// ─── Disconnect ─────────────────────────────────────────────────────────────
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/component/strava/public.ts"],"names":[],"mappings":"AAAA,gFAAgF;AA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 -610,8 +610,8 @@ export declare const activityValidator: {
|
|
|
610
610
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
611
611
|
avg_saturation_percentage?: number | undefined;
|
|
612
612
|
saturation_samples?: {
|
|
613
|
-
type?: number | undefined;
|
|
614
613
|
timestamp?: string | undefined;
|
|
614
|
+
type?: number | undefined;
|
|
615
615
|
percentage?: number | undefined;
|
|
616
616
|
}[] | undefined;
|
|
617
617
|
vo2_samples?: {
|
|
@@ -621,18 +621,18 @@ export declare const activityValidator: {
|
|
|
621
621
|
} | undefined, {
|
|
622
622
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
623
623
|
saturation_samples: import("convex/values").VArray<{
|
|
624
|
-
type?: number | undefined;
|
|
625
624
|
timestamp?: string | undefined;
|
|
625
|
+
type?: number | undefined;
|
|
626
626
|
percentage?: number | undefined;
|
|
627
627
|
}[] | undefined, import("convex/values").VObject<{
|
|
628
|
-
type?: number | undefined;
|
|
629
628
|
timestamp?: string | undefined;
|
|
629
|
+
type?: number | undefined;
|
|
630
630
|
percentage?: number | undefined;
|
|
631
631
|
}, {
|
|
632
632
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
633
633
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
634
634
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
635
|
-
}, "required", "
|
|
635
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
636
636
|
vo2_samples: import("convex/values").VArray<{
|
|
637
637
|
timestamp?: string | undefined;
|
|
638
638
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
@@ -467,8 +467,8 @@ export declare const bodyValidator: {
|
|
|
467
467
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
468
468
|
avg_saturation_percentage?: number | undefined;
|
|
469
469
|
saturation_samples?: {
|
|
470
|
-
type?: number | undefined;
|
|
471
470
|
timestamp?: string | undefined;
|
|
471
|
+
type?: number | undefined;
|
|
472
472
|
percentage?: number | undefined;
|
|
473
473
|
}[] | undefined;
|
|
474
474
|
vo2_samples?: {
|
|
@@ -478,18 +478,18 @@ export declare const bodyValidator: {
|
|
|
478
478
|
} | undefined, {
|
|
479
479
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
480
480
|
saturation_samples: import("convex/values").VArray<{
|
|
481
|
-
type?: number | undefined;
|
|
482
481
|
timestamp?: string | undefined;
|
|
482
|
+
type?: number | undefined;
|
|
483
483
|
percentage?: number | undefined;
|
|
484
484
|
}[] | undefined, import("convex/values").VObject<{
|
|
485
|
-
type?: number | undefined;
|
|
486
485
|
timestamp?: string | undefined;
|
|
486
|
+
type?: number | undefined;
|
|
487
487
|
percentage?: number | undefined;
|
|
488
488
|
}, {
|
|
489
489
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
490
490
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
491
491
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
492
|
-
}, "required", "
|
|
492
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
493
493
|
vo2_samples: import("convex/values").VArray<{
|
|
494
494
|
timestamp?: string | undefined;
|
|
495
495
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
@@ -562,8 +562,8 @@ export declare const dailyValidator: {
|
|
|
562
562
|
vo2max_ml_per_min_per_kg?: number | undefined;
|
|
563
563
|
avg_saturation_percentage?: number | undefined;
|
|
564
564
|
saturation_samples?: {
|
|
565
|
-
type?: number | undefined;
|
|
566
565
|
timestamp?: string | undefined;
|
|
566
|
+
type?: number | undefined;
|
|
567
567
|
percentage?: number | undefined;
|
|
568
568
|
}[] | undefined;
|
|
569
569
|
vo2_samples?: {
|
|
@@ -573,18 +573,18 @@ export declare const dailyValidator: {
|
|
|
573
573
|
} | undefined, {
|
|
574
574
|
avg_saturation_percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
575
575
|
saturation_samples: import("convex/values").VArray<{
|
|
576
|
-
type?: number | undefined;
|
|
577
576
|
timestamp?: string | undefined;
|
|
577
|
+
type?: number | undefined;
|
|
578
578
|
percentage?: number | undefined;
|
|
579
579
|
}[] | undefined, import("convex/values").VObject<{
|
|
580
|
-
type?: number | undefined;
|
|
581
580
|
timestamp?: string | undefined;
|
|
581
|
+
type?: number | undefined;
|
|
582
582
|
percentage?: number | undefined;
|
|
583
583
|
}, {
|
|
584
584
|
timestamp: import("convex/values").VString<string | undefined, "optional">;
|
|
585
585
|
percentage: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
586
586
|
type: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
587
|
-
}, "required", "
|
|
587
|
+
}, "required", "timestamp" | "type" | "percentage">, "optional">;
|
|
588
588
|
vo2_samples: import("convex/values").VArray<{
|
|
589
589
|
timestamp?: string | undefined;
|
|
590
590
|
vo2max_ml_per_min_per_kg?: number | undefined;
|