@stuartshay/otel-data-types 1.0.249 → 1.0.252
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/index.d.ts +105 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -230,6 +230,30 @@ export type paths = {
|
|
|
230
230
|
patch?: never;
|
|
231
231
|
trace?: never;
|
|
232
232
|
};
|
|
233
|
+
"/api/v1/garmin/activity-totals": {
|
|
234
|
+
parameters: {
|
|
235
|
+
query?: never;
|
|
236
|
+
header?: never;
|
|
237
|
+
path?: never;
|
|
238
|
+
cookie?: never;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* List Activity Totals
|
|
242
|
+
* @description Aggregate Garmin activities into period totals (week / month / year).
|
|
243
|
+
*
|
|
244
|
+
* Buckets are computed via ``DATE_TRUNC(period, start_time)`` and ordered by
|
|
245
|
+
* ``period_start`` ascending. Each row contains activity count plus sum of
|
|
246
|
+
* distance, duration, ascent, and calories. Empty result returns ``[]``.
|
|
247
|
+
*/
|
|
248
|
+
get: operations["list_activity_totals_api_v1_garmin_activity_totals_get"];
|
|
249
|
+
put?: never;
|
|
250
|
+
post?: never;
|
|
251
|
+
delete?: never;
|
|
252
|
+
options?: never;
|
|
253
|
+
head?: never;
|
|
254
|
+
patch?: never;
|
|
255
|
+
trace?: never;
|
|
256
|
+
};
|
|
233
257
|
"/api/v1/garmin/activities/{activity_id}": {
|
|
234
258
|
parameters: {
|
|
235
259
|
query?: never;
|
|
@@ -821,6 +845,51 @@ export type components = {
|
|
|
821
845
|
*/
|
|
822
846
|
track_point_count?: number | null;
|
|
823
847
|
};
|
|
848
|
+
/**
|
|
849
|
+
* GarminActivityTotal
|
|
850
|
+
* @description Aggregated Garmin activity totals for a single time bucket (week/month/year).
|
|
851
|
+
* @example {
|
|
852
|
+
* "activity_count": 12,
|
|
853
|
+
* "period_start": "2025-05-01",
|
|
854
|
+
* "total_ascent_m": 4521,
|
|
855
|
+
* "total_calories": 18234,
|
|
856
|
+
* "total_distance_km": 632.4,
|
|
857
|
+
* "total_duration_seconds": 90123
|
|
858
|
+
* }
|
|
859
|
+
*/
|
|
860
|
+
GarminActivityTotal: {
|
|
861
|
+
/**
|
|
862
|
+
* Period Start
|
|
863
|
+
* Format: date
|
|
864
|
+
* @description UTC start date of the period bucket (week/month/year)
|
|
865
|
+
*/
|
|
866
|
+
period_start: string;
|
|
867
|
+
/**
|
|
868
|
+
* Activity Count
|
|
869
|
+
* @description Number of activities recorded in the period
|
|
870
|
+
*/
|
|
871
|
+
activity_count: number;
|
|
872
|
+
/**
|
|
873
|
+
* Total Distance Km
|
|
874
|
+
* @description Sum of distance in kilometres
|
|
875
|
+
*/
|
|
876
|
+
total_distance_km?: number | null;
|
|
877
|
+
/**
|
|
878
|
+
* Total Duration Seconds
|
|
879
|
+
* @description Sum of active duration in seconds (excludes pauses)
|
|
880
|
+
*/
|
|
881
|
+
total_duration_seconds?: number | null;
|
|
882
|
+
/**
|
|
883
|
+
* Total Ascent M
|
|
884
|
+
* @description Sum of elevation gain in meters
|
|
885
|
+
*/
|
|
886
|
+
total_ascent_m?: number | null;
|
|
887
|
+
/**
|
|
888
|
+
* Total Calories
|
|
889
|
+
* @description Sum of calories burned
|
|
890
|
+
*/
|
|
891
|
+
total_calories?: number | null;
|
|
892
|
+
};
|
|
824
893
|
/**
|
|
825
894
|
* GarminChartPoint
|
|
826
895
|
* @description Lightweight track point optimised for time-series chart rendering.
|
|
@@ -2229,6 +2298,42 @@ export interface operations {
|
|
|
2229
2298
|
};
|
|
2230
2299
|
};
|
|
2231
2300
|
};
|
|
2301
|
+
list_activity_totals_api_v1_garmin_activity_totals_get: {
|
|
2302
|
+
parameters: {
|
|
2303
|
+
query: {
|
|
2304
|
+
/** @description Time bucket for aggregation: week, month, or year */
|
|
2305
|
+
period: "week" | "month" | "year";
|
|
2306
|
+
/** @description Filter to a single sport (e.g. cycling) */
|
|
2307
|
+
sport?: string | null;
|
|
2308
|
+
/** @description Inclusive lower bound on start_time (YYYY-MM-DD, UTC) */
|
|
2309
|
+
date_from?: string | null;
|
|
2310
|
+
/** @description Inclusive upper bound on start_time (YYYY-MM-DD, UTC) */
|
|
2311
|
+
date_to?: string | null;
|
|
2312
|
+
};
|
|
2313
|
+
header?: never;
|
|
2314
|
+
path?: never;
|
|
2315
|
+
cookie?: never;
|
|
2316
|
+
};
|
|
2317
|
+
requestBody?: never;
|
|
2318
|
+
responses: {
|
|
2319
|
+
/** @description Successful Response */
|
|
2320
|
+
200: {
|
|
2321
|
+
headers: {
|
|
2322
|
+
[name: string]: unknown;
|
|
2323
|
+
};
|
|
2324
|
+
content: {
|
|
2325
|
+
"application/json": components["schemas"]["GarminActivityTotal"][];
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
/** @description Invalid query parameter */
|
|
2329
|
+
422: {
|
|
2330
|
+
headers: {
|
|
2331
|
+
[name: string]: unknown;
|
|
2332
|
+
};
|
|
2333
|
+
content?: never;
|
|
2334
|
+
};
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2232
2337
|
get_activity_api_v1_garmin_activities__activity_id__get: {
|
|
2233
2338
|
parameters: {
|
|
2234
2339
|
query?: never;
|