@plus45/types 1.1.24 → 1.1.26
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/index.ts
CHANGED
|
@@ -13,7 +13,10 @@ import { Schedule } from "./types/schedule/schedule";
|
|
|
13
13
|
import { ScheduleDay } from "./types/schedule/schedule_days";
|
|
14
14
|
import { ScheduleRecurrence } from "./types/schedule/schedule_recurrence";
|
|
15
15
|
import { UserSessionInfo } from "./types/user/session_info";
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
CompletedExercise,
|
|
18
|
+
WorkoutExecution
|
|
19
|
+
} from "./types/exercise-executions/exercise_execution";
|
|
17
20
|
|
|
18
21
|
export {
|
|
19
22
|
// User Type Structures
|
|
@@ -23,10 +26,11 @@ export {
|
|
|
23
26
|
|
|
24
27
|
// Exercise Type Structures
|
|
25
28
|
type Exercise,
|
|
26
|
-
type
|
|
29
|
+
type CompletedExercise,
|
|
27
30
|
|
|
28
31
|
// Workout Type Structures
|
|
29
32
|
type Workout,
|
|
33
|
+
type WorkoutExecution,
|
|
30
34
|
|
|
31
35
|
// Schedule Type Structures
|
|
32
36
|
type Schedule,
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import { Exercise } from "../exercise/exercise";
|
|
2
1
|
import { ExerciseUnit } from "../exercise/exercise_units";
|
|
2
|
+
import { Workout } from "../workout/workout";
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type WorkoutExecution = {
|
|
5
5
|
completed?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Completions are a record that point the exercise id (as the key) to the completion containing the value entered as well as the unit.
|
|
9
|
+
*/
|
|
10
|
+
completions: Record<string, CompletedExercise>;
|
|
11
|
+
} & Workout;
|
|
12
|
+
|
|
13
|
+
export type CompletedExercise = {
|
|
14
|
+
exerciseId: string;
|
|
15
|
+
value?: number;
|
|
16
|
+
unit?: ExerciseUnit;
|
|
17
|
+
};
|