ts-trainingpeaks 0.1.3 → 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 +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -173,6 +173,10 @@ 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
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
176
180
 
177
181
  // Strava
178
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.3",
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",