hevy-shared 1.0.1005 → 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';
|
|
@@ -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:
|
|
2007
|
+
media: WorkoutMediaBackoffice[];
|
|
2018
2008
|
}[];
|
|
2019
2009
|
}
|
|
2020
2010
|
export interface GetAccountsByEmailResponse {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExerciseType,
|
|
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;
|
package/built/tests/testUtils.js
CHANGED