@sunsteel/contracts 0.18.0 → 0.20.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.cts +80 -1
- package/dist/index.d.ts +80 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -304,6 +304,85 @@ interface ExerciseStrengthTrendResponse {
|
|
|
304
304
|
points: ExerciseStrengthTrendPoint[];
|
|
305
305
|
truncated: boolean;
|
|
306
306
|
}
|
|
307
|
+
interface ExercisePerformanceHistoryQuery {
|
|
308
|
+
exerciseId?: string;
|
|
309
|
+
from?: string;
|
|
310
|
+
to?: string;
|
|
311
|
+
cursor?: string;
|
|
312
|
+
limit?: number;
|
|
313
|
+
}
|
|
314
|
+
interface ExercisePerformanceSummary {
|
|
315
|
+
exerciseId: string;
|
|
316
|
+
exerciseName: string;
|
|
317
|
+
lastPerformedAt: string;
|
|
318
|
+
hasStrengthTrend: boolean;
|
|
319
|
+
}
|
|
320
|
+
interface ExercisePerformanceSet {
|
|
321
|
+
routineExerciseId: string;
|
|
322
|
+
setNumber: number;
|
|
323
|
+
reps: number;
|
|
324
|
+
weightKg?: number | null;
|
|
325
|
+
rpe?: number | null;
|
|
326
|
+
}
|
|
327
|
+
interface ExercisePerformancePrescriptionSet {
|
|
328
|
+
setNumber: number;
|
|
329
|
+
repType: RepType;
|
|
330
|
+
reps?: number | null;
|
|
331
|
+
minReps?: number | null;
|
|
332
|
+
maxReps?: number | null;
|
|
333
|
+
weightKg?: number | null;
|
|
334
|
+
rir?: number | null;
|
|
335
|
+
}
|
|
336
|
+
interface ExercisePerformancePrescription {
|
|
337
|
+
routineExerciseId: string;
|
|
338
|
+
restSeconds?: number | null;
|
|
339
|
+
note?: string | null;
|
|
340
|
+
progressionScheme: ProgressionScheme;
|
|
341
|
+
minWeightIncrementKg: number;
|
|
342
|
+
sets: ExercisePerformancePrescriptionSet[];
|
|
343
|
+
}
|
|
344
|
+
interface ExercisePerformanceSession {
|
|
345
|
+
sessionId: string;
|
|
346
|
+
status: Extract<WorkoutSessionStatus, 'COMPLETED' | 'ABORTED'>;
|
|
347
|
+
routineName: string;
|
|
348
|
+
dayName?: string | null;
|
|
349
|
+
startedAt: string;
|
|
350
|
+
endedAt: string;
|
|
351
|
+
durationSec?: number | null;
|
|
352
|
+
sessionNotes?: string | null;
|
|
353
|
+
sets: ExercisePerformanceSet[];
|
|
354
|
+
prescriptions: ExercisePerformancePrescription[];
|
|
355
|
+
progressionChanges: ProgressionChange[];
|
|
356
|
+
}
|
|
357
|
+
/** Stable successful response of GET /workouts/progress/performance. */
|
|
358
|
+
interface ExercisePerformanceHistoryResponse {
|
|
359
|
+
exercises: ExercisePerformanceSummary[];
|
|
360
|
+
selectedExercise: ExercisePerformanceSummary | null;
|
|
361
|
+
items: ExercisePerformanceSession[];
|
|
362
|
+
nextCursor?: string;
|
|
363
|
+
}
|
|
364
|
+
interface MuscleGroupHeatmapQuery {
|
|
365
|
+
timeZone: string;
|
|
366
|
+
/** Number of Monday-based calendar weeks to return, including this week. */
|
|
367
|
+
weeks?: number;
|
|
368
|
+
}
|
|
369
|
+
interface MuscleGroupHeatmapValue {
|
|
370
|
+
muscle: MuscleGroup;
|
|
371
|
+
/** Completed-set equivalents: primary muscles count 1, secondary count 0.5. */
|
|
372
|
+
weightedSets: number;
|
|
373
|
+
}
|
|
374
|
+
interface MuscleGroupHeatmapWeek {
|
|
375
|
+
weekStart: string;
|
|
376
|
+
isCurrentWeek: boolean;
|
|
377
|
+
totalWeightedSets: number;
|
|
378
|
+
muscles: MuscleGroupHeatmapValue[];
|
|
379
|
+
}
|
|
380
|
+
/** Stable successful response of GET /workouts/progress/muscles. */
|
|
381
|
+
interface MuscleGroupHeatmapResponse {
|
|
382
|
+
timeZone: string;
|
|
383
|
+
weeks: MuscleGroupHeatmapWeek[];
|
|
384
|
+
peakWeightedSets: number;
|
|
385
|
+
}
|
|
307
386
|
/** Immutable prescription captured before any sets or progression. */
|
|
308
387
|
interface WorkoutSessionSnapshotV1 {
|
|
309
388
|
schemaVersion: 1;
|
|
@@ -584,4 +663,4 @@ interface CreateRoutineRequest {
|
|
|
584
663
|
}
|
|
585
664
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
586
665
|
|
|
587
|
-
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, type PaginatedResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RepType, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
|
666
|
+
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, type PaginatedResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RepType, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -304,6 +304,85 @@ interface ExerciseStrengthTrendResponse {
|
|
|
304
304
|
points: ExerciseStrengthTrendPoint[];
|
|
305
305
|
truncated: boolean;
|
|
306
306
|
}
|
|
307
|
+
interface ExercisePerformanceHistoryQuery {
|
|
308
|
+
exerciseId?: string;
|
|
309
|
+
from?: string;
|
|
310
|
+
to?: string;
|
|
311
|
+
cursor?: string;
|
|
312
|
+
limit?: number;
|
|
313
|
+
}
|
|
314
|
+
interface ExercisePerformanceSummary {
|
|
315
|
+
exerciseId: string;
|
|
316
|
+
exerciseName: string;
|
|
317
|
+
lastPerformedAt: string;
|
|
318
|
+
hasStrengthTrend: boolean;
|
|
319
|
+
}
|
|
320
|
+
interface ExercisePerformanceSet {
|
|
321
|
+
routineExerciseId: string;
|
|
322
|
+
setNumber: number;
|
|
323
|
+
reps: number;
|
|
324
|
+
weightKg?: number | null;
|
|
325
|
+
rpe?: number | null;
|
|
326
|
+
}
|
|
327
|
+
interface ExercisePerformancePrescriptionSet {
|
|
328
|
+
setNumber: number;
|
|
329
|
+
repType: RepType;
|
|
330
|
+
reps?: number | null;
|
|
331
|
+
minReps?: number | null;
|
|
332
|
+
maxReps?: number | null;
|
|
333
|
+
weightKg?: number | null;
|
|
334
|
+
rir?: number | null;
|
|
335
|
+
}
|
|
336
|
+
interface ExercisePerformancePrescription {
|
|
337
|
+
routineExerciseId: string;
|
|
338
|
+
restSeconds?: number | null;
|
|
339
|
+
note?: string | null;
|
|
340
|
+
progressionScheme: ProgressionScheme;
|
|
341
|
+
minWeightIncrementKg: number;
|
|
342
|
+
sets: ExercisePerformancePrescriptionSet[];
|
|
343
|
+
}
|
|
344
|
+
interface ExercisePerformanceSession {
|
|
345
|
+
sessionId: string;
|
|
346
|
+
status: Extract<WorkoutSessionStatus, 'COMPLETED' | 'ABORTED'>;
|
|
347
|
+
routineName: string;
|
|
348
|
+
dayName?: string | null;
|
|
349
|
+
startedAt: string;
|
|
350
|
+
endedAt: string;
|
|
351
|
+
durationSec?: number | null;
|
|
352
|
+
sessionNotes?: string | null;
|
|
353
|
+
sets: ExercisePerformanceSet[];
|
|
354
|
+
prescriptions: ExercisePerformancePrescription[];
|
|
355
|
+
progressionChanges: ProgressionChange[];
|
|
356
|
+
}
|
|
357
|
+
/** Stable successful response of GET /workouts/progress/performance. */
|
|
358
|
+
interface ExercisePerformanceHistoryResponse {
|
|
359
|
+
exercises: ExercisePerformanceSummary[];
|
|
360
|
+
selectedExercise: ExercisePerformanceSummary | null;
|
|
361
|
+
items: ExercisePerformanceSession[];
|
|
362
|
+
nextCursor?: string;
|
|
363
|
+
}
|
|
364
|
+
interface MuscleGroupHeatmapQuery {
|
|
365
|
+
timeZone: string;
|
|
366
|
+
/** Number of Monday-based calendar weeks to return, including this week. */
|
|
367
|
+
weeks?: number;
|
|
368
|
+
}
|
|
369
|
+
interface MuscleGroupHeatmapValue {
|
|
370
|
+
muscle: MuscleGroup;
|
|
371
|
+
/** Completed-set equivalents: primary muscles count 1, secondary count 0.5. */
|
|
372
|
+
weightedSets: number;
|
|
373
|
+
}
|
|
374
|
+
interface MuscleGroupHeatmapWeek {
|
|
375
|
+
weekStart: string;
|
|
376
|
+
isCurrentWeek: boolean;
|
|
377
|
+
totalWeightedSets: number;
|
|
378
|
+
muscles: MuscleGroupHeatmapValue[];
|
|
379
|
+
}
|
|
380
|
+
/** Stable successful response of GET /workouts/progress/muscles. */
|
|
381
|
+
interface MuscleGroupHeatmapResponse {
|
|
382
|
+
timeZone: string;
|
|
383
|
+
weeks: MuscleGroupHeatmapWeek[];
|
|
384
|
+
peakWeightedSets: number;
|
|
385
|
+
}
|
|
307
386
|
/** Immutable prescription captured before any sets or progression. */
|
|
308
387
|
interface WorkoutSessionSnapshotV1 {
|
|
309
388
|
schemaVersion: 1;
|
|
@@ -584,4 +663,4 @@ interface CreateRoutineRequest {
|
|
|
584
663
|
}
|
|
585
664
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
586
665
|
|
|
587
|
-
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, type PaginatedResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RepType, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
|
666
|
+
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, type PaginatedResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RepType, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|