hevy-shared 1.0.996 → 1.0.998
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
|
@@ -289,7 +289,6 @@ export interface BackofficeExistingUserResponse {
|
|
|
289
289
|
last_workout_at: string;
|
|
290
290
|
coach_client_status?: 'coached-active-plan' | 'coached-inactive-plan';
|
|
291
291
|
coach_status?: 'coach-active-plan' | 'coach-inactive-plan';
|
|
292
|
-
coach_username?: string;
|
|
293
292
|
notes: string | null;
|
|
294
293
|
is_banned: boolean;
|
|
295
294
|
metadata: UserMetadataResponse | null;
|
|
@@ -888,6 +887,7 @@ export interface Workout {
|
|
|
888
887
|
biometrics?: WorkoutBiometrics;
|
|
889
888
|
is_biometrics_public: boolean;
|
|
890
889
|
trainer_program_id: string | undefined;
|
|
890
|
+
gym: Gym | undefined;
|
|
891
891
|
}
|
|
892
892
|
export interface CustomExerciseImage {
|
|
893
893
|
type: 'image';
|
|
@@ -967,6 +967,7 @@ export interface PostWorkoutRequestWorkout {
|
|
|
967
967
|
biometrics?: WorkoutBiometrics;
|
|
968
968
|
is_biometrics_public: boolean;
|
|
969
969
|
trainer_program_id: string | undefined;
|
|
970
|
+
gym: Gym | undefined;
|
|
970
971
|
}
|
|
971
972
|
export type WorkoutDataImporterReport = {
|
|
972
973
|
state: 'idle';
|
|
@@ -1619,6 +1620,13 @@ export interface UserMetadataResponse {
|
|
|
1619
1620
|
export interface NetworkInfoRequest {
|
|
1620
1621
|
networkType: NetworkType;
|
|
1621
1622
|
}
|
|
1623
|
+
export type Gym = {
|
|
1624
|
+
id: string;
|
|
1625
|
+
name: string;
|
|
1626
|
+
fullAddress: string;
|
|
1627
|
+
city: string;
|
|
1628
|
+
distanceM: number;
|
|
1629
|
+
};
|
|
1622
1630
|
export interface StripePrice {
|
|
1623
1631
|
product_id: string;
|
|
1624
1632
|
billing_period: 'month' | 'year' | 'pay-once';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExerciseType, RPE, SetType, ShareToPlatform, WorkoutBiometrics, WorkoutMedia, WorkoutVisibility } from '.';
|
|
1
|
+
import { ExerciseType, Gym, RPE, SetType, ShareToPlatform, WorkoutBiometrics, WorkoutMedia, WorkoutVisibility } from '.';
|
|
2
2
|
/**
|
|
3
3
|
* Events are used to determine the start time, end time and duration of a
|
|
4
4
|
* `NormalizedWorkout`, in a way that can be persisted to disk.
|
|
@@ -36,6 +36,7 @@ export interface NormalizedWorkout {
|
|
|
36
36
|
clientId: string;
|
|
37
37
|
biometrics?: WorkoutBiometrics;
|
|
38
38
|
trainerProgramId: string | undefined;
|
|
39
|
+
gym: Gym | undefined;
|
|
39
40
|
}
|
|
40
41
|
export interface NormalizedSet {
|
|
41
42
|
index: number;
|
package/built/tests/testUtils.js
CHANGED