hevy-shared 1.0.972 → 1.0.973
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/hevyTrainer.d.ts +2 -2
- package/built/index.d.ts +3 -0
- package/package.json +1 -1
package/built/hevyTrainer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WeeklyTrainingFrequency, TrainingGoal, TrainingLevel, SimplifiedMuscleGroup, MuscleGroup, LibraryExercise, ExerciseCategory, GranularEquipment, HevyTrainerProgramEquipment, RestTimerLength } from '.';
|
|
1
|
+
import { WeeklyTrainingFrequency, TrainingGoal, TrainingLevel, SimplifiedMuscleGroup, MuscleGroup, LibraryExercise, ExerciseCategory, GranularEquipment, HevyTrainerProgramEquipment, RestTimerLength, CardioPreference } from '.';
|
|
2
2
|
export type HevyTrainerExerciseCategory = typeof hevyTrainerExerciseCategories[number];
|
|
3
3
|
export type HevyTrainerRoutineName = typeof routineNames[number];
|
|
4
4
|
export declare const workoutDurationOptions: readonly [40, 60, 80];
|
|
@@ -59,7 +59,7 @@ export interface ProgramGenerationParams<T extends HevyTrainerLibraryExercise> {
|
|
|
59
59
|
exerciseStore: T[];
|
|
60
60
|
focusMuscle?: SimplifiedMuscleGroup;
|
|
61
61
|
excludedExerciseIds?: Set<string>;
|
|
62
|
-
cardio:
|
|
62
|
+
cardio: CardioPreference;
|
|
63
63
|
/**
|
|
64
64
|
* When enabled, includes exercise selection trace breadcrumbs in the result
|
|
65
65
|
* for debugging. Intended for troubleshooting on backoffice; keep off in
|
package/built/index.d.ts
CHANGED
|
@@ -650,6 +650,7 @@ export type TrainingGoal = Lookup<typeof trainingGoals>;
|
|
|
650
650
|
export type TrainingLevel = Lookup<typeof trainingLevels>;
|
|
651
651
|
export type ExerciseCategory = Lookup<typeof exerciseCategories>;
|
|
652
652
|
export type RestTimerLength = typeof restTimerLengths[number];
|
|
653
|
+
export type CardioPreference = undefined | 'beginning' | 'end';
|
|
653
654
|
export type HevyTrainerProgramEquipment = Extract<Equipment, 'barbell' | 'dumbbell' | 'machine'>;
|
|
654
655
|
export declare const hevyTrainerProgramEquipments: readonly ["barbell", "dumbbell", "machine"];
|
|
655
656
|
export declare const granularEquipments: readonly ["barbell", "dumbbell", "kettlebell", "plate", "medicine_ball", "ez_bar", "landmine", "trap_bar", "pullup_bar", "dip_bar", "squat_rack", "flat_bench", "adjustable_bench", "dual_cable_machine", "single_cable_machine", "lat_pulldown_cable", "leg_press_machine", "smith_machine", "t_bar", "plate_machines", "stack_machines", "treadmill", "elliptical_trainer", "rowing_machine", "spinning", "stair_machine", "air_bike", "suspension_band", "resistance_band", "battle_rope", "rings", "jump_rope"];
|
|
@@ -1265,6 +1266,7 @@ export interface HevyTrainerProgram {
|
|
|
1265
1266
|
next_workout_index: number;
|
|
1266
1267
|
workout_duration_minutes?: WorkoutDurationMinutes;
|
|
1267
1268
|
rest_timer_length: RestTimerLength;
|
|
1269
|
+
cardio_preference: CardioPreference;
|
|
1268
1270
|
}
|
|
1269
1271
|
export interface PostHevyTrainerProgramRequestBody {
|
|
1270
1272
|
program: {
|
|
@@ -1278,6 +1280,7 @@ export interface PostHevyTrainerProgramRequestBody {
|
|
|
1278
1280
|
next_workout_index?: number;
|
|
1279
1281
|
workout_duration_minutes?: WorkoutDurationMinutes;
|
|
1280
1282
|
rest_timer_length: RestTimerLength;
|
|
1283
|
+
cardio_preference: CardioPreference;
|
|
1281
1284
|
};
|
|
1282
1285
|
}
|
|
1283
1286
|
export interface UpdateHevyTrainerProgramRequestBody {
|