hevy-shared 1.0.1035 → 1.0.1036

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/built/index.d.ts CHANGED
@@ -1406,7 +1406,8 @@ export type CommercialGym = {
1406
1406
  name: string;
1407
1407
  fullAddress: string;
1408
1408
  city: string;
1409
- distanceM: number;
1409
+ latitude: number;
1410
+ longitude: number;
1410
1411
  };
1411
1412
  export type HomeGym = {
1412
1413
  type: 'home';
@@ -11,7 +11,7 @@ export interface WorkoutSync {
11
11
  isMore: boolean;
12
12
  updated_at?: string;
13
13
  }
14
- export type Workout = OwnedWorkout & Partial<UserWorkout>;
15
- export type WorkoutExercise = OwnedWorkoutExercise & Partial<UserWorkoutExercise>;
16
- export type WorkoutExerciseSet = OwnedWorkoutExerciseSet & Partial<UserWorkoutExerciseSet>;
14
+ export type Workout = OwnedWorkout | UserWorkout;
15
+ export type WorkoutExercise = OwnedWorkoutExercise | UserWorkoutExercise;
16
+ export type WorkoutExerciseSet = OwnedWorkoutExerciseSet | UserWorkoutExerciseSet;
17
17
  export declare function isOwnedWorkout(workout: OwnedWorkout | UserWorkout): workout is OwnedWorkout;
@@ -20,8 +20,7 @@ __exportStar(require("./userWorkout"), exports);
20
20
  __exportStar(require("./publicWorkout"), exports);
21
21
  __exportStar(require("./normalizedWorkout"), exports);
22
22
  __exportStar(require("./postWorkoutRequest"), exports);
23
- // Stub
23
+ // Placeholder, will be done better but this works for now
24
24
  function isOwnedWorkout(workout) {
25
- void workout;
26
- return true;
25
+ return 'gymId' in workout;
27
26
  }
@@ -25,7 +25,6 @@ export interface UserWorkout {
25
25
  apple_watch: boolean;
26
26
  wearos_watch: boolean;
27
27
  verified: boolean;
28
- created_at: string;
29
28
  updated_at: string;
30
29
  nth_workout: number;
31
30
  /**
@@ -39,13 +38,8 @@ export interface UserWorkout {
39
38
  */
40
39
  include_warmup_sets: boolean;
41
40
  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
41
  biometrics?: WorkoutBiometrics;
47
42
  is_biometrics_public: boolean;
48
- trainer_program_id: string | undefined;
49
43
  gym: UserWorkoutGym | undefined;
50
44
  }
51
45
  export interface UserWorkoutExercise {
@@ -28,21 +28,7 @@ export interface OwnedWorkout {
28
28
  created_at: string;
29
29
  updated_at: string;
30
30
  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
31
  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
32
  biometrics?: WorkoutBiometrics;
47
33
  is_biometrics_public: boolean;
48
34
  trainer_program_id: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.1035",
3
+ "version": "1.0.1036",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",