@krampa/common 0.11.0 → 0.12.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/goal-value-types.d.ts +5 -24
- package/package.json +1 -1
|
@@ -6,20 +6,9 @@ import { GOAL_TYPES } from "./goal-types";
|
|
|
6
6
|
export type WeightValue = {
|
|
7
7
|
targetWeight: number;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type WorkoutValue = {
|
|
10
10
|
activityName: string;
|
|
11
11
|
weeklyTarget: number;
|
|
12
|
-
weeklyDistance?: number;
|
|
13
|
-
weeklyTime?: number;
|
|
14
|
-
workoutTypes: string[];
|
|
15
|
-
};
|
|
16
|
-
export type WorkoutOtherValue = {
|
|
17
|
-
activityName: string;
|
|
18
|
-
weeklyTarget: number;
|
|
19
|
-
};
|
|
20
|
-
export type WorkoutStrengthValue = {
|
|
21
|
-
weeklyTarget: number;
|
|
22
|
-
workoutTypes: string[];
|
|
23
12
|
};
|
|
24
13
|
export type StepsGoalValue = {
|
|
25
14
|
targetSteps: number;
|
|
@@ -37,21 +26,13 @@ export type WeightMaintainGoal = BaseGoal & {
|
|
|
37
26
|
type: typeof GOAL_TYPES.WEIGHT_MAINTAIN;
|
|
38
27
|
value: WeightValue;
|
|
39
28
|
};
|
|
40
|
-
export type
|
|
41
|
-
type: typeof GOAL_TYPES.
|
|
42
|
-
value:
|
|
43
|
-
};
|
|
44
|
-
export type WorkoutCardioGoal = BaseGoal & {
|
|
45
|
-
type: typeof GOAL_TYPES.WORKOUT_CARDIO;
|
|
46
|
-
value: WorkoutCardioValue;
|
|
47
|
-
};
|
|
48
|
-
export type WorkoutOtherGoal = BaseGoal & {
|
|
49
|
-
type: typeof GOAL_TYPES.WORKOUT_OTHER;
|
|
50
|
-
value: WorkoutOtherValue;
|
|
29
|
+
export type WorkoutGoal = BaseGoal & {
|
|
30
|
+
type: typeof GOAL_TYPES.WORKOUT;
|
|
31
|
+
value: WorkoutValue;
|
|
51
32
|
};
|
|
52
33
|
export type StepsGoal = BaseGoal & {
|
|
53
34
|
type: typeof GOAL_TYPES.STEPS_DAILY;
|
|
54
35
|
value: StepsGoalValue;
|
|
55
36
|
};
|
|
56
|
-
export type Goal = WeightLossGoal | WeightGainGoal | WeightMaintainGoal |
|
|
37
|
+
export type Goal = WeightLossGoal | WeightGainGoal | WeightMaintainGoal | WorkoutGoal | StepsGoal;
|
|
57
38
|
export {};
|