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