hevy-shared 1.0.777 → 1.0.779

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
@@ -1,7 +1,7 @@
1
+ import { WorkoutDurationMinutes } from './hevyTrainer';
1
2
  import { Lookup } from './typeUtils';
2
3
  export * from './constants';
3
4
  export * from './utils';
4
- export * from './auth';
5
5
  export * from './units';
6
6
  export * from './filterExercises';
7
7
  export * from './setIndicatorUtils';
@@ -839,6 +839,7 @@ export interface Workout {
839
839
  logged_by_coach_id?: string;
840
840
  biometrics?: WorkoutBiometrics;
841
841
  is_biometrics_public: boolean;
842
+ is_trainer_workout: boolean;
842
843
  }
843
844
  export interface CustomExerciseImage {
844
845
  type: 'image';
@@ -917,6 +918,7 @@ export interface PostWorkoutRequestWorkout {
917
918
  is_private: boolean;
918
919
  biometrics?: WorkoutBiometrics;
919
920
  is_biometrics_public: boolean;
921
+ is_trainer_workout: boolean;
920
922
  }
921
923
  export declare const isHeartRateSamples: (x: any) => x is HeartRateSample[];
922
924
  export declare const isWorkoutBiometrics: (x: any) => x is WorkoutBiometrics;
@@ -1215,6 +1217,7 @@ export interface HevyTrainerProgram {
1215
1217
  focus_muscle?: SimplifiedMuscleGroup;
1216
1218
  next_workout_index: number;
1217
1219
  workout_tab_ai_insights?: string;
1220
+ workout_duration_minutes?: WorkoutDurationMinutes;
1218
1221
  }
1219
1222
  export interface PostHevyTrainerProgramRequestBody {
1220
1223
  program: {
@@ -1226,6 +1229,7 @@ export interface PostHevyTrainerProgramRequestBody {
1226
1229
  focus_muscle?: SimplifiedMuscleGroup;
1227
1230
  routines: RoutineUpdate[];
1228
1231
  next_workout_index?: number;
1232
+ workout_duration_minutes?: WorkoutDurationMinutes;
1229
1233
  };
1230
1234
  }
1231
1235
  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,7 +19,6 @@ 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);
23
22
  __exportStar(require("./units"), exports);
24
23
  __exportStar(require("./filterExercises"), exports);
25
24
  __exportStar(require("./setIndicatorUtils"), exports);
@@ -35,6 +35,7 @@ export interface NormalizedWorkout {
35
35
  };
36
36
  clientId: string;
37
37
  biometrics?: WorkoutBiometrics;
38
+ isTrainerWorkout: boolean;
38
39
  }
39
40
  export interface NormalizedSet {
40
41
  index: number;
@@ -153,6 +153,7 @@ class WorkoutBuilder {
153
153
  wearosWatch: false,
154
154
  workoutVisibility: 'public',
155
155
  isWorkoutBiometricsPublic: true,
156
+ isTrainerWorkout: false,
156
157
  shareTo: {
157
158
  strava: false,
158
159
  appleHealth: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.777",
3
+ "version": "1.0.779",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",
package/built/auth.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export interface ClientAuthToken {
2
- access_token: string;
3
- refresh_token: string;
4
- expires_at: Date;
5
- }
6
- export interface ClientAuthTokenResponse {
7
- access_token: string;
8
- refresh_token: string;
9
- expires_at: string;
10
- }
package/built/auth.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });