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.
- package/README.md +4 -0
- 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