hevy-shared 1.0.1006 → 1.0.1007

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
@@ -888,7 +888,6 @@ export interface Workout {
888
888
  biometrics?: WorkoutBiometrics;
889
889
  is_biometrics_public: boolean;
890
890
  trainer_program_id: string | undefined;
891
- gym: Gym | undefined;
892
891
  }
893
892
  export interface CustomExerciseImage {
894
893
  type: 'image';
@@ -968,7 +967,6 @@ export interface PostWorkoutRequestWorkout {
968
967
  biometrics?: WorkoutBiometrics;
969
968
  is_biometrics_public: boolean;
970
969
  trainer_program_id: string | undefined;
971
- gym: Gym | undefined;
972
970
  }
973
971
  export type WorkoutDataImporterReport = {
974
972
  state: 'idle';
@@ -1025,7 +1023,7 @@ export interface PostWorkoutRequestSet {
1025
1023
  * update the corresponding values of the workout in the database, and those
1026
1024
  * that are undefined will not be changed.
1027
1025
  */
1028
- export type UpdateWorkoutRequestWorkout = Partial<Pick<PostWorkoutRequestWorkout, 'title' | 'description' | 'media' | 'exercises' | 'is_private' | 'is_biometrics_public' | 'gym'>> & {
1026
+ export type UpdateWorkoutRequestWorkout = Partial<Pick<PostWorkoutRequestWorkout, 'title' | 'description' | 'media' | 'exercises' | 'is_private' | 'is_biometrics_public'>> & {
1029
1027
  start_and_end_time?: Required<Pick<PostWorkoutRequestWorkout, 'start_time' | 'end_time'>>;
1030
1028
  };
1031
1029
  /** Routines */
@@ -1621,18 +1619,6 @@ export interface UserMetadataResponse {
1621
1619
  export interface NetworkInfoRequest {
1622
1620
  networkType: NetworkType;
1623
1621
  }
1624
- export type CommercialGym = {
1625
- type: 'commercial';
1626
- id: string;
1627
- name: string;
1628
- fullAddress: string;
1629
- city: string;
1630
- distanceM: number;
1631
- };
1632
- export type HomeGym = {
1633
- type: 'home';
1634
- };
1635
- export type Gym = CommercialGym | HomeGym;
1636
1622
  export interface StripePrice {
1637
1623
  product_id: string;
1638
1624
  billing_period: 'month' | 'year' | 'pay-once';
@@ -2009,12 +1995,16 @@ export interface ExerciseHistoryWorkout {
2009
1995
  export declare const supportedScopes: readonly ["read-workout", "modify-workout", "read-routine", "modify-routine", "unrestricted"];
2010
1996
  export type OAuthScope = Lookup<typeof supportedScopes>;
2011
1997
  export declare const isOAuthScope: (x: string) => x is OAuthScope;
1998
+ export type WorkoutMediaBackoffice = WorkoutMedia & {
1999
+ deleted: boolean;
2000
+ notes?: string;
2001
+ };
2012
2002
  export interface WorkoutsWithMediaBackofficeResponse {
2013
2003
  username: string;
2014
2004
  workouts: {
2015
2005
  id: string;
2016
2006
  name: string;
2017
- media: WorkoutMedia[];
2007
+ media: WorkoutMediaBackoffice[];
2018
2008
  }[];
2019
2009
  }
2020
2010
  export interface GetAccountsByEmailResponse {
@@ -1,4 +1,4 @@
1
- import { ExerciseType, Gym, RPE, SetType, ShareToPlatform, WorkoutBiometrics, WorkoutMedia, WorkoutVisibility } from '.';
1
+ import { ExerciseType, 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,7 +36,6 @@ export interface NormalizedWorkout {
36
36
  clientId: string;
37
37
  biometrics?: WorkoutBiometrics;
38
38
  trainerProgramId: string | undefined;
39
- gym: Gym | undefined;
40
39
  }
41
40
  export interface NormalizedSet {
42
41
  index: number;
@@ -161,7 +161,6 @@ class WorkoutBuilder {
161
161
  healthConnect: false,
162
162
  },
163
163
  clientId: '',
164
- gym: undefined,
165
164
  });
166
165
  this._exercises = [];
167
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.1006",
3
+ "version": "1.0.1007",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",