@trainheroic-unofficial/dto 0.2.0 → 0.3.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 +8 -4
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -22,10 +22,14 @@ type ExerciseRow = {
22
22
  user_id: number | null;
23
23
  use_count: number;
24
24
  };
25
- /** A row annotated with human-readable unit labels for display. */
26
- type ExerciseView = ExerciseRow & {
27
- param_1_unit: string | null;
28
- param_2_unit: string | null;
25
+ /**
26
+ * A row presented for display. The raw param-type codes are dropped and the fixed
27
+ * measurement units are surfaced positionally in `units`, ordered by entry slot
28
+ * (param 1, then param 2). Positional, not semantic: param 2 is not always the load
29
+ * — some exercises reverse the slots — so the units are not labelled by role.
30
+ */
31
+ type ExerciseView = Omit<ExerciseRow, "param_1_type" | "param_2_type"> & {
32
+ units: Array<string | null>;
29
33
  };
30
34
  /** The outcome of resolving a name: a single match (or null) plus ranked candidates. */
31
35
  type ResolveResult = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/dto",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",