hevy-shared 1.0.966 → 1.0.967

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.
Files changed (2) hide show
  1. package/built/index.d.ts +2 -84
  2. package/package.json +1 -1
package/built/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { InstructionsLanguage } from './exerciseLocaleUtils';
2
- import { HevyTrainerRoutineName, WorkoutDurationMinutes } from './hevyTrainer';
2
+ import { WorkoutDurationMinutes } from './hevyTrainer';
3
3
  import { Language } from './translations';
4
4
  import { Lookup } from './typeUtils';
5
5
  export * from './constants';
@@ -323,6 +323,7 @@ export type BackofficeShadowBannedUser = Pick<BackofficeExistingUserResponse, 'i
323
323
  backoffice_notes?: string;
324
324
  };
325
325
  export interface BackofficeUserComment {
326
+ comment_id: number;
326
327
  workout_username: string;
327
328
  workout_short_id: string;
328
329
  comment_date: string;
@@ -960,7 +961,6 @@ export interface PostWorkoutRequestWorkout {
960
961
  biometrics?: WorkoutBiometrics;
961
962
  is_biometrics_public: boolean;
962
963
  trainer_program_id: string | undefined;
963
- trainer_workout_template_id: string | undefined;
964
964
  }
965
965
  export declare const isHeartRateSamples: (x: any) => x is HeartRateSample[];
966
966
  export declare const isWorkoutBiometrics: (x: any) => x is WorkoutBiometrics;
@@ -1249,88 +1249,6 @@ export interface GetTeamInviteResponse {
1249
1249
  export interface OutstandingInvitesForCoachTeamResponse {
1250
1250
  invites: CoachTeamInvite[];
1251
1251
  }
1252
- export interface TrainerWorkoutTemplateExercise {
1253
- id: string;
1254
- exercise_template_id: string;
1255
- index: number;
1256
- set_count: number;
1257
- warmup_set_count: number;
1258
- rep_range?: RepRange;
1259
- rest_seconds: number;
1260
- }
1261
- export interface TrainerWorkoutTemplate {
1262
- id: string;
1263
- hevy_trainer_program_id: string;
1264
- index: number;
1265
- routine_name: HevyTrainerRoutineName;
1266
- exercises: TrainerWorkoutTemplateExercise[];
1267
- }
1268
- export interface TrainerProgramV3 {
1269
- id: string;
1270
- schema_version: 'v3';
1271
- created_at: string;
1272
- updated_at: string;
1273
- level: TrainingLevel;
1274
- goal: TrainingGoal;
1275
- equipments: GranularEquipment[];
1276
- weekly_frequency: WeeklyTrainingFrequency;
1277
- templates: TrainerWorkoutTemplate[];
1278
- focus_muscle?: SimplifiedMuscleGroup;
1279
- next_workout_index: number;
1280
- workout_duration_minutes: WorkoutDurationMinutes;
1281
- rest_timer_length: RestTimerLength;
1282
- }
1283
- export interface PostTrainerProgramV3RequestBody {
1284
- program: {
1285
- title: string;
1286
- level: TrainingLevel;
1287
- goal: TrainingGoal;
1288
- equipments: GranularEquipment[];
1289
- weekly_frequency: WeeklyTrainingFrequency;
1290
- focus_muscle?: SimplifiedMuscleGroup;
1291
- next_workout_index?: number;
1292
- workout_duration_minutes: WorkoutDurationMinutes;
1293
- rest_timer_length: RestTimerLength;
1294
- templates: {
1295
- index: number;
1296
- routine_name: HevyTrainerRoutineName;
1297
- exercises: {
1298
- exercise_template_id: string;
1299
- index: number;
1300
- set_count: number;
1301
- warmup_set_count: number;
1302
- rep_range?: RepRange;
1303
- rest_seconds: number;
1304
- }[];
1305
- }[];
1306
- };
1307
- }
1308
- export interface UpdateTrainerProgramV3RequestBody {
1309
- program: {
1310
- programId: string;
1311
- level: TrainingLevel;
1312
- goal: TrainingGoal;
1313
- equipments: GranularEquipment[];
1314
- weekly_frequency: WeeklyTrainingFrequency;
1315
- focus_muscle?: SimplifiedMuscleGroup;
1316
- next_workout_index?: number;
1317
- workout_duration_minutes: WorkoutDurationMinutes;
1318
- rest_timer_length: RestTimerLength;
1319
- templates: {
1320
- id: string;
1321
- index: number;
1322
- routine_name: HevyTrainerRoutineName;
1323
- exercises: {
1324
- exercise_template_id: string;
1325
- index: number;
1326
- set_count: number;
1327
- warmup_set_count: number;
1328
- rep_range?: RepRange;
1329
- rest_seconds: number;
1330
- }[];
1331
- }[];
1332
- };
1333
- }
1334
1252
  export interface HevyTrainerProgram {
1335
1253
  id: string;
1336
1254
  created_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.966",
3
+ "version": "1.0.967",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",