hevy-shared 1.0.779 → 1.0.780
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/auth.d.ts +14 -0
- package/built/auth.js +2 -0
- package/built/index.d.ts +3 -6
- package/built/index.js +1 -0
- package/built/normalizedWorkoutUtils.d.ts +0 -1
- package/built/tests/testUtils.js +0 -1
- package/package.json +1 -1
package/built/auth.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ClientAuthToken {
|
|
2
|
+
access_token: string;
|
|
3
|
+
refresh_token: string;
|
|
4
|
+
expires_at: Date;
|
|
5
|
+
}
|
|
6
|
+
export interface ClientRefreshTokenRequest {
|
|
7
|
+
user_id: string;
|
|
8
|
+
refresh_token: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ClientAuthTokenResponse {
|
|
11
|
+
access_token: string;
|
|
12
|
+
refresh_token: string;
|
|
13
|
+
expires_at: string;
|
|
14
|
+
}
|
package/built/auth.js
ADDED
package/built/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientAuthTokenResponse } from './auth';
|
|
2
2
|
import { Lookup } from './typeUtils';
|
|
3
3
|
export * from './constants';
|
|
4
4
|
export * from './utils';
|
|
5
|
+
export * from './auth';
|
|
5
6
|
export * from './units';
|
|
6
7
|
export * from './filterExercises';
|
|
7
8
|
export * from './setIndicatorUtils';
|
|
@@ -210,7 +211,7 @@ export interface GoogleSignUpRequest {
|
|
|
210
211
|
source?: 'web';
|
|
211
212
|
gympassUserId?: string;
|
|
212
213
|
}
|
|
213
|
-
export interface SocialLoginResult {
|
|
214
|
+
export interface SocialLoginResult extends ClientAuthTokenResponse {
|
|
214
215
|
auth_token: string;
|
|
215
216
|
username: string;
|
|
216
217
|
user_id: string;
|
|
@@ -839,7 +840,6 @@ export interface Workout {
|
|
|
839
840
|
logged_by_coach_id?: string;
|
|
840
841
|
biometrics?: WorkoutBiometrics;
|
|
841
842
|
is_biometrics_public: boolean;
|
|
842
|
-
is_trainer_workout: boolean;
|
|
843
843
|
}
|
|
844
844
|
export interface CustomExerciseImage {
|
|
845
845
|
type: 'image';
|
|
@@ -918,7 +918,6 @@ export interface PostWorkoutRequestWorkout {
|
|
|
918
918
|
is_private: boolean;
|
|
919
919
|
biometrics?: WorkoutBiometrics;
|
|
920
920
|
is_biometrics_public: boolean;
|
|
921
|
-
is_trainer_workout: boolean;
|
|
922
921
|
}
|
|
923
922
|
export declare const isHeartRateSamples: (x: any) => x is HeartRateSample[];
|
|
924
923
|
export declare const isWorkoutBiometrics: (x: any) => x is WorkoutBiometrics;
|
|
@@ -1217,7 +1216,6 @@ export interface HevyTrainerProgram {
|
|
|
1217
1216
|
focus_muscle?: SimplifiedMuscleGroup;
|
|
1218
1217
|
next_workout_index: number;
|
|
1219
1218
|
workout_tab_ai_insights?: string;
|
|
1220
|
-
workout_duration_minutes?: WorkoutDurationMinutes;
|
|
1221
1219
|
}
|
|
1222
1220
|
export interface PostHevyTrainerProgramRequestBody {
|
|
1223
1221
|
program: {
|
|
@@ -1229,7 +1227,6 @@ export interface PostHevyTrainerProgramRequestBody {
|
|
|
1229
1227
|
focus_muscle?: SimplifiedMuscleGroup;
|
|
1230
1228
|
routines: RoutineUpdate[];
|
|
1231
1229
|
next_workout_index?: number;
|
|
1232
|
-
workout_duration_minutes?: WorkoutDurationMinutes;
|
|
1233
1230
|
};
|
|
1234
1231
|
}
|
|
1235
1232
|
export declare const measurementsList: readonly ["weight_kg", "fat_percent", "neck_cm", "shoulder_cm", "chest_cm", "left_bicep_cm", "right_bicep_cm", "left_forearm_cm", "right_forearm_cm", "abdomen", "waist", "hips", "left_thigh", "right_thigh", "left_calf", "right_calf"];
|
package/built/index.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.isSuggestedUserSource = exports.isValidUserWorkoutMetricsType = exports.
|
|
|
19
19
|
const typeUtils_1 = require("./typeUtils");
|
|
20
20
|
__exportStar(require("./constants"), exports);
|
|
21
21
|
__exportStar(require("./utils"), exports);
|
|
22
|
+
__exportStar(require("./auth"), exports);
|
|
22
23
|
__exportStar(require("./units"), exports);
|
|
23
24
|
__exportStar(require("./filterExercises"), exports);
|
|
24
25
|
__exportStar(require("./setIndicatorUtils"), exports);
|
package/built/tests/testUtils.js
CHANGED