hevy-shared 1.0.1047 → 1.0.1049

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.
@@ -36,6 +36,7 @@ export interface NormalizedWorkout {
36
36
  clientId: string;
37
37
  biometrics?: WorkoutBiometrics;
38
38
  trainerProgramId: string | undefined;
39
+ trainerWorkoutTemplateId: string | undefined;
39
40
  gymId: string | undefined;
40
41
  isHomeGym: boolean;
41
42
  }
@@ -39,6 +39,7 @@ export interface PostWorkoutRequestWorkout {
39
39
  biometrics?: WorkoutBiometrics;
40
40
  is_biometrics_public: boolean;
41
41
  trainer_program_id: string | undefined;
42
+ trainer_workout_template_id: string | undefined;
42
43
  gym_id: string | undefined;
43
44
  is_home_gym: boolean;
44
45
  }
@@ -1,4 +1,4 @@
1
- import { DistanceUnit, Equipment, ExerciseType, MuscleGroup, RPE, SetPersonalRecordType, SetType, WeightUnit } from '..';
1
+ import { DistanceUnit, ExerciseType, MuscleGroup, RPE, SetPersonalRecordType, SetType, WeightUnit } from '..';
2
2
  export declare const isPublicWorkout: (x: any) => x is PublicWorkout;
3
3
  export interface PublicWorkout {
4
4
  type: 'public';
@@ -39,11 +39,9 @@ export interface PublicWorkoutExercise {
39
39
  superset_id: number | null;
40
40
  rest_seconds: number | null;
41
41
  notes: string;
42
- priority: number;
43
42
  muscle_group: MuscleGroup;
44
43
  other_muscles: MuscleGroup[];
45
44
  exercise_type: ExerciseType;
46
- equipment_category: Equipment;
47
45
  url?: string;
48
46
  media_type?: string;
49
47
  custom_exercise_image_url?: string | null;
@@ -1,4 +1,4 @@
1
- import { Equipment, ExerciseType, MuscleGroup, PreviewWorkoutLike, RPE, SetPersonalRecordType, SetType, WorkoutBiometrics, WorkoutComment, WorkoutMedia } from '..';
1
+ import { ExerciseType, MuscleGroup, PreviewWorkoutLike, RPE, SetPersonalRecordType, SetType, WorkoutBiometrics, WorkoutComment, WorkoutMedia } from '..';
2
2
  export interface UserWorkout {
3
3
  id: string;
4
4
  short_id: string | null;
@@ -6,13 +6,9 @@ export interface UserWorkout {
6
6
  name: string;
7
7
  description?: string;
8
8
  like_count: number;
9
- /** @deprecated 2.3.4 */
10
- like_images: string[];
11
9
  preview_workout_likes: PreviewWorkoutLike[];
12
10
  comment_count: number;
13
11
  comments: WorkoutComment[];
14
- /** @deprecated 1.28.13 */
15
- image_urls?: string[];
16
12
  media: WorkoutMedia[];
17
13
  is_liked_by_user: boolean;
18
14
  start_time: number;
@@ -25,7 +21,6 @@ export interface UserWorkout {
25
21
  apple_watch: boolean;
26
22
  wearos_watch: boolean;
27
23
  verified: boolean;
28
- created_at: string;
29
24
  updated_at: string;
30
25
  nth_workout: number;
31
26
  /**
@@ -39,13 +34,8 @@ export interface UserWorkout {
39
34
  */
40
35
  include_warmup_sets: boolean;
41
36
  is_private: boolean;
42
- /**
43
- * If applicable, the user ID of the coach who logged this workout
44
- */
45
- logged_by_coach_id?: string;
46
37
  biometrics?: WorkoutBiometrics;
47
38
  is_biometrics_public: boolean;
48
- trainer_program_id: string | undefined;
49
39
  gym: UserWorkoutGym | undefined;
50
40
  }
51
41
  export interface UserWorkoutExercise {
@@ -66,17 +56,10 @@ export interface UserWorkoutExercise {
66
56
  superset_id: number | null;
67
57
  rest_seconds: number | null;
68
58
  notes: string;
69
- priority: number;
70
59
  muscle_group: MuscleGroup;
71
60
  other_muscles: MuscleGroup[];
72
61
  exercise_type: ExerciseType;
73
- equipment_category: Equipment;
74
- url?: string;
75
- media_type?: string;
76
- custom_exercise_image_url?: string | null;
77
62
  thumbnail_url?: string | null;
78
- manual_tag?: string;
79
- aka?: string;
80
63
  /**
81
64
  * for exercises with two dumbbells
82
65
  *
@@ -102,16 +85,6 @@ export interface UserWorkoutExerciseSet {
102
85
  duration_seconds?: number | null;
103
86
  custom_metric?: number | null;
104
87
  rpe?: RPE | null;
105
- /**
106
- * @deprecated 1.29.17 -
107
- * we can only set this to `best_weight`, `best_reps`, `best_duration` or
108
- * `best_distance`. sending anything else would cause older clients to crash.
109
- * newer clients will ignore this field and use the `prs` field instead.
110
- */
111
- personalRecords?: Array<{
112
- type: 'best_weight' | 'best_reps' | 'best_duration' | 'best_distance';
113
- value: number;
114
- }>;
115
88
  prs: {
116
89
  type: SetPersonalRecordType;
117
90
  value: number;
@@ -1,4 +1,4 @@
1
- import { Equipment, ExerciseType, MuscleGroup, PreviewWorkoutLike, RPE, SetPersonalRecordType, SetType, WorkoutBiometrics, WorkoutComment, WorkoutMedia } from '..';
1
+ import { ExerciseType, MuscleGroup, PreviewWorkoutLike, RPE, SetPersonalRecordType, SetType, WorkoutBiometrics, WorkoutComment, WorkoutMedia } from '..';
2
2
  export interface OwnedWorkout {
3
3
  id: string;
4
4
  short_id: string | null;
@@ -6,13 +6,9 @@ export interface OwnedWorkout {
6
6
  name: string;
7
7
  description?: string;
8
8
  like_count: number;
9
- /** @deprecated 2.3.4 */
10
- like_images: string[];
11
9
  preview_workout_likes: PreviewWorkoutLike[];
12
10
  comment_count: number;
13
11
  comments: WorkoutComment[];
14
- /** @deprecated 1.28.13 */
15
- image_urls?: string[];
16
12
  media: WorkoutMedia[];
17
13
  is_liked_by_user: boolean;
18
14
  start_time: number;
@@ -28,24 +24,11 @@ export interface OwnedWorkout {
28
24
  created_at: string;
29
25
  updated_at: string;
30
26
  nth_workout: number;
31
- /**
32
- * See https://github.com/hevyapp/hevy-backend/pull/193 to understand
33
- * why we added estimated_volume_kg
34
- */
35
- estimated_volume_kg: number;
36
- /**
37
- * Whether to include warmup sets in various calculations.
38
- * https://github.com/hevyapp/hevy-shared/pull/312
39
- */
40
- include_warmup_sets: boolean;
41
27
  is_private: boolean;
42
- /**
43
- * If applicable, the user ID of the coach who logged this workout
44
- */
45
- logged_by_coach_id?: string;
46
28
  biometrics?: WorkoutBiometrics;
47
29
  is_biometrics_public: boolean;
48
30
  trainer_program_id: string | undefined;
31
+ trainer_workout_template_id: string | undefined;
49
32
  gym_id: string | undefined;
50
33
  is_home_gym: boolean;
51
34
  }
@@ -70,17 +53,10 @@ export interface OwnedWorkoutExercise {
70
53
  superset_id: number | null;
71
54
  rest_seconds: number | null;
72
55
  notes: string;
73
- priority: number;
74
56
  muscle_group: MuscleGroup;
75
57
  other_muscles: MuscleGroup[];
76
58
  exercise_type: ExerciseType;
77
- equipment_category: Equipment;
78
- url?: string;
79
- media_type?: string;
80
- custom_exercise_image_url?: string | null;
81
59
  thumbnail_url?: string | null;
82
- manual_tag?: string;
83
- aka?: string;
84
60
  /**
85
61
  * for exercises with two dumbbells
86
62
  *
@@ -106,16 +82,6 @@ export interface OwnedWorkoutExerciseSet {
106
82
  duration_seconds?: number | null;
107
83
  custom_metric?: number | null;
108
84
  rpe?: RPE | null;
109
- /**
110
- * @deprecated 1.29.17 -
111
- * we can only set this to `best_weight`, `best_reps`, `best_duration` or
112
- * `best_distance`. sending anything else would cause older clients to crash.
113
- * newer clients will ignore this field and use the `prs` field instead.
114
- */
115
- personalRecords?: Array<{
116
- type: 'best_weight' | 'best_reps' | 'best_duration' | 'best_distance';
117
- value: number;
118
- }>;
119
85
  prs: {
120
86
  type: SetPersonalRecordType;
121
87
  value: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.1047",
3
+ "version": "1.0.1049",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",