@stuartshay/otel-data-types 1.0.249 → 1.0.255

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.
Files changed (2) hide show
  1. package/index.d.ts +194 -2
  2. 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;
@@ -351,6 +375,26 @@ export type paths = {
351
375
  patch?: never;
352
376
  trace?: never;
353
377
  };
378
+ "/api/v1/gps/daily-summary/date-range": {
379
+ parameters: {
380
+ query?: never;
381
+ header?: never;
382
+ path?: never;
383
+ cookie?: never;
384
+ };
385
+ /**
386
+ * Daily Summary Date Range
387
+ * @description Get the earliest and latest activity dates available in the daily summary view.
388
+ */
389
+ get: operations["daily_summary_date_range_api_v1_gps_daily_summary_date_range_get"];
390
+ put?: never;
391
+ post?: never;
392
+ delete?: never;
393
+ options?: never;
394
+ head?: never;
395
+ patch?: never;
396
+ trace?: never;
397
+ };
354
398
  "/api/v1/reference-locations": {
355
399
  parameters: {
356
400
  query?: never;
@@ -599,6 +643,28 @@ export type components = {
599
643
  */
600
644
  total_calories?: number | null;
601
645
  };
646
+ /**
647
+ * DailySummaryDateRange
648
+ * @description Earliest and latest activity dates available in the daily activity summary.
649
+ * @example {
650
+ * "max_date": "2026-04-06",
651
+ * "min_date": "2024-01-15"
652
+ * }
653
+ */
654
+ DailySummaryDateRange: {
655
+ /**
656
+ * Min Date
657
+ * Format: date
658
+ * @description Earliest activity date with daily summary data
659
+ */
660
+ min_date: string;
661
+ /**
662
+ * Max Date
663
+ * Format: date
664
+ * @description Latest activity date with daily summary data
665
+ */
666
+ max_date: string;
667
+ };
602
668
  /**
603
669
  * DeviceInfo
604
670
  * @description Distinct OwnTracks device identifier.
@@ -821,6 +887,51 @@ export type components = {
821
887
  */
822
888
  track_point_count?: number | null;
823
889
  };
890
+ /**
891
+ * GarminActivityTotal
892
+ * @description Aggregated Garmin activity totals for a single time bucket (week/month/year).
893
+ * @example {
894
+ * "activity_count": 12,
895
+ * "period_start": "2025-05-01",
896
+ * "total_ascent_m": 4521,
897
+ * "total_calories": 18234,
898
+ * "total_distance_km": 632.4,
899
+ * "total_duration_seconds": 90123
900
+ * }
901
+ */
902
+ GarminActivityTotal: {
903
+ /**
904
+ * Period Start
905
+ * Format: date
906
+ * @description UTC start date of the period bucket (week/month/year)
907
+ */
908
+ period_start: string;
909
+ /**
910
+ * Activity Count
911
+ * @description Number of activities recorded in the period
912
+ */
913
+ activity_count: number;
914
+ /**
915
+ * Total Distance Km
916
+ * @description Sum of distance in kilometres
917
+ */
918
+ total_distance_km?: number | null;
919
+ /**
920
+ * Total Duration Seconds
921
+ * @description Sum of active duration in seconds (excludes pauses)
922
+ */
923
+ total_duration_seconds?: number | null;
924
+ /**
925
+ * Total Ascent M
926
+ * @description Sum of elevation gain in meters
927
+ */
928
+ total_ascent_m?: number | null;
929
+ /**
930
+ * Total Calories
931
+ * @description Sum of calories burned
932
+ */
933
+ total_calories?: number | null;
934
+ };
824
935
  /**
825
936
  * GarminChartPoint
826
937
  * @description Lightweight track point optimised for time-series chart rendering.
@@ -1501,6 +1612,29 @@ export type components = {
1501
1612
  */
1502
1613
  timestamp: string;
1503
1614
  };
1615
+ /** PaginatedResponse[DailyActivitySummary] */
1616
+ PaginatedResponse_DailyActivitySummary_: {
1617
+ /**
1618
+ * Items
1619
+ * @description List of items in the current page
1620
+ */
1621
+ items: components["schemas"]["DailyActivitySummary"][];
1622
+ /**
1623
+ * Total
1624
+ * @description Total number of items matching the query
1625
+ */
1626
+ total: number;
1627
+ /**
1628
+ * Limit
1629
+ * @description Maximum number of items per page
1630
+ */
1631
+ limit: number;
1632
+ /**
1633
+ * Offset
1634
+ * @description Number of items skipped from the start
1635
+ */
1636
+ offset: number;
1637
+ };
1504
1638
  /** PaginatedResponse[GarminActivity] */
