@trainheroic-unofficial/dto 3.3.3 → 3.5.0
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/dist/index.d.mts +56 -1
- package/dist/index.mjs +40 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -370,11 +370,42 @@ declare const athleteSessionRemoveArgsSchema: z.ZodObject<{
|
|
|
370
370
|
date: z.ZodString;
|
|
371
371
|
}, z.core.$strip>;
|
|
372
372
|
type AthleteSessionRemoveArgs = z.infer<typeof athleteSessionRemoveArgsSchema>;
|
|
373
|
+
/**
|
|
374
|
+
* Args for the athlete session-note write. `programWorkoutId` is the range item's top-level `id`
|
|
375
|
+
* (athlete_workouts); `date` locates that day so the SDK can resolve the saved-workout id the PUT
|
|
376
|
+
* targets. `notes` is the free-text box on the workout screen (empty string clears it). `rpe` is
|
|
377
|
+
* the session RPE (1–10). At least one of `notes` / `rpe` is required — a notes-only PUT leaves
|
|
378
|
+
* rpe untouched and vice versa.
|
|
379
|
+
*/
|
|
380
|
+
declare const athleteWorkoutNoteObject: z.ZodObject<{
|
|
381
|
+
date: z.ZodString;
|
|
382
|
+
programWorkoutId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
383
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
384
|
+
rpe: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
declare const athleteWorkoutNoteArgsSchema: z.ZodObject<{
|
|
387
|
+
date: z.ZodString;
|
|
388
|
+
programWorkoutId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
389
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
390
|
+
rpe: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
type AthleteWorkoutNoteArgs = z.infer<typeof athleteWorkoutNoteArgsSchema>;
|
|
393
|
+
/**
|
|
394
|
+
* Args for the athlete per-exercise note write (the "Add exercise note" box on the exercise
|
|
395
|
+
* screen — band color, etc.). `savedWorkoutSetExerciseId` is the slot id from athlete_log_targets.
|
|
396
|
+
* Empty `notes` clears the note. Distinct from {@link athleteWorkoutNoteArgsSchema} (session note).
|
|
397
|
+
*/
|
|
398
|
+
declare const athleteExerciseNoteArgsSchema: z.ZodObject<{
|
|
399
|
+
savedWorkoutSetExerciseId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
400
|
+
notes: z.ZodString;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
type AthleteExerciseNoteArgs = z.infer<typeof athleteExerciseNoteArgsSchema>;
|
|
373
403
|
/** Flattened exercise within a presented workout: prescriptions, logged results, units. */
|
|
374
404
|
declare const athleteWorkoutExerciseSchema: z.ZodObject<{
|
|
375
405
|
exerciseId: z.ZodNullable<z.ZodNumber>;
|
|
376
406
|
title: z.ZodString;
|
|
377
407
|
instruction: z.ZodNullable<z.ZodString>;
|
|
408
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
378
409
|
units: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
379
410
|
prescribed: z.ZodArray<z.ZodString>;
|
|
380
411
|
performed: z.ZodArray<z.ZodString>;
|
|
@@ -389,6 +420,7 @@ declare const athleteWorkoutBlockSchema: z.ZodObject<{
|
|
|
389
420
|
exerciseId: z.ZodNullable<z.ZodNumber>;
|
|
390
421
|
title: z.ZodString;
|
|
391
422
|
instruction: z.ZodNullable<z.ZodString>;
|
|
423
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
392
424
|
units: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
393
425
|
prescribed: z.ZodArray<z.ZodString>;
|
|
394
426
|
performed: z.ZodArray<z.ZodString>;
|
|
@@ -402,6 +434,8 @@ declare const athleteWorkoutViewSchema: z.ZodObject<{
|
|
|
402
434
|
program: z.ZodNullable<z.ZodString>;
|
|
403
435
|
team: z.ZodNullable<z.ZodString>;
|
|
404
436
|
instruction: z.ZodNullable<z.ZodString>;
|
|
437
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
438
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
405
439
|
logged: z.ZodBoolean;
|
|
406
440
|
personal: z.ZodBoolean;
|
|
407
441
|
blocks: z.ZodArray<z.ZodObject<{
|
|
@@ -413,6 +447,7 @@ declare const athleteWorkoutViewSchema: z.ZodObject<{
|
|
|
413
447
|
exerciseId: z.ZodNullable<z.ZodNumber>;
|
|
414
448
|
title: z.ZodString;
|
|
415
449
|
instruction: z.ZodNullable<z.ZodString>;
|
|
450
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
416
451
|
units: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
417
452
|
prescribed: z.ZodArray<z.ZodString>;
|
|
418
453
|
performed: z.ZodArray<z.ZodString>;
|
|
@@ -450,6 +485,8 @@ declare const athleteWorkoutsOutputSchema: z.ZodUnion<readonly [z.ZodArray<z.Zod
|
|
|
450
485
|
program: z.ZodNullable<z.ZodString>;
|
|
451
486
|
team: z.ZodNullable<z.ZodString>;
|
|
452
487
|
instruction: z.ZodNullable<z.ZodString>;
|
|
488
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
489
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
453
490
|
logged: z.ZodBoolean;
|
|
454
491
|
personal: z.ZodBoolean;
|
|
455
492
|
blocks: z.ZodArray<z.ZodObject<{
|
|
@@ -461,6 +498,7 @@ declare const athleteWorkoutsOutputSchema: z.ZodUnion<readonly [z.ZodArray<z.Zod
|
|
|
461
498
|
exerciseId: z.ZodNullable<z.ZodNumber>;
|
|
462
499
|
title: z.ZodString;
|
|
463
500
|
instruction: z.ZodNullable<z.ZodString>;
|
|
501
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
464
502
|
units: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
465
503
|
prescribed: z.ZodArray<z.ZodString>;
|
|
466
504
|
performed: z.ZodArray<z.ZodString>;
|
|
@@ -644,6 +682,7 @@ declare const rosterActivityOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
644
682
|
declare const presentedExerciseSessionSchema: z.ZodObject<{
|
|
645
683
|
date: z.ZodString;
|
|
646
684
|
abr: z.ZodNullable<z.ZodString>;
|
|
685
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
647
686
|
estimated1RM: z.ZodNullable<z.ZodNumber>;
|
|
648
687
|
sets: z.ZodArray<z.ZodObject<{
|
|
649
688
|
setNumber: z.ZodNumber;
|
|
@@ -662,6 +701,7 @@ declare const presentedExerciseHistorySchema: z.ZodObject<{
|
|
|
662
701
|
sessions: z.ZodArray<z.ZodObject<{
|
|
663
702
|
date: z.ZodString;
|
|
664
703
|
abr: z.ZodNullable<z.ZodString>;
|
|
704
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
665
705
|
estimated1RM: z.ZodNullable<z.ZodNumber>;
|
|
666
706
|
sets: z.ZodArray<z.ZodObject<{
|
|
667
707
|
setNumber: z.ZodNumber;
|
|
@@ -682,6 +722,7 @@ declare const exerciseHistoryOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
682
722
|
sessions: z.ZodArray<z.ZodObject<{
|
|
683
723
|
date: z.ZodString;
|
|
684
724
|
abr: z.ZodNullable<z.ZodString>;
|
|
725
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
685
726
|
estimated1RM: z.ZodNullable<z.ZodNumber>;
|
|
686
727
|
sets: z.ZodArray<z.ZodObject<{
|
|
687
728
|
setNumber: z.ZodNumber;
|
|
@@ -995,6 +1036,7 @@ declare const logTargetsOutputSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodObjec
|
|
|
995
1036
|
savedWorkoutSetExerciseId: z.ZodNumber;
|
|
996
1037
|
title: z.ZodString;
|
|
997
1038
|
units: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
1039
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
998
1040
|
prescribed: z.ZodArray<z.ZodString>;
|
|
999
1041
|
performed: z.ZodArray<z.ZodString>;
|
|
1000
1042
|
}, z.core.$strip>>;
|
|
@@ -1074,6 +1116,19 @@ declare const personalWorkoutCreatedOutputSchema: z.ZodObject<{
|
|
|
1074
1116
|
groupId: z.ZodNumber;
|
|
1075
1117
|
date: z.ZodString;
|
|
1076
1118
|
}, z.core.$strip>;
|
|
1119
|
+
declare const athleteWorkoutNoteOutputSchema: z.ZodObject<{
|
|
1120
|
+
programWorkoutId: z.ZodNumber;
|
|
1121
|
+
savedWorkoutId: z.ZodNumber;
|
|
1122
|
+
date: z.ZodString;
|
|
1123
|
+
notes: z.ZodString;
|
|
1124
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
1125
|
+
}, z.core.$strip>;
|
|
1126
|
+
type AthleteWorkoutNoteOutput = z.infer<typeof athleteWorkoutNoteOutputSchema>;
|
|
1127
|
+
declare const athleteExerciseNoteOutputSchema: z.ZodObject<{
|
|
1128
|
+
savedWorkoutSetExerciseId: z.ZodNumber;
|
|
1129
|
+
notes: z.ZodString;
|
|
1130
|
+
}, z.core.$strip>;
|
|
1131
|
+
type AthleteExerciseNoteOutput = z.infer<typeof athleteExerciseNoteOutputSchema>;
|
|
1077
1132
|
declare const workoutReadOutputSchema: z.ZodObject<{
|
|
1078
1133
|
pwId: z.ZodNumber;
|
|
1079
1134
|
date: z.ZodString;
|
|
@@ -1336,4 +1391,4 @@ declare const sessionTemplateCreateSchema: z.ZodObject<{
|
|
|
1336
1391
|
}, z.core.$strip>;
|
|
1337
1392
|
type SessionTemplateCreate = z.infer<typeof sessionTemplateCreateSchema>;
|
|
1338
1393
|
//#endregion
|
|
1339
|
-
export { Advisory, AthletePrefs, AthletePrescribeSetArgs, AthleteProfileSummary, AthleteSessionRemoveArgs, AthleteUser, AthleteWorkingMax, AthleteWorkoutBlock, AthleteWorkoutExercise, AthleteWorkoutRangeArgs, AthleteWorkoutSummary, AthleteWorkoutView, BlockSpec, CoachAthleteExercise, CoachAthleteSession, CoachAthleteTraining, CoachLogSessionArgs, CoachLogSetArgs, CoachPrescribeSetArgs, CommentDraft, ExerciseCreate, ExerciseGetOutput, ExerciseHistoryDetail, ExerciseHistoryListItem, ExerciseRow, ExerciseSpec, ExerciseStats, ExerciseView, ExportBlock, ExportExercise, ExportSet, ExportSetParam, ExportSetSide, Id, LeaderboardSpec, LogSessionArgs, LogSetArgs, PersonalRecord, PresentedExerciseHistory, PresentedExerciseSession, ProgramWorkout, ReadBlock, ReadExercise, ReadResult, ResolveResult, RosterActivityRow, SessionTemplateCreate, SwapAthleteExerciseArgs, TeamPublishPatch, TeamVolumeAthlete, TeamVolumeReport, UserSimple, WorkoutDate, WorkoutHistoryExport, WorkoutSpec, athleteExerciseCatalogOutputSchema, athleteInviteOutputSchema, athleteMainLiftPrsOutputSchema, athletePrefsSchema, athletePrescribeSetArgsSchema, athleteProfileOutputSchema, athleteProfileSummarySchema, athleteSessionRemoveArgsSchema, athleteSessionRemovedOutputSchema, athleteUserSchema, athleteWorkingMaxListSchema, athleteWorkingMaxSchema, athleteWorkoutBlockSchema, athleteWorkoutExerciseSchema, athleteWorkoutRangeArgsSchema, athleteWorkoutSummarySchema, athleteWorkoutViewSchema, athleteWorkoutsOutputSchema, blockSpecSchema, coachAthleteExerciseSchema, coachAthleteSessionSchema, coachAthleteTrainingOutputSchema, coachAthleteTrainingSchema, coachLogSessionArgsSchema, coachLogSetArgsSchema, coachPrescribeSetArgsSchema, commentDraftSchema, dateString, exerciseCreateSchema, exerciseCreatedOutputSchema, exerciseDeletedOutputSchema, exerciseForgottenOutputSchema, exerciseGetOutputSchema, exerciseHistoryDetailSchema, exerciseHistoryListItemSchema, exerciseHistoryListSchema, exerciseHistoryOutputSchema, exerciseLibraryResponseSchema, exerciseResolveOutputSchema, exerciseResponseSchema, exerciseSpecSchema, exerciseStatsSchema, exerciseSwapOutputSchema, exerciseViewSchema, feedbackOutputSchema, historyEntrySchema, historySetSchema, idArgSchema, idSchema, leaderboardSpecSchema, liftPRSchema, logSessionArgsSchema, logSetArgsSchema, logTargetsOutputSchema, loggedSetSchema, loggedSetWithSlotSchema, messageDeletedOutputSchema, messageDraftOutputSchema, messageSentOutputSchema, opaqueJsonOutputSchema, opaqueOutputSchema, parseWorkoutDate, personalRecordListSchema, personalRecordSchema, personalWorkoutCreatedOutputSchema, presentedExerciseHistorySchema, presentedExerciseSessionSchema, programCreateResponseSchema, programCreatedOutputSchema, programDeletedOutputSchema, programWorkoutListSchema, programWorkoutResponseSchema, programWorkoutSchema, programsEditResponseSchema, removedSessionOutputSchema, repMaxSchema, rosterActivityOutputSchema, rosterActivityRowSchema, sessionCreateResponseSchema, sessionLogOutputSchema, sessionTemplateCreateSchema, sessionTemplateCreatedOutputSchema, setLogOutputSchema, setPrescriptionOutputSchema, swapAthleteExerciseArgsSchema, teamPublishPatchObject, teamPublishPatchSchema, teamVolumeAthleteSchema, teamVolumeOutputSchema, teamVolumeReportSchema, toolOutputSchema, truncatedOutputSchema, truncationMarkerSchema, userSimpleSchema, workoutBuildOutputSchema, workoutPublishOutputSchema, workoutReadOutputSchema, workoutSpecSchema };
|
|
1394
|
+
export { Advisory, AthleteExerciseNoteArgs, AthleteExerciseNoteOutput, AthletePrefs, AthletePrescribeSetArgs, AthleteProfileSummary, AthleteSessionRemoveArgs, AthleteUser, AthleteWorkingMax, AthleteWorkoutBlock, AthleteWorkoutExercise, AthleteWorkoutNoteArgs, AthleteWorkoutNoteOutput, AthleteWorkoutRangeArgs, AthleteWorkoutSummary, AthleteWorkoutView, BlockSpec, CoachAthleteExercise, CoachAthleteSession, CoachAthleteTraining, CoachLogSessionArgs, CoachLogSetArgs, CoachPrescribeSetArgs, CommentDraft, ExerciseCreate, ExerciseGetOutput, ExerciseHistoryDetail, ExerciseHistoryListItem, ExerciseRow, ExerciseSpec, ExerciseStats, ExerciseView, ExportBlock, ExportExercise, ExportSet, ExportSetParam, ExportSetSide, Id, LeaderboardSpec, LogSessionArgs, LogSetArgs, PersonalRecord, PresentedExerciseHistory, PresentedExerciseSession, ProgramWorkout, ReadBlock, ReadExercise, ReadResult, ResolveResult, RosterActivityRow, SessionTemplateCreate, SwapAthleteExerciseArgs, TeamPublishPatch, TeamVolumeAthlete, TeamVolumeReport, UserSimple, WorkoutDate, WorkoutHistoryExport, WorkoutSpec, athleteExerciseCatalogOutputSchema, athleteExerciseNoteArgsSchema, athleteExerciseNoteOutputSchema, athleteInviteOutputSchema, athleteMainLiftPrsOutputSchema, athletePrefsSchema, athletePrescribeSetArgsSchema, athleteProfileOutputSchema, athleteProfileSummarySchema, athleteSessionRemoveArgsSchema, athleteSessionRemovedOutputSchema, athleteUserSchema, athleteWorkingMaxListSchema, athleteWorkingMaxSchema, athleteWorkoutBlockSchema, athleteWorkoutExerciseSchema, athleteWorkoutNoteArgsSchema, athleteWorkoutNoteObject, athleteWorkoutNoteOutputSchema, athleteWorkoutRangeArgsSchema, athleteWorkoutSummarySchema, athleteWorkoutViewSchema, athleteWorkoutsOutputSchema, blockSpecSchema, coachAthleteExerciseSchema, coachAthleteSessionSchema, coachAthleteTrainingOutputSchema, coachAthleteTrainingSchema, coachLogSessionArgsSchema, coachLogSetArgsSchema, coachPrescribeSetArgsSchema, commentDraftSchema, dateString, exerciseCreateSchema, exerciseCreatedOutputSchema, exerciseDeletedOutputSchema, exerciseForgottenOutputSchema, exerciseGetOutputSchema, exerciseHistoryDetailSchema, exerciseHistoryListItemSchema, exerciseHistoryListSchema, exerciseHistoryOutputSchema, exerciseLibraryResponseSchema, exerciseResolveOutputSchema, exerciseResponseSchema, exerciseSpecSchema, exerciseStatsSchema, exerciseSwapOutputSchema, exerciseViewSchema, feedbackOutputSchema, historyEntrySchema, historySetSchema, idArgSchema, idSchema, leaderboardSpecSchema, liftPRSchema, logSessionArgsSchema, logSetArgsSchema, logTargetsOutputSchema, loggedSetSchema, loggedSetWithSlotSchema, messageDeletedOutputSchema, messageDraftOutputSchema, messageSentOutputSchema, opaqueJsonOutputSchema, opaqueOutputSchema, parseWorkoutDate, personalRecordListSchema, personalRecordSchema, personalWorkoutCreatedOutputSchema, presentedExerciseHistorySchema, presentedExerciseSessionSchema, programCreateResponseSchema, programCreatedOutputSchema, programDeletedOutputSchema, programWorkoutListSchema, programWorkoutResponseSchema, programWorkoutSchema, programsEditResponseSchema, removedSessionOutputSchema, repMaxSchema, rosterActivityOutputSchema, rosterActivityRowSchema, sessionCreateResponseSchema, sessionLogOutputSchema, sessionTemplateCreateSchema, sessionTemplateCreatedOutputSchema, setLogOutputSchema, setPrescriptionOutputSchema, swapAthleteExerciseArgsSchema, teamPublishPatchObject, teamPublishPatchSchema, teamVolumeAthleteSchema, teamVolumeOutputSchema, teamVolumeReportSchema, toolOutputSchema, truncatedOutputSchema, truncationMarkerSchema, userSimpleSchema, workoutBuildOutputSchema, workoutPublishOutputSchema, workoutReadOutputSchema, workoutSpecSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -264,6 +264,29 @@ const athleteSessionRemoveArgsSchema = z.object({
|
|
|
264
264
|
programWorkoutId: idArgSchema,
|
|
265
265
|
date: dateString
|
|
266
266
|
});
|
|
267
|
+
/**
|
|
268
|
+
* Args for the athlete session-note write. `programWorkoutId` is the range item's top-level `id`
|
|
269
|
+
* (athlete_workouts); `date` locates that day so the SDK can resolve the saved-workout id the PUT
|
|
270
|
+
* targets. `notes` is the free-text box on the workout screen (empty string clears it). `rpe` is
|
|
271
|
+
* the session RPE (1–10). At least one of `notes` / `rpe` is required — a notes-only PUT leaves
|
|
272
|
+
* rpe untouched and vice versa.
|
|
273
|
+
*/
|
|
274
|
+
const athleteWorkoutNoteObject = z.object({
|
|
275
|
+
date: dateString,
|
|
276
|
+
programWorkoutId: idArgSchema,
|
|
277
|
+
notes: z.string().optional(),
|
|
278
|
+
rpe: z.number().int().min(1).max(10).optional()
|
|
279
|
+
});
|
|
280
|
+
const athleteWorkoutNoteArgsSchema = athleteWorkoutNoteObject.refine((v) => v.notes !== void 0 || v.rpe !== void 0, { message: "Provide notes and/or rpe" });
|
|
281
|
+
/**
|
|
282
|
+
* Args for the athlete per-exercise note write (the "Add exercise note" box on the exercise
|
|
283
|
+
* screen — band color, etc.). `savedWorkoutSetExerciseId` is the slot id from athlete_log_targets.
|
|
284
|
+
* Empty `notes` clears the note. Distinct from {@link athleteWorkoutNoteArgsSchema} (session note).
|
|
285
|
+
*/
|
|
286
|
+
const athleteExerciseNoteArgsSchema = z.object({
|
|
287
|
+
savedWorkoutSetExerciseId: idArgSchema,
|
|
288
|
+
notes: z.string()
|
|
289
|
+
});
|
|
267
290
|
const presentedNullNumber = z.number().nullable();
|
|
268
291
|
const presentedNullString = z.string().nullable();
|
|
269
292
|
/** Flattened exercise within a presented workout: prescriptions, logged results, units. */
|
|
@@ -271,6 +294,7 @@ const athleteWorkoutExerciseSchema = z.object({
|
|
|
271
294
|
exerciseId: presentedNullNumber,
|
|
272
295
|
title: z.string(),
|
|
273
296
|
instruction: presentedNullString,
|
|
297
|
+
notes: presentedNullString,
|
|
274
298
|
units: z.array(presentedNullString),
|
|
275
299
|
prescribed: z.array(z.string()),
|
|
276
300
|
performed: z.array(z.string())
|
|
@@ -289,6 +313,8 @@ const athleteWorkoutViewSchema = z.object({
|
|
|
289
313
|
program: presentedNullString,
|
|
290
314
|
team: presentedNullString,
|
|
291
315
|
instruction: presentedNullString,
|
|
316
|
+
notes: presentedNullString,
|
|
317
|
+
rpe: presentedNullNumber,
|
|
292
318
|
logged: z.boolean(),
|
|
293
319
|
personal: z.boolean(),
|
|
294
320
|
blocks: z.array(athleteWorkoutBlockSchema)
|
|
@@ -380,6 +406,7 @@ const rosterActivityOutputSchema = z.array(rosterActivityRowSchema);
|
|
|
380
406
|
const presentedExerciseSessionSchema = z.object({
|
|
381
407
|
date: z.string(),
|
|
382
408
|
abr: presentedNullString,
|
|
409
|
+
notes: presentedNullString,
|
|
383
410
|
estimated1RM: presentedNullNumber,
|
|
384
411
|
sets: z.array(z.object({
|
|
385
412
|
setNumber: z.number(),
|
|
@@ -535,6 +562,7 @@ const logSetTargetOutputSchema = z.object({
|
|
|
535
562
|
savedWorkoutSetExerciseId: z.number(),
|
|
536
563
|
title: z.string(),
|
|
537
564
|
units: z.array(nullableString),
|
|
565
|
+
notes: nullableString,
|
|
538
566
|
prescribed: z.array(z.string()),
|
|
539
567
|
performed: z.array(z.string())
|
|
540
568
|
}))
|
|
@@ -602,6 +630,17 @@ const personalWorkoutCreatedOutputSchema = z.object({
|
|
|
602
630
|
groupId: z.number(),
|
|
603
631
|
date: z.string()
|
|
604
632
|
});
|
|
633
|
+
const athleteWorkoutNoteOutputSchema = z.object({
|
|
634
|
+
programWorkoutId: z.number(),
|
|
635
|
+
savedWorkoutId: z.number(),
|
|
636
|
+
date: z.string(),
|
|
637
|
+
notes: z.string(),
|
|
638
|
+
rpe: nullableNumber
|
|
639
|
+
});
|
|
640
|
+
const athleteExerciseNoteOutputSchema = z.object({
|
|
641
|
+
savedWorkoutSetExerciseId: z.number(),
|
|
642
|
+
notes: z.string()
|
|
643
|
+
});
|
|
605
644
|
const workoutReadExerciseOutputSchema = z.object({
|
|
606
645
|
order: z.number(),
|
|
607
646
|
title: z.string(),
|
|
@@ -761,4 +800,4 @@ const sessionTemplateCreateSchema = z.object({
|
|
|
761
800
|
instruction: z.string().optional()
|
|
762
801
|
});
|
|
763
802
|
//#endregion
|
|
764
|
-
export { athleteExerciseCatalogOutputSchema, athleteInviteOutputSchema, athleteMainLiftPrsOutputSchema, athletePrefsSchema, athletePrescribeSetArgsSchema, athleteProfileOutputSchema, athleteProfileSummarySchema, athleteSessionRemoveArgsSchema, athleteSessionRemovedOutputSchema, athleteUserSchema, athleteWorkingMaxListSchema, athleteWorkingMaxSchema, athleteWorkoutBlockSchema, athleteWorkoutExerciseSchema, athleteWorkoutRangeArgsSchema, athleteWorkoutSummarySchema, athleteWorkoutViewSchema, athleteWorkoutsOutputSchema, blockSpecSchema, coachAthleteExerciseSchema, coachAthleteSessionSchema, coachAthleteTrainingOutputSchema, coachAthleteTrainingSchema, coachLogSessionArgsSchema, coachLogSetArgsSchema, coachPrescribeSetArgsSchema, commentDraftSchema, dateString, exerciseCreateSchema, exerciseCreatedOutputSchema, exerciseDeletedOutputSchema, exerciseForgottenOutputSchema, exerciseGetOutputSchema, exerciseHistoryDetailSchema, exerciseHistoryListItemSchema, exerciseHistoryListSchema, exerciseHistoryOutputSchema, exerciseLibraryResponseSchema, exerciseResolveOutputSchema, exerciseResponseSchema, exerciseSpecSchema, exerciseStatsSchema, exerciseSwapOutputSchema, exerciseViewSchema, feedbackOutputSchema, historyEntrySchema, historySetSchema, idArgSchema, idSchema, leaderboardSpecSchema, liftPRSchema, logSessionArgsSchema, logSetArgsSchema, logTargetsOutputSchema, loggedSetSchema, loggedSetWithSlotSchema, messageDeletedOutputSchema, messageDraftOutputSchema, messageSentOutputSchema, opaqueJsonOutputSchema, opaqueOutputSchema, parseWorkoutDate, personalRecordListSchema, personalRecordSchema, personalWorkoutCreatedOutputSchema, presentedExerciseHistorySchema, presentedExerciseSessionSchema, programCreateResponseSchema, programCreatedOutputSchema, programDeletedOutputSchema, programWorkoutListSchema, programWorkoutResponseSchema, programWorkoutSchema, programsEditResponseSchema, removedSessionOutputSchema, repMaxSchema, rosterActivityOutputSchema, rosterActivityRowSchema, sessionCreateResponseSchema, sessionLogOutputSchema, sessionTemplateCreateSchema, sessionTemplateCreatedOutputSchema, setLogOutputSchema, setPrescriptionOutputSchema, swapAthleteExerciseArgsSchema, teamPublishPatchObject, teamPublishPatchSchema, teamVolumeAthleteSchema, teamVolumeOutputSchema, teamVolumeReportSchema, toolOutputSchema, truncatedOutputSchema, truncationMarkerSchema, userSimpleSchema, workoutBuildOutputSchema, workoutPublishOutputSchema, workoutReadOutputSchema, workoutSpecSchema };
|
|
803
|
+
export { athleteExerciseCatalogOutputSchema, athleteExerciseNoteArgsSchema, athleteExerciseNoteOutputSchema, athleteInviteOutputSchema, athleteMainLiftPrsOutputSchema, athletePrefsSchema, athletePrescribeSetArgsSchema, athleteProfileOutputSchema, athleteProfileSummarySchema, athleteSessionRemoveArgsSchema, athleteSessionRemovedOutputSchema, athleteUserSchema, athleteWorkingMaxListSchema, athleteWorkingMaxSchema, athleteWorkoutBlockSchema, athleteWorkoutExerciseSchema, athleteWorkoutNoteArgsSchema, athleteWorkoutNoteObject, athleteWorkoutNoteOutputSchema, athleteWorkoutRangeArgsSchema, athleteWorkoutSummarySchema, athleteWorkoutViewSchema, athleteWorkoutsOutputSchema, blockSpecSchema, coachAthleteExerciseSchema, coachAthleteSessionSchema, coachAthleteTrainingOutputSchema, coachAthleteTrainingSchema, coachLogSessionArgsSchema, coachLogSetArgsSchema, coachPrescribeSetArgsSchema, commentDraftSchema, dateString, exerciseCreateSchema, exerciseCreatedOutputSchema, exerciseDeletedOutputSchema, exerciseForgottenOutputSchema, exerciseGetOutputSchema, exerciseHistoryDetailSchema, exerciseHistoryListItemSchema, exerciseHistoryListSchema, exerciseHistoryOutputSchema, exerciseLibraryResponseSchema, exerciseResolveOutputSchema, exerciseResponseSchema, exerciseSpecSchema, exerciseStatsSchema, exerciseSwapOutputSchema, exerciseViewSchema, feedbackOutputSchema, historyEntrySchema, historySetSchema, idArgSchema, idSchema, leaderboardSpecSchema, liftPRSchema, logSessionArgsSchema, logSetArgsSchema, logTargetsOutputSchema, loggedSetSchema, loggedSetWithSlotSchema, messageDeletedOutputSchema, messageDraftOutputSchema, messageSentOutputSchema, opaqueJsonOutputSchema, opaqueOutputSchema, parseWorkoutDate, personalRecordListSchema, personalRecordSchema, personalWorkoutCreatedOutputSchema, presentedExerciseHistorySchema, presentedExerciseSessionSchema, programCreateResponseSchema, programCreatedOutputSchema, programDeletedOutputSchema, programWorkoutListSchema, programWorkoutResponseSchema, programWorkoutSchema, programsEditResponseSchema, removedSessionOutputSchema, repMaxSchema, rosterActivityOutputSchema, rosterActivityRowSchema, sessionCreateResponseSchema, sessionLogOutputSchema, sessionTemplateCreateSchema, sessionTemplateCreatedOutputSchema, setLogOutputSchema, setPrescriptionOutputSchema, swapAthleteExerciseArgsSchema, teamPublishPatchObject, teamPublishPatchSchema, teamVolumeAthleteSchema, teamVolumeOutputSchema, teamVolumeReportSchema, toolOutputSchema, truncatedOutputSchema, truncationMarkerSchema, userSimpleSchema, workoutBuildOutputSchema, workoutPublishOutputSchema, workoutReadOutputSchema, workoutSpecSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trainheroic-unofficial/dto",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"tsdown": "^0.22.14",
|
|
29
|
-
"vitest": "^4.1.
|
|
29
|
+
"vitest": "^4.1.11"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsdown",
|