@trainheroic-unofficial/dto 1.7.3 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +12 -7
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/athlete.d.ts
4
3
  /** `/user/simple` — the identity + tenant key (numeric `id`) for any logged-in account. */
5
4
  declare const userSimpleSchema: z.ZodObject<{
@@ -366,7 +365,8 @@ type AthleteWorkoutExercise = {
366
365
  exerciseId: number | null;
367
366
  title: string;
368
367
  instruction: string | null;
369
- units: Array<string | null>; /** Per-set prescriptions, e.g. ["5 @ 225 lb", "3 @ 245 lb"] or ["AMRAP"]. */
368
+ units: Array<string | null>;
369
+ /** Per-set prescriptions, e.g. ["5 @ 225 lb", "3 @ 245 lb"] or ["AMRAP"]. */
370
370
  prescribed: string[];
371
371
  /**
372
372
  * Per-set values the athlete actually logged, same shape as `prescribed`. Empty when
@@ -418,9 +418,12 @@ type AthleteWorkoutSummary = {
418
418
  date: string;
419
419
  title: string;
420
420
  program: string | null;
421
- team: string | null; /** True when the athlete logged at least one set on this workout. */
422
- logged: boolean; /** True when this is a personal session the athlete created, not a coach-scheduled workout. */
423
- personal: boolean; /** Total prescribed exercises across all blocks. */
421
+ team: string | null;
422
+ /** True when the athlete logged at least one set on this workout. */
423
+ logged: boolean;
424
+ /** True when this is a personal session the athlete created, not a coach-scheduled workout. */
425
+ personal: boolean;
426
+ /** Total prescribed exercises across all blocks. */
424
427
  exerciseCount: number;
425
428
  /**
426
429
  * How many of those exercises have at least one logged set. Read it against exerciseCount
@@ -432,7 +435,8 @@ type AthleteWorkoutSummary = {
432
435
  /** One exercise inside a coach-viewed athlete session (from the calendar summary). */
433
436
  type CoachAthleteExercise = {
434
437
  exerciseId: number | null;
435
- title: string; /** The set summary the API returns, e.g. "5 x 2 @ 205 lb" or "3 x 5 @ 24 in". */
438
+ title: string;
439
+ /** The set summary the API returns, e.g. "5 x 2 @ 205 lb" or "3 x 5 @ 24 in". */
436
440
  summary: string | null;
437
441
  completed: boolean;
438
442
  };
@@ -440,7 +444,8 @@ type CoachAthleteExercise = {
440
444
  type CoachAthleteSession = {
441
445
  workoutId: number | null;
442
446
  savedWorkoutId: number | null;
443
- title: string; /** True when the athlete logged this session (the reliable did-they-train signal). */
447
+ title: string;
448
+ /** True when the athlete logged this session (the reliable did-they-train signal). */
444
449
  logged: boolean;
445
450
  completed: boolean;
446
451
  rpe: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/dto",
3
- "version": "1.7.3",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "zod": "^4.4.3"
26
26
  },
27
27
  "devDependencies": {
28
- "tsdown": "^0.22.3",
28
+ "tsdown": "^0.22.14",
29
29
  "vitest": "^4.1.10"
30
30
  },
31
31
  "scripts": {