@nativesquare/soma 0.7.3 → 0.9.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 +17 -55
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +63 -13
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +80 -4
- 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 +153 -120
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/garmin/private.d.ts +475 -0
- package/dist/component/garmin/private.d.ts.map +1 -0
- package/dist/component/garmin/private.js +1614 -0
- package/dist/component/garmin/private.js.map +1 -0
- package/dist/component/{garmin.d.ts → garmin/public.d.ts} +25 -52
- package/dist/component/garmin/public.d.ts.map +1 -0
- package/dist/component/{garmin.js → garmin/public.js} +301 -215
- package/dist/component/garmin/public.js.map +1 -0
- package/dist/component/garmin/schemas/activity.d.ts +94 -0
- package/dist/component/garmin/schemas/activity.d.ts.map +1 -0
- package/dist/component/garmin/schemas/activity.js +27 -0
- package/dist/component/garmin/schemas/activity.js.map +1 -0
- package/dist/component/garmin/schemas/activityDetails.d.ts +146 -0
- package/dist/component/garmin/schemas/activityDetails.d.ts.map +1 -0
- package/dist/component/garmin/schemas/activityDetails.js +27 -0
- package/dist/component/garmin/schemas/activityDetails.js.map +1 -0
- package/dist/component/garmin/schemas/bloodPressure.d.ts +38 -0
- package/dist/component/garmin/schemas/bloodPressure.d.ts.map +1 -0
- package/dist/component/garmin/schemas/bloodPressure.js +27 -0
- package/dist/component/garmin/schemas/bloodPressure.js.map +1 -0
- package/dist/component/garmin/schemas/bodyCompositions.d.ts +42 -0
- package/dist/component/garmin/schemas/bodyCompositions.d.ts.map +1 -0
- package/dist/component/garmin/schemas/bodyCompositions.js +27 -0
- package/dist/component/garmin/schemas/bodyCompositions.js.map +1 -0
- package/dist/component/garmin/schemas/dailies.d.ts +98 -0
- package/dist/component/garmin/schemas/dailies.d.ts.map +1 -0
- package/dist/component/garmin/schemas/dailies.js +27 -0
- package/dist/component/garmin/schemas/dailies.js.map +1 -0
- package/dist/component/garmin/schemas/epochs.d.ts +54 -0
- package/dist/component/garmin/schemas/epochs.d.ts.map +1 -0
- package/dist/component/garmin/schemas/epochs.js +27 -0
- package/dist/component/garmin/schemas/epochs.js.map +1 -0
- package/dist/component/garmin/schemas/healthSnapshot.d.ts +48 -0
- package/dist/component/garmin/schemas/healthSnapshot.d.ts.map +1 -0
- package/dist/component/garmin/schemas/healthSnapshot.js +27 -0
- package/dist/component/garmin/schemas/healthSnapshot.js.map +1 -0
- package/dist/component/garmin/schemas/hrvSummary.d.ts +40 -0
- package/dist/component/garmin/schemas/hrvSummary.d.ts.map +1 -0
- package/dist/component/garmin/schemas/hrvSummary.js +27 -0
- package/dist/component/garmin/schemas/hrvSummary.js.map +1 -0
- package/dist/component/garmin/schemas/manuallyUpdatedActivities.d.ts +94 -0
- package/dist/component/garmin/schemas/manuallyUpdatedActivities.d.ts.map +1 -0
- package/dist/component/garmin/schemas/manuallyUpdatedActivities.js +27 -0
- package/dist/component/garmin/schemas/manuallyUpdatedActivities.js.map +1 -0
- package/dist/component/garmin/schemas/menstrualCycleTracking.d.ts +100 -0
- package/dist/component/garmin/schemas/menstrualCycleTracking.d.ts.map +1 -0
- package/dist/component/garmin/schemas/menstrualCycleTracking.js +28 -0
- package/dist/component/garmin/schemas/menstrualCycleTracking.js.map +1 -0
- package/dist/component/garmin/schemas/moveIQ.d.ts +40 -0
- package/dist/component/garmin/schemas/moveIQ.d.ts.map +1 -0
- package/dist/component/garmin/schemas/moveIQ.js +27 -0
- package/dist/component/garmin/schemas/moveIQ.js.map +1 -0
- package/dist/component/garmin/schemas/pulseOx.d.ts +38 -0
- package/dist/component/garmin/schemas/pulseOx.d.ts.map +1 -0
- package/dist/component/garmin/schemas/pulseOx.js +28 -0
- package/dist/component/garmin/schemas/pulseOx.js.map +1 -0
- package/dist/component/garmin/schemas/respiration.d.ts +34 -0
- package/dist/component/garmin/schemas/respiration.d.ts.map +1 -0
- package/dist/component/garmin/schemas/respiration.js +28 -0
- package/dist/component/garmin/schemas/respiration.js.map +1 -0
- package/dist/component/garmin/schemas/skinTemperature.d.ts +36 -0
- package/dist/component/garmin/schemas/skinTemperature.d.ts.map +1 -0
- package/dist/component/garmin/schemas/skinTemperature.js +28 -0
- package/dist/component/garmin/schemas/skinTemperature.js.map +1 -0
- package/dist/component/garmin/schemas/sleeps.d.ts +88 -0
- package/dist/component/garmin/schemas/sleeps.d.ts.map +1 -0
- package/dist/component/garmin/schemas/sleeps.js +27 -0
- package/dist/component/garmin/schemas/sleeps.js.map +1 -0
- package/dist/component/garmin/schemas/stress.d.ts +70 -0
- package/dist/component/garmin/schemas/stress.d.ts.map +1 -0
- package/dist/component/garmin/schemas/stress.js +28 -0
- package/dist/component/garmin/schemas/stress.js.map +1 -0
- package/dist/component/garmin/schemas/userMetrics.d.ts +36 -0
- package/dist/component/garmin/schemas/userMetrics.d.ts.map +1 -0
- package/dist/component/garmin/schemas/userMetrics.js +28 -0
- package/dist/component/garmin/schemas/userMetrics.js.map +1 -0
- package/dist/component/garmin/transform/activity.d.ts +13 -0
- package/dist/component/garmin/transform/activity.d.ts.map +1 -0
- package/dist/component/garmin/transform/activity.js +111 -0
- package/dist/component/garmin/transform/activity.js.map +1 -0
- package/dist/component/garmin/transform/activityDetails.d.ts +13 -0
- package/dist/component/garmin/transform/activityDetails.d.ts.map +1 -0
- package/dist/component/garmin/transform/activityDetails.js +173 -0
- package/dist/component/garmin/transform/activityDetails.js.map +1 -0
- package/dist/component/garmin/transform/bloodPressure.d.ts +12 -0
- package/dist/component/garmin/transform/bloodPressure.d.ts.map +1 -0
- package/dist/component/garmin/transform/bloodPressure.js +33 -0
- package/dist/component/garmin/transform/bloodPressure.js.map +1 -0
- package/dist/component/garmin/transform/bodyCompositions.d.ts +12 -0
- package/dist/component/garmin/transform/bodyCompositions.d.ts.map +1 -0
- package/dist/component/garmin/transform/bodyCompositions.js +42 -0
- package/dist/component/garmin/transform/bodyCompositions.js.map +1 -0
- package/dist/component/garmin/transform/dailies.d.ts +12 -0
- package/dist/component/garmin/transform/dailies.d.ts.map +1 -0
- package/dist/component/garmin/transform/dailies.js +132 -0
- package/dist/component/garmin/transform/dailies.js.map +1 -0
- package/dist/component/garmin/transform/epochs.d.ts +13 -0
- package/dist/component/garmin/transform/epochs.d.ts.map +1 -0
- package/dist/component/garmin/transform/epochs.js +76 -0
- package/dist/component/garmin/transform/epochs.js.map +1 -0
- package/dist/component/garmin/transform/healthSnapshot.d.ts +12 -0
- package/dist/component/garmin/transform/healthSnapshot.d.ts.map +1 -0
- package/dist/component/garmin/transform/healthSnapshot.js +111 -0
- package/dist/component/garmin/transform/healthSnapshot.js.map +1 -0
- package/dist/component/garmin/transform/hrvSummary.d.ts +12 -0
- package/dist/component/garmin/transform/hrvSummary.d.ts.map +1 -0
- package/dist/component/garmin/transform/hrvSummary.js +45 -0
- package/dist/component/garmin/transform/hrvSummary.js.map +1 -0
- package/dist/component/garmin/transform/manuallyUpdatedActivities.d.ts +11 -0
- package/dist/component/garmin/transform/manuallyUpdatedActivities.d.ts.map +1 -0
- package/dist/component/garmin/transform/manuallyUpdatedActivities.js +20 -0
- package/dist/component/garmin/transform/manuallyUpdatedActivities.js.map +1 -0
- package/dist/component/garmin/transform/menstrualCycleTracking.d.ts +10 -0
- package/dist/component/garmin/transform/menstrualCycleTracking.d.ts.map +1 -0
- package/dist/component/garmin/transform/menstrualCycleTracking.js +43 -0
- package/dist/component/garmin/transform/menstrualCycleTracking.js.map +1 -0
- package/dist/component/garmin/transform/moveIQ.d.ts +17 -0
- package/dist/component/garmin/transform/moveIQ.d.ts.map +1 -0
- package/dist/component/garmin/transform/moveIQ.js +41 -0
- package/dist/component/garmin/transform/moveIQ.js.map +1 -0
- package/dist/component/garmin/transform/pulseOx.d.ts +12 -0
- package/dist/component/garmin/transform/pulseOx.d.ts.map +1 -0
- package/dist/component/garmin/transform/pulseOx.js +46 -0
- package/dist/component/garmin/transform/pulseOx.js.map +1 -0
- package/dist/component/garmin/transform/respiration.d.ts +12 -0
- package/dist/component/garmin/transform/respiration.d.ts.map +1 -0
- package/dist/component/garmin/transform/respiration.js +54 -0
- package/dist/component/garmin/transform/respiration.js.map +1 -0
- package/dist/component/garmin/transform/skinTemperature.d.ts +12 -0
- package/dist/component/garmin/transform/skinTemperature.d.ts.map +1 -0
- package/dist/component/garmin/transform/skinTemperature.js +38 -0
- package/dist/component/garmin/transform/skinTemperature.js.map +1 -0
- package/dist/component/garmin/transform/sleeps.d.ts +55 -0
- package/dist/component/garmin/transform/sleeps.d.ts.map +1 -0
- package/dist/component/garmin/transform/sleeps.js +120 -0
- package/dist/component/garmin/transform/sleeps.js.map +1 -0
- package/dist/component/garmin/transform/stress.d.ts +12 -0
- package/dist/component/garmin/transform/stress.d.ts.map +1 -0
- package/dist/component/garmin/transform/stress.js +56 -0
- package/dist/component/garmin/transform/stress.js.map +1 -0
- package/dist/component/garmin/transform/userMetrics.d.ts +12 -0
- package/dist/component/garmin/transform/userMetrics.d.ts.map +1 -0
- package/dist/component/garmin/transform/userMetrics.js +48 -0
- package/dist/component/garmin/transform/userMetrics.js.map +1 -0
- package/dist/component/garmin/types/garmin.d.ts +21 -0
- package/dist/component/garmin/types/garmin.d.ts.map +1 -0
- package/dist/component/garmin/types/garmin.js +6 -0
- package/dist/component/garmin/types/garmin.js.map +1 -0
- package/dist/component/garmin/types/zod/zod.gen.d.ts +1319 -0
- package/dist/component/garmin/types/zod/zod.gen.d.ts.map +1 -0
- package/dist/component/garmin/types/zod/zod.gen.js +784 -0
- package/dist/component/garmin/types/zod/zod.gen.js.map +1 -0
- package/dist/component/garmin/webhooks.d.ts +141 -0
- package/dist/component/garmin/webhooks.d.ts.map +1 -0
- package/dist/component/garmin/webhooks.js +766 -0
- package/dist/component/garmin/webhooks.js.map +1 -0
- package/dist/component/private.d.ts +20 -2
- 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 +433 -387
- 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 +217 -162
- 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/strava/private.d.ts +30 -0
- package/dist/component/strava/private.d.ts.map +1 -0
- package/dist/component/strava/private.js +71 -0
- package/dist/component/strava/private.js.map +1 -0
- package/dist/component/{strava.d.ts → strava/public.d.ts} +3 -31
- package/dist/component/strava/public.d.ts.map +1 -0
- package/dist/component/{strava.js → strava/public.js} +22 -101
- package/dist/component/strava/public.js.map +1 -0
- package/dist/component/validators/activity.d.ts +6 -0
- package/dist/component/validators/activity.d.ts.map +1 -1
- package/dist/component/validators/activity.js.map +1 -1
- package/dist/component/validators/body.d.ts +20 -14
- package/dist/component/validators/body.d.ts.map +1 -1
- package/dist/component/validators/body.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 +46 -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 +2 -2
- package/dist/component/validators/menstruation.d.ts +5 -0
- package/dist/component/validators/menstruation.d.ts.map +1 -1
- package/dist/component/validators/menstruation.js.map +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/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 -4
- package/dist/garmin/index.d.ts.map +1 -1
- package/dist/garmin/index.js +8 -2
- 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 +290 -7
- 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 +138 -56
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +2 -2
- package/dist/validators.js.map +1 -1
- package/package.json +130 -124
- package/src/client/index.ts +86 -18
- package/src/component/_generated/api.ts +96 -4
- package/src/component/_generated/component.ts +271 -144
- package/src/{garmin → component/garmin}/auth.ts +8 -1
- package/src/component/garmin/client.ts +39 -0
- package/src/component/garmin/private.ts +1798 -0
- package/src/component/garmin/public.ts +938 -0
- package/src/component/garmin/schemas/activity.ts +40 -0
- package/src/component/garmin/schemas/activityDetails.ts +45 -0
- package/src/component/garmin/schemas/bloodPressure.ts +38 -0
- package/src/component/garmin/schemas/bodyCompositions.ts +38 -0
- package/src/component/garmin/schemas/dailies.ts +38 -0
- package/src/component/garmin/schemas/epochs.ts +38 -0
- package/src/component/garmin/schemas/healthSnapshot.ts +38 -0
- package/src/component/garmin/schemas/hrvSummary.ts +38 -0
- package/src/component/garmin/schemas/manuallyUpdatedActivities.ts +49 -0
- package/src/component/garmin/schemas/menstrualCycleTracking.ts +39 -0
- package/src/component/garmin/schemas/moveIQ.ts +38 -0
- package/src/component/garmin/schemas/pulseOx.ts +39 -0
- package/src/component/garmin/schemas/respiration.ts +39 -0
- package/src/component/garmin/schemas/skinTemperature.ts +39 -0
- package/src/component/garmin/schemas/sleeps.ts +38 -0
- package/src/component/garmin/schemas/stress.ts +43 -0
- package/src/component/garmin/schemas/userMetrics.ts +39 -0
- package/src/component/garmin/transform/activity.ts +143 -0
- package/src/component/garmin/transform/activityDetails.ts +236 -0
- package/src/component/garmin/transform/bloodPressure.ts +39 -0
- package/src/component/garmin/transform/bodyCompositions.ts +51 -0
- package/src/component/garmin/transform/dailies.ts +179 -0
- package/src/component/garmin/transform/epochs.ts +94 -0
- package/src/component/garmin/transform/healthSnapshot.ts +152 -0
- package/src/component/garmin/transform/hrvSummary.ts +56 -0
- package/src/component/garmin/transform/manuallyUpdatedActivities.ts +27 -0
- package/src/{garmin/maps/activity-type.ts → component/garmin/transform/maps/activityType.ts} +116 -116
- package/src/{garmin/maps/sleep-level.ts → component/garmin/transform/maps/sleepLevel.ts} +22 -22
- package/src/component/garmin/transform/menstrualCycleTracking.ts +48 -0
- package/src/component/garmin/transform/moveIQ.ts +48 -0
- package/src/{garmin → component/garmin/transform}/plannedWorkout.ts +328 -333
- package/src/component/garmin/transform/pulseOx.ts +64 -0
- package/src/component/garmin/transform/respiration.ts +73 -0
- package/src/component/garmin/transform/skinTemperature.ts +44 -0
- package/src/component/garmin/transform/sleeps.ts +159 -0
- package/src/component/garmin/transform/stress.ts +78 -0
- package/src/component/garmin/transform/userMetrics.ts +56 -0
- package/src/component/garmin/types/specs/training-api-workouts.json +699 -0
- package/src/component/garmin/types/specs/wellness-api.json +1 -0
- package/src/component/garmin/types/trainingApiWorkouts/client/client.gen.ts +290 -0
- package/src/component/garmin/types/trainingApiWorkouts/client/index.ts +25 -0
- package/src/component/garmin/types/trainingApiWorkouts/client/types.gen.ts +214 -0
- package/src/component/garmin/types/trainingApiWorkouts/client/utils.gen.ts +316 -0
- package/src/component/garmin/types/trainingApiWorkouts/client.gen.ts +16 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/auth.gen.ts +41 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/bodySerializer.gen.ts +82 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/params.gen.ts +169 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/pathSerializer.gen.ts +171 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/queryKeySerializer.gen.ts +117 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/serverSentEvents.gen.ts +243 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/types.gen.ts +104 -0
- package/src/component/garmin/types/trainingApiWorkouts/core/utils.gen.ts +140 -0
- package/src/component/garmin/types/trainingApiWorkouts/index.ts +4 -0
- package/src/component/garmin/types/trainingApiWorkouts/sdk.gen.ts +126 -0
- package/src/component/garmin/types/trainingApiWorkouts/types.gen.ts +387 -0
- package/src/component/garmin/types/trainingApiWorkouts/zod.gen.ts +423 -0
- package/src/component/garmin/types/wellnessApi/client/client.gen.ts +290 -0
- package/src/component/garmin/types/wellnessApi/client/index.ts +25 -0
- package/src/component/garmin/types/wellnessApi/client/types.gen.ts +214 -0
- package/src/component/garmin/types/wellnessApi/client/utils.gen.ts +316 -0
- package/src/component/garmin/types/wellnessApi/client.gen.ts +16 -0
- package/src/component/garmin/types/wellnessApi/core/auth.gen.ts +41 -0
- package/src/component/garmin/types/wellnessApi/core/bodySerializer.gen.ts +82 -0
- package/src/component/garmin/types/wellnessApi/core/params.gen.ts +169 -0
- package/src/component/garmin/types/wellnessApi/core/pathSerializer.gen.ts +171 -0
- package/src/component/garmin/types/wellnessApi/core/queryKeySerializer.gen.ts +117 -0
- package/src/component/garmin/types/wellnessApi/core/serverSentEvents.gen.ts +243 -0
- package/src/component/garmin/types/wellnessApi/core/types.gen.ts +104 -0
- package/src/component/garmin/types/wellnessApi/core/utils.gen.ts +140 -0
- package/src/component/garmin/types/wellnessApi/index.ts +4 -0
- package/src/component/garmin/types/wellnessApi/sdk.gen.ts +207 -0
- package/src/component/garmin/types/wellnessApi/types.gen.ts +2942 -0
- package/src/component/garmin/types/wellnessApi/zod.gen.ts +878 -0
- package/src/component/garmin/utils.ts +25 -0
- package/src/component/garmin/webhooks.ts +852 -0
- package/src/component/private.ts +21 -0
- package/src/component/public.ts +11 -2
- package/src/component/schema.ts +2 -1
- package/src/component/strava/private.ts +89 -0
- package/src/component/{strava.ts → strava/public.ts} +341 -404
- package/src/component/validators/activity.ts +5 -0
- package/src/component/validators/body.ts +5 -0
- package/src/component/validators/connection.ts +2 -0
- package/src/component/validators/daily.ts +20 -0
- package/src/component/validators/menstruation.ts +5 -1
- package/src/component/validators/plannedWorkout.ts +9 -0
- package/src/validators.ts +12 -2
- package/dist/component/garmin.d.ts.map +0 -1
- package/dist/component/garmin.js.map +0 -1
- package/dist/component/strava.d.ts.map +0 -1
- package/dist/component/strava.js.map +0 -1
- package/dist/garmin/activity.d.ts +0 -101
- package/dist/garmin/activity.d.ts.map +0 -1
- package/dist/garmin/activity.js +0 -207
- package/dist/garmin/activity.js.map +0 -1
- package/src/component/garmin.ts +0 -850
- package/src/garmin/activity.test.ts +0 -178
- package/src/garmin/activity.ts +0 -272
- package/src/garmin/auth.test.ts +0 -103
- package/src/garmin/body.ts +0 -59
- package/src/garmin/client.ts +0 -407
- package/src/garmin/daily.ts +0 -211
- package/src/garmin/index.ts +0 -75
- package/src/garmin/maps/activity-type.test.ts +0 -78
- package/src/garmin/menstruation.ts +0 -42
- package/src/garmin/sleep.test.ts +0 -110
- package/src/garmin/sleep.ts +0 -170
- package/src/garmin/sync.ts +0 -223
- package/src/garmin/types.ts +0 -480
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
export type ClientOptions = {
|
|
4
|
+
baseUrl: 'https://apis.garmin.com' | (string & {});
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type Step = {
|
|
8
|
+
stepOrder?: number;
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type Workout = {
|
|
13
|
+
workoutId?: number;
|
|
14
|
+
ownerId?: number;
|
|
15
|
+
workoutName?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* iso 8601 timestamp without GMT offset or 'Z' indicator!
|
|
19
|
+
*/
|
|
20
|
+
updatedDate?: string;
|
|
21
|
+
/**
|
|
22
|
+
* iso 8601 timestamp without GMT offset or 'Z' indicator!
|
|
23
|
+
*/
|
|
24
|
+
createdDate?: string;
|
|
25
|
+
updatedTimeStamp?: number;
|
|
26
|
+
createdTimeStamp?: number;
|
|
27
|
+
sport?: 'RUNNING' | 'CYCLING' | 'LAP_SWIMMING' | 'STRENGTH_TRAINING' | 'CARDIO_TRAINING' | 'YOGA' | 'PILATES' | 'GENERIC' | 'HIIT' | 'MULTI_SPORT';
|
|
28
|
+
estimatedDurationInSecs?: number;
|
|
29
|
+
estimatedDistanceInMeters?: number;
|
|
30
|
+
poolLength?: number;
|
|
31
|
+
poolLengthUnit?: 'YARD' | 'METER';
|
|
32
|
+
workoutProvider?: string;
|
|
33
|
+
workoutSourceId?: string;
|
|
34
|
+
steps?: Array<WorkoutRepeatStep | WorkoutStep>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type WorkoutRepeatStep = Omit<Step, 'type'> & {
|
|
38
|
+
repeatType?: 'REPEAT_UNTIL_STEPS_CMPLT' | 'REPEAT_UNTIL_TIME' | 'REPEAT_UNTIL_DISTANCE' | 'REPEAT_UNTIL_CALORIES' | 'REPEAT_UNTIL_HR_LESS_THAN' | 'REPEAT_UNTIL_HR_GREATER_THAN' | 'REPEAT_UNTIL_POWER_LESS_THAN' | 'REPEAT_UNTIL_POWER_GREATER_THAN' | 'REPEAT_UNTIL_POWER_LAST_LAP_LESS_THAN' | 'REPEAT_UNTIL_MAX_POWER_LAST_LAP_LESS_THAN' | 'REPEAT_UNTIL_TRAINING_PEAKS_TSS';
|
|
39
|
+
repeatValue?: number;
|
|
40
|
+
skipLastRestStep?: boolean;
|
|
41
|
+
type: 'WorkoutRepeatStep';
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type WorkoutStep = Omit<Step, 'type'> & {
|
|
45
|
+
intensity?: 'ACTIVE' | 'REST' | 'WARMUP' | 'COOLDOWN' | 'RECOVERY' | 'INTERVAL' | 'MAIN';
|
|
46
|
+
description?: string;
|
|
47
|
+
durationType?: 'TIME' | 'DISTANCE' | 'HR_LESS_THAN' | 'HR_GREATER_THAN' | 'CALORIES' | 'OPEN' | 'POWER_LESS_THAN' | 'POWER_GREATER_THAN' | 'TRAINING_PEAKS_TSS' | 'REPETITION_TIME' | 'REPS' | 'TIME_AT_VALID_CDA' | 'FIXED_REST' | 'FIXED_REPETITION' | 'REPETITION_SWIM_CSS_OFFSET';
|
|
48
|
+
durationValue?: number;
|
|
49
|
+
durationValueType?: 'PERCENT' | 'MILE' | 'KILOMETER' | 'METER' | 'YARD';
|
|
50
|
+
targetType?: 'SPEED' | 'HEART_RATE' | 'OPEN' | 'CADENCE' | 'POWER' | 'GRADE' | 'RESISTANCE' | 'POWER_3S' | 'POWER_10S' | 'POWER_30S' | 'POWER_LAP' | 'SWIM_STROKE' | 'SPEED_LAP' | 'HEART_RATE_LAP' | 'PACE' | 'PACE_ZONE' | 'SWIM_INSTRUCTION' | 'SWIM_CSS_OFFSET';
|
|
51
|
+
targetValue?: number;
|
|
52
|
+
targetValueLow?: number;
|
|
53
|
+
targetValueHigh?: number;
|
|
54
|
+
targetValueType?: 'PERCENT' | 'MILE' | 'KILOMETER' | 'METER' | 'YARD';
|
|
55
|
+
secondaryTargetType?: 'SPEED' | 'HEART_RATE' | 'OPEN' | 'CADENCE' | 'POWER' | 'GRADE' | 'RESISTANCE' | 'POWER_3S' | 'POWER_10S' | 'POWER_30S' | 'POWER_LAP' | 'SWIM_STROKE' | 'SPEED_LAP' | 'HEART_RATE_LAP' | 'PACE' | 'PACE_ZONE' | 'SWIM_INSTRUCTION' | 'SWIM_CSS_OFFSET';
|
|
56
|
+
secondaryTargetValue?: number;
|
|
57
|
+
secondaryTargetValueLow?: number;
|
|
58
|
+
secondaryTargetValueHigh?: number;
|
|
59
|
+
secondaryTargetValueType?: 'PERCENT' | 'MILE' | 'KILOMETER' | 'METER' | 'YARD';
|
|
60
|
+
strokeType?: 'BACKSTROKE' | 'BREASTSTROKE' | 'DRILL' | 'BUTTERFLY' | 'FREESTYLE' | 'MIXED' | 'IM' | 'IM_BY_ROUND' | 'REVERSE_IM_BY_ROUND' | 'CHOICE';
|
|
61
|
+
drillType?: 'KICK' | 'PULL' | 'DRILL';
|
|
62
|
+
equipmentType?: 'NONE' | 'SWIM_FINS' | 'SWIM_KICKBOARD' | 'SWIM_PADDLES' | 'SWIM_PULL_BUOY' | 'SWIM_SNORKEL';
|
|
63
|
+
exerciseCategory?: string;
|
|
64
|
+
exerciseName?: string;
|
|
65
|
+
weightValue?: number;
|
|
66
|
+
weightDisplayUnit?: 'OTHER' | 'KILOGRAM' | 'POUND';
|
|
67
|
+
type: 'WorkoutStep';
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type Segment = {
|
|
71
|
+
segmentOrder?: number;
|
|
72
|
+
sport?: 'RUNNING' | 'CYCLING' | 'LAP_SWIMMING' | 'STRENGTH_TRAINING' | 'CARDIO_TRAINING' | 'YOGA' | 'PILATES' | 'GENERIC' | 'HIIT' | 'MULTI_SPORT';
|
|
73
|
+
estimatedDurationInSecs?: number;
|
|
74
|
+
estimatedDistanceInMeters?: number;
|
|
75
|
+
poolLength?: number;
|
|
76
|
+
poolLengthUnit?: 'YARD' | 'METER';
|
|
77
|
+
steps?: Array<WorkoutRepeatStep | WorkoutStep>;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export type WorkoutV2 = {
|
|
81
|
+
workoutId?: number;
|
|
82
|
+
ownerId?: number;
|
|
83
|
+
workoutName?: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
/**
|
|
86
|
+
* iso 8601 timestamp without GMT offset or 'Z' indicator!
|
|
87
|
+
*/
|
|
88
|
+
updatedDate?: string;
|
|
89
|
+
/**
|
|
90
|
+
* iso 8601 timestamp without GMT offset or 'Z' indicator!
|
|
91
|
+
*/
|
|
92
|
+
createdDate?: string;
|
|
93
|
+
updatedTimeStamp?: number;
|
|
94
|
+
createdTimeStamp?: number;
|
|
95
|
+
sport?: 'RUNNING' | 'CYCLING' | 'LAP_SWIMMING' | 'STRENGTH_TRAINING' | 'CARDIO_TRAINING' | 'YOGA' | 'PILATES' | 'GENERIC' | 'HIIT' | 'MULTI_SPORT';
|
|
96
|
+
estimatedDurationInSecs?: number;
|
|
97
|
+
estimatedDistanceInMeters?: number;
|
|
98
|
+
poolLength?: number;
|
|
99
|
+
poolLengthUnit?: 'YARD' | 'METER';
|
|
100
|
+
workoutProvider?: string;
|
|
101
|
+
workoutSourceId?: string;
|
|
102
|
+
isSessionTransitionEnabled?: boolean;
|
|
103
|
+
segments?: Array<Segment>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export type WorkoutSchedule = {
|
|
107
|
+
scheduleId?: number;
|
|
108
|
+
workoutId?: number;
|
|
109
|
+
date?: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export type ServiceFailure = {
|
|
113
|
+
errorType?: string;
|
|
114
|
+
message?: string;
|
|
115
|
+
errorMessage?: string;
|
|
116
|
+
errorId?: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type ConnectErrorBody = {
|
|
120
|
+
message?: string;
|
|
121
|
+
error?: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type DeleteWorkoutData = {
|
|
125
|
+
body?: never;
|
|
126
|
+
path: {
|
|
127
|
+
workoutId: number;
|
|
128
|
+
};
|
|
129
|
+
query?: never;
|
|
130
|
+
url: '/training-api/workout/{workoutId}';
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export type DeleteWorkoutResponses = {
|
|
134
|
+
/**
|
|
135
|
+
* No Content
|
|
136
|
+
*/
|
|
137
|
+
204: void;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export type DeleteWorkoutResponse = DeleteWorkoutResponses[keyof DeleteWorkoutResponses];
|
|
141
|
+
|
|
142
|
+
export type GetWorkoutData = {
|
|
143
|
+
body?: never;
|
|
144
|
+
path: {
|
|
145
|
+
workoutId: number;
|
|
146
|
+
};
|
|
147
|
+
query?: never;
|
|
148
|
+
url: '/training-api/workout/{workoutId}';
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export type GetWorkoutErrors = {
|
|
152
|
+
/**
|
|
153
|
+
* Forbidden
|
|
154
|
+
*/
|
|
155
|
+
403: ConnectErrorBody;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type GetWorkoutError = GetWorkoutErrors[keyof GetWorkoutErrors];
|
|
159
|
+
|
|
160
|
+
export type GetWorkoutResponses = {
|
|
161
|
+
/**
|
|
162
|
+
* OK
|
|
163
|
+
*/
|
|
164
|
+
200: Workout;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type GetWorkoutResponse = GetWorkoutResponses[keyof GetWorkoutResponses];
|
|
168
|
+
|
|
169
|
+
export type UpdateWorkoutData = {
|
|
170
|
+
body: Workout;
|
|
171
|
+
path: {
|
|
172
|
+
workoutId: number;
|
|
173
|
+
};
|
|
174
|
+
query?: never;
|
|
175
|
+
url: '/training-api/workout/{workoutId}';
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export type UpdateWorkoutResponses = {
|
|
179
|
+
/**
|
|
180
|
+
* No Content
|
|
181
|
+
*/
|
|
182
|
+
204: void;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export type UpdateWorkoutResponse = UpdateWorkoutResponses[keyof UpdateWorkoutResponses];
|
|
186
|
+
|
|
187
|
+
export type DeleteWorkoutV2Data = {
|
|
188
|
+
body?: never;
|
|
189
|
+
path: {
|
|
190
|
+
workoutId: number;
|
|
191
|
+
};
|
|
192
|
+
query?: never;
|
|
193
|
+
url: '/training-api/workout/v2/{workoutId}';
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export type DeleteWorkoutV2Responses = {
|
|
197
|
+
/**
|
|
198
|
+
* No Content
|
|
199
|
+
*/
|
|
200
|
+
204: void;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export type DeleteWorkoutV2Response = DeleteWorkoutV2Responses[keyof DeleteWorkoutV2Responses];
|
|
204
|
+
|
|
205
|
+
export type GetWorkoutV2Data = {
|
|
206
|
+
body?: never;
|
|
207
|
+
path: {
|
|
208
|
+
workoutId: number;
|
|
209
|
+
};
|
|
210
|
+
query?: never;
|
|
211
|
+
url: '/training-api/workout/v2/{workoutId}';
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type GetWorkoutV2Errors = {
|
|
215
|
+
/**
|
|
216
|
+
* Forbidden
|
|
217
|
+
*/
|
|
218
|
+
403: ConnectErrorBody;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export type GetWorkoutV2Error = GetWorkoutV2Errors[keyof GetWorkoutV2Errors];
|
|
222
|
+
|
|
223
|
+
export type GetWorkoutV2Responses = {
|
|
224
|
+
/**
|
|
225
|
+
* OK
|
|
226
|
+
*/
|
|
227
|
+
200: WorkoutV2;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export type GetWorkoutV2Response = GetWorkoutV2Responses[keyof GetWorkoutV2Responses];
|
|
231
|
+
|
|
232
|
+
export type UpdateWorkoutV2Data = {
|
|
233
|
+
body: WorkoutV2;
|
|
234
|
+
path: {
|
|
235
|
+
workoutId: number;
|
|
236
|
+
};
|
|
237
|
+
query?: never;
|
|
238
|
+
url: '/training-api/workout/v2/{workoutId}';
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type UpdateWorkoutV2Responses = {
|
|
242
|
+
/**
|
|
243
|
+
* No Content
|
|
244
|
+
*/
|
|
245
|
+
204: void;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export type UpdateWorkoutV2Response = UpdateWorkoutV2Responses[keyof UpdateWorkoutV2Responses];
|
|
249
|
+
|
|
250
|
+
export type CreateWorkoutV2Data = {
|
|
251
|
+
body: WorkoutV2;
|
|
252
|
+
path?: never;
|
|
253
|
+
query?: never;
|
|
254
|
+
url: '/workoutportal/workout/v2';
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export type CreateWorkoutV2Responses = {
|
|
258
|
+
/**
|
|
259
|
+
* OK
|
|
260
|
+
*/
|
|
261
|
+
200: WorkoutV2;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type CreateWorkoutV2Response = CreateWorkoutV2Responses[keyof CreateWorkoutV2Responses];
|
|
265
|
+
|
|
266
|
+
export type CreateWorkoutData = {
|
|
267
|
+
body: Workout;
|
|
268
|
+
path?: never;
|
|
269
|
+
query?: never;
|
|
270
|
+
url: '/training-api/workout';
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export type CreateWorkoutResponses = {
|
|
274
|
+
/**
|
|
275
|
+
* OK
|
|
276
|
+
*/
|
|
277
|
+
200: Workout;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export type CreateWorkoutResponse = CreateWorkoutResponses[keyof CreateWorkoutResponses];
|
|
281
|
+
|
|
282
|
+
export type DeleteWorkoutScheduleData = {
|
|
283
|
+
body?: never;
|
|
284
|
+
path: {
|
|
285
|
+
workoutScheduleId: number;
|
|
286
|
+
};
|
|
287
|
+
query?: never;
|
|
288
|
+
url: '/training-api/schedule/{workoutScheduleId}';
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
export type DeleteWorkoutScheduleResponses = {
|
|
292
|
+
/**
|
|
293
|
+
* No Content
|
|
294
|
+
*/
|
|
295
|
+
204: void;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export type DeleteWorkoutScheduleResponse = DeleteWorkoutScheduleResponses[keyof DeleteWorkoutScheduleResponses];
|
|
299
|
+
|
|
300
|
+
export type GetWorkoutScheduleData = {
|
|
301
|
+
body?: never;
|
|
302
|
+
path: {
|
|
303
|
+
workoutScheduleId: number;
|
|
304
|
+
};
|
|
305
|
+
query?: never;
|
|
306
|
+
url: '/training-api/schedule/{workoutScheduleId}';
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
export type GetWorkoutScheduleErrors = {
|
|
310
|
+
/**
|
|
311
|
+
* Forbidden
|
|
312
|
+
*/
|
|
313
|
+
403: ConnectErrorBody;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export type GetWorkoutScheduleError = GetWorkoutScheduleErrors[keyof GetWorkoutScheduleErrors];
|
|
317
|
+
|
|
318
|
+
export type GetWorkoutScheduleResponses = {
|
|
319
|
+
/**
|
|
320
|
+
* OK
|
|
321
|
+
*/
|
|
322
|
+
200: WorkoutSchedule;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
export type GetWorkoutScheduleResponse = GetWorkoutScheduleResponses[keyof GetWorkoutScheduleResponses];
|
|
326
|
+
|
|
327
|
+
export type UpdateWorkoutScheduleData = {
|
|
328
|
+
body: WorkoutSchedule;
|
|
329
|
+
path: {
|
|
330
|
+
workoutScheduleId: number;
|
|
331
|
+
};
|
|
332
|
+
query?: never;
|
|
333
|
+
url: '/training-api/schedule/{workoutScheduleId}';
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
export type UpdateWorkoutScheduleResponses = {
|
|
337
|
+
/**
|
|
338
|
+
* No Content
|
|
339
|
+
*/
|
|
340
|
+
204: void;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export type UpdateWorkoutScheduleResponse = UpdateWorkoutScheduleResponses[keyof UpdateWorkoutScheduleResponses];
|
|
344
|
+
|
|
345
|
+
export type QueryWorkoutScheduleByDatesData = {
|
|
346
|
+
body?: never;
|
|
347
|
+
path?: never;
|
|
348
|
+
query: {
|
|
349
|
+
startDate: string;
|
|
350
|
+
endDate: string;
|
|
351
|
+
};
|
|
352
|
+
url: '/training-api/schedule';
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
export type QueryWorkoutScheduleByDatesErrors = {
|
|
356
|
+
/**
|
|
357
|
+
* Forbidden
|
|
358
|
+
*/
|
|
359
|
+
403: ConnectErrorBody;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
export type QueryWorkoutScheduleByDatesError = QueryWorkoutScheduleByDatesErrors[keyof QueryWorkoutScheduleByDatesErrors];
|
|
363
|
+
|
|
364
|
+
export type QueryWorkoutScheduleByDatesResponses = {
|
|
365
|
+
/**
|
|
366
|
+
* OK
|
|
367
|
+
*/
|
|
368
|
+
200: Array<WorkoutSchedule>;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
export type QueryWorkoutScheduleByDatesResponse = QueryWorkoutScheduleByDatesResponses[keyof QueryWorkoutScheduleByDatesResponses];
|
|
372
|
+
|
|
373
|
+
export type CreateWorkoutScheduleData = {
|
|
374
|
+
body: WorkoutSchedule;
|
|
375
|
+
path?: never;
|
|
376
|
+
query?: never;
|
|
377
|
+
url: '/training-api/schedule';
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
export type CreateWorkoutScheduleResponses = {
|
|
381
|
+
/**
|
|
382
|
+
* OK
|
|
383
|
+
*/
|
|
384
|
+
200: number;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
export type CreateWorkoutScheduleResponse = CreateWorkoutScheduleResponses[keyof CreateWorkoutScheduleResponses];
|