ts-trainingpeaks 0.1.2 → 0.1.4

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/README.md +5 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -172,6 +172,11 @@ const userId = await garmin.getUserId(tokens.accessToken) // the key push notifi
172
172
  const legacy = new GarminConnectClient()
173
173
  await legacy.login('email@example.com', 'password')
174
174
  const activities = await legacy.getActivities(new Date('2024-01-01'))
175
+ const { bytes, filename } = await legacy.downloadOriginalActivity(activityId) // "Export Original" zip, in memory
176
+ // Structured workouts onto the watch: into the library, then onto a day
177
+ const { workoutId } = await legacy.createWorkout(workout) // Connect's workout JSON
178
+ const { workoutScheduleId } = await legacy.scheduleWorkout(workoutId, '2026-10-20')
179
+ await legacy.deleteWorkout(workoutId) // a 404 counts as done
175
180
 
176
181
  // Strava
177
182
  const strava = new StravaClient({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ts-trainingpeaks",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "description": "Zero-dependency TrainingPeaks API client with browser-based authentication",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",