@trainheroic-unofficial/cli 2.0.1 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/cli",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "zod": "^4.4.3",
24
- "@trainheroic-unofficial/dto": "2.0.1",
25
- "@trainheroic-unofficial/js": "2.0.1"
24
+ "@trainheroic-unofficial/dto": "2.1.0",
25
+ "@trainheroic-unofficial/js": "2.1.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.1.2",
@@ -373,7 +373,7 @@ Deletes a custom exercise. No request body needed. Only works on exercises where
373
373
  | POST | `/v5/sessions/template` | **Create session template** (library) |
374
374
  | DELETE | `/v5/sessions/template/{sessionId}` | **Delete session template** |
375
375
  | POST | `/2.0/coach/calendar/workout/createWorkoutForTimelineDay/{programId}/{day}/null` | **Create session in program** (timeline) |
376
- | POST | `/2.0/coach/calendar/workout/createWorkoutForDay/{calendarId}/{year}/{month}/{day}/0` | **Create session on team calendar date** |
376
+ | POST | `/2.0/coach/calendar/workout/createWorkoutForDay/{calendarId}/{year}/{month}/{day}/0` | **Create session on calendar date** (team or athlete calendar) |
377
377
  | POST | `/2.0/coach/calendar/saveProgramWorkoutSets` | **Add block to session** |
378
378
  | POST | `/2.0/coach/calendar/saveWorkoutSetExercises` | **Add exercise to block** (with prescription) |
379
379
  | POST | `/2.0/coach/calendar/programWorkout/publish` | **Publish session** |
@@ -993,32 +993,33 @@ Returns all available analytics categories and their instances:
993
993
 
994
994
  These are used by the mobile app / athlete-facing client (documented in `train-heroic-schema.yml`):
995
995
 
996
- | Method | Endpoint | Description |
997
- | ------ | ------------------------------------------------------- | ---------------------------------------------- |
998
- | POST | `/auth` | Login |
999
- | GET | `/v5/users/exercises/history` | All exercise history |
1000
- | GET | `/v5/users/exercises/recent` | Recent exercises |
1001
- | GET | `/v5/exercises/{id}/history` | Single exercise history |
1002
- | GET | `/v5/exercises/{id}` | Exercise details |
1003
- | GET | `/v5/exercises/{id}/personalRecords` | Exercise PRs |
1004
- | GET | `/v5/exercises/{id}/stats` | Exercise stats |
1005
- | GET | `/v5/exercises/{id}/stackUp/isSupportedExercise` | Stack-up support check |
1006
- | GET | `/v5/users/circuits/recent` | Recent circuits |
1007
- | GET | `/v5/users/circuits/history` | Circuit history |
1008
- | GET | `/3.0/athlete/programworkout/range?startDate=&endDate=` | Workouts by date range |
1009
- | GET | `/1.0/athlete/programming/programs` | Athlete programs |
1010
- | GET | `/v5/users/{id}` | User profile |
1011
- | GET | `/1.0/athlete/prefs` | Athlete preferences |
1012
- | GET | `/2.0/athlete/workingMax` | Working maxes (all exercises with WM tracking) |
1013
- | GET | `/1.0/athlete/savedworkoutset/{id}` | Saved workout set |
1014
- | GET | `/1.0/athlete/savedworkout/{id}` | Saved workout |
1015
- | GET | `/1.0/user/userInfo` | User info |
1016
- | GET | `/v5/calendars/athletes/{id}/coachAthleteTeam` | Coach-athlete team calendar |
1017
- | GET | `/v5/users/{id}/workingMaxes/{id1}` | Specific working max |
1018
- | GET | `/v5/programs/new` | New programs |
1019
- | GET | `/v5/programs/free` | Free programs |
1020
- | GET | `/v5/athleteProfile/summary` | Athlete profile summary |
1021
- | GET | `/3.0/athlete/leaderboard/{id}` | Leaderboard |
996
+ | Method | Endpoint | Description |
997
+ | ------ | ------------------------------------------------------- | ---------------------------------------------------------- |
998
+ | POST | `/auth` | Login |
999
+ | GET | `/v5/users/exercises/history` | All exercise history |
1000
+ | GET | `/v5/users/exercises/recent` | Recent exercises |
1001
+ | GET | `/v5/exercises/{id}/history` | Single exercise history |
1002
+ | GET | `/v5/exercises/{id}` | Exercise details |
1003
+ | GET | `/v5/exercises/{id}/personalRecords` | Exercise PRs |
1004
+ | GET | `/v5/exercises/{id}/stats` | Exercise stats |
1005
+ | GET | `/v5/exercises/{id}/stackUp/isSupportedExercise` | Stack-up support check |
1006
+ | GET | `/v5/users/circuits/recent` | Recent circuits |
1007
+ | GET | `/v5/users/circuits/history` | Circuit history |
1008
+ | GET | `/3.0/athlete/programworkout/range?startDate=&endDate=` | Workouts by date range |
1009
+ | GET | `/1.0/athlete/programming/programs` | Athlete programs |
1010
+ | GET | `/v5/users/{id}` | User profile |
1011
+ | GET | `/1.0/athlete/prefs` | Athlete preferences |
1012
+ | GET | `/2.0/athlete/workingMax` | Working maxes (all exercises with WM tracking) |
1013
+ | GET | `/1.0/athlete/savedworkoutset/{id}` | Saved workout set |
1014
+ | GET | `/1.0/athlete/savedworkout/{id}` | Saved workout |
1015
+ | GET | `/1.0/user/userInfo` | User info |
1016
+ | GET | `/v5/calendars/athletes/{id}?year=&month=` | **Athlete coach calendar** (program id for CREATE SESSION) |
1017
+ | GET | `/v5/calendars/athletes/{id}/coachAthleteTeam` | Coach-athlete team calendar |
1018
+ | GET | `/v5/users/{id}/workingMaxes/{id1}` | Specific working max |
1019
+ | GET | `/v5/programs/new` | New programs |
1020
+ | GET | `/v5/programs/free` | Free programs |
1021
+ | GET | `/v5/athleteProfile/summary` | Athlete profile summary |
1022
+ | GET | `/3.0/athlete/leaderboard/{id}` | Leaderboard |
1022
1023
 
1023
1024
  ---
1024
1025
 
@@ -1320,16 +1321,22 @@ Saves an existing session as a reusable template in the session library. No requ
1320
1321
 
1321
1322
  #### `PUT /v5/teams/{teamId}`
1322
1323
 
1323
- Updates team properties like title.
1324
+ Updates team properties. `title` is required by the API (HTTP 400 without it). Optional
1325
+ `group_program` re-points the team at an existing parent program/calendar (e.g. another
1326
+ team's `group_program` from `GET /1.0/coach/teams`).
1324
1327
 
1325
1328
  **Request body:**
1326
1329
 
1327
1330
  ```json
1328
1331
  {
1329
- "title": "New Team Name"
1332
+ "title": "New Team Name",
1333
+ "group_program": 4713234
1330
1334
  }
1331
1335
  ```
1332
1336
 
1337
+ `team_create` always auto-creates a calendar; to attach a new team to an existing calendar,
1338
+ create the team then `team_update` / `coach team-update --group-program <id>`.
1339
+
1333
1340
  #### `POST /1.0/coach/team/updatePublishSettings`
1334
1341
 
1335
1342
  Updates the auto-publish settings for a team's program. Takes the full program object with `pub_*` fields controlling auto-publish behavior.