@trainheroic-unofficial/dto 0.1.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.
- package/dist/index.d.mts +8 -4
- package/package.json +2 -2
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
|
-
/**
|
|
26
|
-
type
|
|
27
|
-
|
|
28
|
-
|
|
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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trainheroic-unofficial/dto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/alandotcom/trainheroic-
|
|
7
|
+
"url": "https://github.com/alandotcom/trainheroic-unofficial.git",
|
|
8
8
|
"directory": "packages/dto"
|
|
9
9
|
},
|
|
10
10
|
"description": "Domain DTOs and zod schemas for TrainHeroic — the single source of truth for shapes.",
|