hevy-shared 1.0.1008 → 1.0.1010
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,7 @@ export interface Workout {
|
|
|
888
888
|
biometrics?: WorkoutBiometrics;
|
|
889
889
|
is_biometrics_public: boolean;
|
|
890
890
|
trainer_program_id: string | undefined;
|
|
891
|
-
gym:
|
|
891
|
+
gym: WorkoutGym | undefined;
|
|
892
892
|
}
|
|
893
893
|
export interface CustomExerciseImage {
|
|
894
894
|
type: 'image';
|
|
@@ -968,7 +968,7 @@ export interface PostWorkoutRequestWorkout {
|
|
|
968
968
|
biometrics?: WorkoutBiometrics;
|
|
969
969
|
is_biometrics_public: boolean;
|
|
970
970
|
trainer_program_id: string | undefined;
|
|
971
|
-
gym:
|
|
971
|
+
gym: WorkoutGym | undefined;
|
|
972
972
|
}
|
|
973
973
|
export type WorkoutDataImporterReport = {
|
|
974
974
|
state: 'idle';
|
|
@@ -1633,6 +1633,13 @@ export type HomeGym = {
|
|
|
1633
1633
|
type: 'home';
|
|
1634
1634
|
};
|
|
1635
1635
|
export type Gym = CommercialGym | HomeGym;
|
|
1636
|
+
export type GymType = Gym['type'];
|
|
1637
|
+
export type WorkoutGym = {
|
|
1638
|
+
id: string;
|
|
1639
|
+
type: GymType;
|
|
1640
|
+
name: string;
|
|
1641
|
+
city: string;
|
|
1642
|
+
};
|
|
1636
1643
|
export interface StripePrice {
|
|
1637
1644
|
product_id: string;
|
|
1638
1645
|
billing_period: 'month' | 'year' | 'pay-once';
|
|
@@ -2009,16 +2016,12 @@ export interface ExerciseHistoryWorkout {
|
|
|
2009
2016
|
export declare const supportedScopes: readonly ["read-workout", "modify-workout", "read-routine", "modify-routine", "unrestricted"];
|
|
2010
2017
|
export type OAuthScope = Lookup<typeof supportedScopes>;
|
|
2011
2018
|
export declare const isOAuthScope: (x: string) => x is OAuthScope;
|
|
2012
|
-
export type WorkoutMediaBackoffice = WorkoutMedia & {
|
|
2013
|
-
deleted: boolean;
|
|
2014
|
-
notes?: string;
|
|
2015
|
-
};
|
|
2016
2019
|
export interface WorkoutsWithMediaBackofficeResponse {
|
|
2017
2020
|
username: string;
|
|
2018
2021
|
workouts: {
|
|
2019
2022
|
id: string;
|
|
2020
2023
|
name: string;
|
|
2021
|
-
media:
|
|
2024
|
+
media: WorkoutMedia[];
|
|
2022
2025
|
}[];
|
|
2023
2026
|
}
|
|
2024
2027
|
export interface GetAccountsByEmailResponse {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExerciseType,
|
|
1
|
+
import { ExerciseType, RPE, SetType, ShareToPlatform, WorkoutBiometrics, WorkoutGym, 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,7 @@ export interface NormalizedWorkout {
|
|
|
36
36
|
clientId: string;
|
|
37
37
|
biometrics?: WorkoutBiometrics;
|
|
38
38
|
trainerProgramId: string | undefined;
|
|
39
|
-
gym:
|
|
39
|
+
gym: WorkoutGym | undefined;
|
|
40
40
|
}
|
|
41
41
|
export interface NormalizedSet {
|
|
42
42
|
index: number;
|