hevy-shared 1.0.1035 → 1.0.1037
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/workout/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface WorkoutSync {
|
|
|
11
11
|
isMore: boolean;
|
|
12
12
|
updated_at?: string;
|
|
13
13
|
}
|
|
14
|
-
export type Workout = OwnedWorkout
|
|
15
|
-
export type WorkoutExercise = OwnedWorkoutExercise
|
|
16
|
-
export type WorkoutExerciseSet = OwnedWorkoutExerciseSet
|
|
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;
|
package/built/workout/index.js
CHANGED
|
@@ -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
|
-
//
|
|
23
|
+
// Placeholder, will be done better but this works for now
|
|
24
24
|
function isOwnedWorkout(workout) {
|
|
25
|
-
|
|
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;
|