hevy-shared 1.0.1001 → 1.0.1002

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
@@ -887,6 +887,7 @@ export interface Workout {
887
887
  biometrics?: WorkoutBiometrics;
888
888
  is_biometrics_public: boolean;
889
889
  trainer_program_id: string | undefined;
890
+ gym: Gym | undefined;
890
891
  }
891
892
  export interface CustomExerciseImage {
892
893
  type: 'image';
@@ -966,6 +967,7 @@ export interface PostWorkoutRequestWorkout {
966
967
  biometrics?: WorkoutBiometrics;
967
968
  is_biometrics_public: boolean;
968
969
  trainer_program_id: string | undefined;
970
+ gym: Gym | undefined;
969
971
  }
970
972
  export type WorkoutDataImporterReport = {
971
973
  state: 'idle';
@@ -1618,6 +1620,18 @@ export interface UserMetadataResponse {
1618
1620
  export interface NetworkInfoRequest {
1619
1621
  networkType: NetworkType;
1620
1622
  }
1623
+ export type CommercialGym = {
1624
+ type: 'commercial';
1625
+ id: string;
1626
+ name: string;
1627
+ fullAddress: string;
1628
+ city: string;
1629
+ distanceM: number;
1630
+ };
1631
+ export type HomeGym = {
1632
+ type: 'home';
1633
+ };
1634
+ export type Gym = CommercialGym | HomeGym;
1621
1635
  export interface StripePrice {
1622
1636
  product_id: string;
1623
1637
  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;
@@ -161,6 +161,7 @@ class WorkoutBuilder {
161
161
  healthConnect: false,
162
162
  },
163
163
  clientId: '',
164
+ gym: undefined,
164
165
  });
165
166
  this._exercises = [];
166
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.1001",
3
+ "version": "1.0.1002",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",