hevy-shared 1.0.1033 → 1.0.1035

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.
@@ -13,4 +13,4 @@ export declare const ADJUST_EVENT_TOKENS: {
13
13
  updateAge29Through44: string;
14
14
  updateAge45AndUp: string;
15
15
  };
16
- export type AdjustEventToken = typeof ADJUST_EVENT_TOKENS[keyof typeof ADJUST_EVENT_TOKENS];
16
+ export type AdjustEventToken = (typeof ADJUST_EVENT_TOKENS)[keyof typeof ADJUST_EVENT_TOKENS];
@@ -51,7 +51,7 @@ declare const VOLUME_COMPARISONS: readonly [{
51
51
  readonly subtitleKey: "shareable.volumeCompare.airplane.subtitle";
52
52
  readonly weightKg: 40000;
53
53
  }];
54
- export type VolumeComparisonAssetName = typeof VOLUME_COMPARISONS[number]['asset'];
54
+ export type VolumeComparisonAssetName = (typeof VOLUME_COMPARISONS)[number]['asset'];
55
55
  export declare const getVolumeComparison: (volumeKg: number) => {
56
56
  readonly asset: "motorcycle";
57
57
  readonly subtitleKey: "shareable.volumeCompare.motorcycle.subtitle";
@@ -1,10 +1,10 @@
1
1
  import { WeeklyTrainingFrequency, TrainingGoal, TrainingLevel, SimplifiedMuscleGroup, MuscleGroup, LibraryExercise, ExerciseCategory, GranularEquipment, HevyTrainerProgramEquipment, RestTimerLength, CardioPreference } from '.';
2
- export type HevyTrainerExerciseCategory = typeof hevyTrainerExerciseCategories[number];
3
- export type HevyTrainerRoutineName = typeof routineNames[number];
2
+ export type HevyTrainerExerciseCategory = (typeof hevyTrainerExerciseCategories)[number];
3
+ export type HevyTrainerRoutineName = (typeof routineNames)[number];
4
4
  export declare const workoutDurationOptions: readonly [40, 60, 80];
5
- export type WorkoutDurationMinutes = typeof workoutDurationOptions[number];
5
+ export type WorkoutDurationMinutes = (typeof workoutDurationOptions)[number];
6
6
  export declare const trainerGymTypes: readonly ["home_gym", "garage_gym", "commercial_gym", "full_gym"];
7
- export type TrainerGymType = typeof trainerGymTypes[number];
7
+ export type TrainerGymType = (typeof trainerGymTypes)[number];
8
8
  export declare const granularEquipmentDefaults: {
9
9
  [key in TrainerGymType]: GranularEquipment[];
10
10
  };
package/built/index.d.ts CHANGED
@@ -654,8 +654,8 @@ export declare const cardioPreferences: readonly ["no-cardio", "workout-start",
654
654
  export type TrainingGoal = Lookup<typeof trainingGoals>;
655
655
  export type TrainingLevel = Lookup<typeof trainingLevels>;
656
656
  export type ExerciseCategory = Lookup<typeof exerciseCategories>;
657
- export type RestTimerLength = typeof restTimerLengths[number];
658
- export type CardioPreference = typeof cardioPreferences[number];
657
+ export type RestTimerLength = (typeof restTimerLengths)[number];
658
+ export type CardioPreference = (typeof cardioPreferences)[number];
659
659
  export type HevyTrainerProgramEquipment = Extract<Equipment, 'barbell' | 'dumbbell' | 'machine'>;
660
660
  export declare const hevyTrainerProgramEquipments: readonly ["barbell", "dumbbell", "machine"];
661
661
  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"];
@@ -1154,7 +1154,7 @@ export interface UpdateHevyTrainerProgramOldRequestBody {
1154
1154
  }
1155
1155
  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"];
1156
1156
  type MeasurementProperties = {
1157
- [key in typeof measurementsList[number]]?: number;
1157
+ [key in (typeof measurementsList)[number]]?: number;
1158
1158
  };
1159
1159
  export type BodyMeasurementKey = Lookup<typeof measurementsList>;
1160
1160
  export declare const isBodyMeasurementKey: (key: string) => key is BodyMeasurementKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.1033",
3
+ "version": "1.0.1035",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",
@@ -43,7 +43,7 @@
43
43
  "eslint-config-prettier": "^8.5.0",
44
44
  "eslint-plugin-prettier": "^4.0.0",
45
45
  "jest": "^29.7.0",
46
- "prettier": "^2.6.2",
46
+ "prettier": "^2.8.8",
47
47
  "ts-jest": "^29.1.2",
48
48
  "typescript": "5.8.2"
49
49
  },