hevy-shared 1.0.779 → 1.0.781

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.
@@ -0,0 +1,13 @@
1
+ export interface ClientAuthToken {
2
+ access_token: string;
3
+ refresh_token: string;
4
+ expires_at: Date;
5
+ }
6
+ export interface ClientRefreshTokenRequest {
7
+ refresh_token: string;
8
+ }
9
+ export interface ClientAuthTokenResponse {
10
+ access_token: string;
11
+ refresh_token: string;
12
+ expires_at: string;
13
+ }
package/built/auth.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/built/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { WorkoutDurationMinutes } from './hevyTrainer';
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);
@@ -35,7 +35,6 @@ export interface NormalizedWorkout {
35
35
  };
36
36
  clientId: string;
37
37
  biometrics?: WorkoutBiometrics;
38
- isTrainerWorkout: boolean;
39
38
  }
40
39
  export interface NormalizedSet {
41
40
  index: number;
@@ -153,7 +153,6 @@ class WorkoutBuilder {
153
153
  wearosWatch: false,
154
154
  workoutVisibility: 'public',
155
155
  isWorkoutBiometricsPublic: true,
156
- isTrainerWorkout: false,
157
156
  shareTo: {
158
157
  strava: false,
159
158
  appleHealth: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.779",
3
+ "version": "1.0.781",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",