@krampa/common 0.4.0 → 0.5.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.
@@ -10,7 +10,7 @@ export declare const GOAL_TYPES: {
10
10
  readonly WORKOUT_CARDIO: "workout/cardio";
11
11
  readonly WORKOUT_OTHER: "workout/other";
12
12
  readonly ACHIEVEMENT_PR: "achievement/pr";
13
- readonly ACHIEVEMENT_STEPS: "steps/daily";
13
+ readonly STEPS_DAILY: "steps/daily";
14
14
  readonly MEASUREMENT_BODY: "measurement/body";
15
15
  readonly CUSTOM_OTHER: "custom/other";
16
16
  };
@@ -17,7 +17,7 @@ exports.GOAL_TYPES = {
17
17
  WORKOUT_OTHER: "workout/other",
18
18
  // Achievement goals
19
19
  ACHIEVEMENT_PR: "achievement/pr",
20
- ACHIEVEMENT_STEPS: "steps/daily",
20
+ STEPS_DAILY: "steps/daily",
21
21
  // Other
22
22
  MEASUREMENT_BODY: "measurement/body",
23
23
  CUSTOM_OTHER: "custom/other",
@@ -31,7 +31,7 @@ exports.GOAL_TYPE_VALUES = [
31
31
  exports.GOAL_TYPES.WORKOUT_CARDIO,
32
32
  exports.GOAL_TYPES.WORKOUT_OTHER,
33
33
  exports.GOAL_TYPES.ACHIEVEMENT_PR,
34
- exports.GOAL_TYPES.ACHIEVEMENT_STEPS,
34
+ exports.GOAL_TYPES.STEPS_DAILY,
35
35
  exports.GOAL_TYPES.MEASUREMENT_BODY,
36
36
  exports.GOAL_TYPES.CUSTOM_OTHER,
37
37
  ];
@@ -14,6 +14,7 @@ export type WorkoutCardioValue = {
14
14
  weeklyTarget: number;
15
15
  weeklyDistance?: number;
16
16
  weeklyTime?: number;
17
+ workoutTypes: string[];
17
18
  };
18
19
  export type WorkoutOtherValue = {
19
20
  activityName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krampa/common",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Shared types and constants for Krampa fitness challenge app",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",