1505
1639
  PaginatedResponse_GarminActivity_: {
1506
1640
  /**
@@ -2229,6 +2363,42 @@ export interface operations {
2229
2363
  };
2230
2364
  };
2231
2365
  };
2366
+ list_activity_totals_api_v1_garmin_activity_totals_get: {
2367
+ parameters: {
2368
+ query: {
2369
+ /** @description Time bucket for aggregation: week, month, or year */
2370
+ period: "week" | "month" | "year";
2371
+ /** @description Filter to a single sport (e.g. cycling) */
2372
+ sport?: string | null;
2373
+ /** @description Inclusive lower bound on start_time (YYYY-MM-DD, UTC) */
2374
+ date_from?: string | null;
2375
+ /** @description Inclusive upper bound on start_time (YYYY-MM-DD, UTC) */
2376
+ date_to?: string | null;
2377
+ };
2378
+ header?: never;
2379
+ path?: never;
2380
+ cookie?: never;
2381
+ };
2382
+ requestBody?: never;
2383
+ responses: {
2384
+ /** @description Successful Response */
2385
+ 200: {
2386
+ headers: {
2387
+ [name: string]: unknown;
2388
+ };
2389
+ content: {
2390
+ "application/json": components["schemas"]["GarminActivityTotal"][];
2391
+ };
2392
+ };
2393
+ /** @description Invalid query parameter */
2394
+ 422: {
2395
+ headers: {
2396
+ [name: string]: unknown;
2397
+ };
2398
+ content?: never;
2399
+ };
2400
+ };
2401
+ };
2232
2402
  get_activity_api_v1_garmin_activities__activity_id__get: {
2233
2403
  parameters: {
2234
2404
  query?: never;
@@ -2410,8 +2580,10 @@ export interface operations {
2410
2580
  date_from?: string | null;
2411
2581
  /** @description Filter to date (YYYY-MM-DD) */
2412
2582
  date_to?: string | null;
2413
- /** @description Maximum number of daily summaries to return */
2583
+ /** @description Maximum number of daily summaries to return per page */
2414
2584
  limit?: number;
2585
+ /** @description Number of daily summaries to skip for pagination */
2586
+ offset?: number;
2415
2587
  };
2416
2588
  header?: never;
2417
2589
  path?: never;
@@ -2425,7 +2597,7 @@ export interface operations {
2425
2597
  [name: string]: unknown;
2426
2598
  };
2427
2599
  content: {
2428
- "application/json": components["schemas"]["DailyActivitySummary"][];
2600
+ "application/json": components["schemas"]["PaginatedResponse_DailyActivitySummary_"];
2429
2601
  };
2430
2602
  };
2431
2603
  /** @description Validation Error */
@@ -2439,6 +2611,26 @@ export interface operations {
2439
2611
  };
2440
2612
  };
2441
2613
  };
2614
+ daily_summary_date_range_api_v1_gps_daily_summary_date_range_get: {
2615
+ parameters: {
2616
+ query?: never;
2617
+ header?: never;
2618
+ path?: never;
2619
+ cookie?: never;
2620
+ };
2621
+ requestBody?: never;
2622
+ responses: {
2623
+ /** @description Successful Response */
2624
+ 200: {
2625
+ headers: {
2626
+ [name: string]: unknown;
2627
+ };
2628
+ content: {
2629
+ "application/json": components["schemas"]["DailySummaryDateRange"];
2630
+ };
2631
+ };
2632
+ };
2633
+ };
2442
2634
  list_reference_locations_api_v1_reference_locations_get: {
2443
2635
  parameters: {
2444
2636
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stuartshay/otel-data-types",
3
- "version": "1.0.249",
3
+ "version": "1.0.255",
4
4
  "description": "TypeScript types for otel-data-api — Auto-generated from OpenAPI 3.1 specification",
5
5
  "types": "index.d.ts",
6
6
  "exports": {