hevy-shared 1.0.792 → 1.0.793

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.
@@ -5,6 +5,7 @@ export type HevyTrainerProgramEquipment = Extract<Equipment, 'barbell' | 'dumbbe
5
5
  export declare const hevyTrainerExerciseCategories: readonly ["compound", "isolation"];
6
6
  export type WorkoutDurationMinutes = typeof workoutDurationOptions[number];
7
7
  export declare const workoutDurationOptions: readonly [40, 60, 80];
8
+ export declare const defaultDurationPerFrequency: Record<WeeklyTrainingFrequency, WorkoutDurationMinutes>;
8
9
  export declare const routineNames: readonly ["full_body_1", "full_body_2_a", "full_body_2_b", "full_body_3_a", "full_body_3_b", "full_body_3_c", "upper_1_a", "lower_1_a", "upper_1_b", "lower_1_b", "push_1", "pull_1", "legs_1", "upper_2", "lower_2", "push_2_a", "pull_2_a", "legs_2_a", "push_2_b", "pull_2_b", "legs_2_b"];
9
10
  export type exerciseId = string;
10
11
  export interface ExerciseSelectionCriteria {
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateProgram = exports.pickExerciseForPrescription = exports.getPrioritySortedExercises = exports.getTrainerRestTimerSeconds = exports.getTrainerRepRange = exports.getTrainerSetCount = exports.programSplits = exports.frequencyMap = exports.routineNames = exports.workoutDurationOptions = exports.hevyTrainerExerciseCategories = void 0;
3
+ exports.generateProgram = exports.pickExerciseForPrescription = exports.getPrioritySortedExercises = exports.getTrainerRestTimerSeconds = exports.getTrainerRepRange = exports.getTrainerSetCount = exports.programSplits = exports.frequencyMap = exports.routineNames = exports.defaultDurationPerFrequency = exports.workoutDurationOptions = exports.hevyTrainerExerciseCategories = void 0;
4
4
  const _1 = require(".");
5
5
  const MAX_BARBELL_EXERCISES_PER_ROUTINE = 2;
6
6
  exports.hevyTrainerExerciseCategories = ['compound', 'isolation'];
7
7
  exports.workoutDurationOptions = [40, 60, 80];
8
+ // These are the values that Philip decided for the default duration per frequency
9
+ exports.defaultDurationPerFrequency = {
10
+ 1: 80,
11
+ 2: 60,
12
+ 3: 60,
13
+ 4: 60,
14
+ 5: 40,
15
+ 6: 40,
16
+ };
8
17
  exports.routineNames = [
9
18
  // Full body 1x
10
19
  'full_body_1',
package/built/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { WorkoutDurationMinutes } from './hevyTrainer';
1
2
  import { Lookup } from './typeUtils';
2
3
  export * from './constants';
3
4
  export * from './utils';
@@ -1217,6 +1218,7 @@ export interface HevyTrainerProgram {
1217
1218
  focus_muscle?: SimplifiedMuscleGroup;
1218
1219
  next_workout_index: number;
1219
1220
  workout_tab_ai_insights?: string;
1221
+ workout_duration_minutes?: WorkoutDurationMinutes;
1220
1222
  }
1221
1223
  export interface PostHevyTrainerProgramRequestBody {
1222
1224
  program: {
@@ -1228,6 +1230,7 @@ export interface PostHevyTrainerProgramRequestBody {
1228
1230
  focus_muscle?: SimplifiedMuscleGroup;
1229
1231
  routines: RoutineUpdate[];
1230
1232
  next_workout_index?: number;
1233
+ workout_duration_minutes?: WorkoutDurationMinutes;
1231
1234
  };
1232
1235
  }
1233
1236
  export declare const measurementsList: readonly ["weight_kg", "lean_mass_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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.792",
3
+ "version": "1.0.793",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",