@sunsteel/contracts 0.38.0 → 0.40.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.cjs +11 -0
- package/dist/index.d.cts +56 -1
- package/dist/index.d.ts +56 -1
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -59,6 +59,9 @@ __export(index_exports, {
|
|
|
59
59
|
ROUTINE_VERSIONS_MAX: () => ROUTINE_VERSIONS_MAX,
|
|
60
60
|
ROUTINE_VERSION_KINDS: () => ROUTINE_VERSION_KINDS,
|
|
61
61
|
ROUTINE_VERSION_NAME_MAX: () => ROUTINE_VERSION_NAME_MAX,
|
|
62
|
+
SCHEDULE_MOVE_MAX_DAYS: () => SCHEDULE_MOVE_MAX_DAYS,
|
|
63
|
+
SCHEDULE_OVERRIDES_MAX_RANGE_DAYS: () => SCHEDULE_OVERRIDES_MAX_RANGE_DAYS,
|
|
64
|
+
SCHEDULE_OVERRIDE_KINDS: () => SCHEDULE_OVERRIDE_KINDS,
|
|
62
65
|
SESSION_SHARE_DEFAULT_FIELDS: () => SESSION_SHARE_DEFAULT_FIELDS,
|
|
63
66
|
SESSION_SHARE_FIELDS: () => SESSION_SHARE_FIELDS,
|
|
64
67
|
SESSION_SHARE_MAX_ACTIVE_LINKS: () => SESSION_SHARE_MAX_ACTIVE_LINKS,
|
|
@@ -383,6 +386,11 @@ var ROUTINE_VERSIONS_MAX = 20;
|
|
|
383
386
|
var ROUTINE_VERSION_NAME_MAX = 60;
|
|
384
387
|
var ROUTINE_VERSION_KINDS = ["SAVED", "BEFORE_RESTORE"];
|
|
385
388
|
|
|
389
|
+
// src/schedule.ts
|
|
390
|
+
var SCHEDULE_OVERRIDE_KINDS = ["MOVE"];
|
|
391
|
+
var SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
392
|
+
var SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
393
|
+
|
|
386
394
|
// src/workout.ts
|
|
387
395
|
var SESSION_SHARE_FIELDS = [
|
|
388
396
|
"duration",
|
|
@@ -459,6 +467,9 @@ var PLATEAU_MIN_SESSIONS_MAX = 8;
|
|
|
459
467
|
ROUTINE_VERSIONS_MAX,
|
|
460
468
|
ROUTINE_VERSION_KINDS,
|
|
461
469
|
ROUTINE_VERSION_NAME_MAX,
|
|
470
|
+
SCHEDULE_MOVE_MAX_DAYS,
|
|
471
|
+
SCHEDULE_OVERRIDES_MAX_RANGE_DAYS,
|
|
472
|
+
SCHEDULE_OVERRIDE_KINDS,
|
|
462
473
|
SESSION_SHARE_DEFAULT_FIELDS,
|
|
463
474
|
SESSION_SHARE_FIELDS,
|
|
464
475
|
SESSION_SHARE_MAX_ACTIVE_LINKS,
|
package/dist/index.d.cts
CHANGED
|
@@ -1196,6 +1196,12 @@ interface Routine {
|
|
|
1196
1196
|
* never one of its training weekdays; always empty on a ROTATION routine.
|
|
1197
1197
|
*/
|
|
1198
1198
|
restDays: number[];
|
|
1199
|
+
/**
|
|
1200
|
+
* SCHED-06: weekdays (0=Sun..6=Sat) a ROTATION routine trains on, sorted; the
|
|
1201
|
+
* schedule places its days on them in order. Empty means any day, without
|
|
1202
|
+
* dates; always empty on a WEEKLY routine.
|
|
1203
|
+
*/
|
|
1204
|
+
rotationWeekdays: number[];
|
|
1199
1205
|
days: RoutineDay[];
|
|
1200
1206
|
createdAt: IsoDateString;
|
|
1201
1207
|
updatedAt: IsoDateString;
|
|
@@ -1211,6 +1217,11 @@ interface CreateRoutineRequest {
|
|
|
1211
1217
|
* any that became training weekdays.
|
|
1212
1218
|
*/
|
|
1213
1219
|
restDays?: number[];
|
|
1220
|
+
/**
|
|
1221
|
+
* Rotation routines only. Omitted on update keeps the stored weekdays;
|
|
1222
|
+
* switching to WEEKLY clears them.
|
|
1223
|
+
*/
|
|
1224
|
+
rotationWeekdays?: number[];
|
|
1214
1225
|
days: CreateRoutineDayInput[];
|
|
1215
1226
|
}
|
|
1216
1227
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
@@ -1248,6 +1259,8 @@ interface RoutineVersionSetup {
|
|
|
1248
1259
|
description: string | null;
|
|
1249
1260
|
scheduleMode: RoutineScheduleMode;
|
|
1250
1261
|
restDays: number[];
|
|
1262
|
+
/** SCHED-06; absent in versions saved before it, which means none. */
|
|
1263
|
+
rotationWeekdays?: number[];
|
|
1251
1264
|
days: RoutineVersionDay[];
|
|
1252
1265
|
}
|
|
1253
1266
|
interface RoutineVersion {
|
|
@@ -1278,4 +1291,46 @@ interface RestoreRoutineVersionResponse {
|
|
|
1278
1291
|
savedVersion: RoutineVersion;
|
|
1279
1292
|
}
|
|
1280
1293
|
|
|
1281
|
-
|
|
1294
|
+
/** A local calendar date, YYYY-MM-DD. */
|
|
1295
|
+
type CalendarDate = string;
|
|
1296
|
+
/**
|
|
1297
|
+
* The schedule-instance model: per-date overrides of a routine's plan. MOVE
|
|
1298
|
+
* puts one weekly occurrence on another date (SCHED-04); SCHED-05 adds its
|
|
1299
|
+
* own kinds. Overrides are kept by calendar date, not by routine day, because
|
|
1300
|
+
* routine edits replace the days.
|
|
1301
|
+
*/
|
|
1302
|
+
declare const SCHEDULE_OVERRIDE_KINDS: readonly ["MOVE"];
|
|
1303
|
+
type ScheduleOverrideKind = (typeof SCHEDULE_OVERRIDE_KINDS)[number];
|
|
1304
|
+
/** A move goes at most this many days before or after the planned date. */
|
|
1305
|
+
declare const SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
1306
|
+
/** Overrides are read for at most this many days at once. */
|
|
1307
|
+
declare const SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
1308
|
+
interface ScheduleOverride {
|
|
1309
|
+
id: string;
|
|
1310
|
+
routineId: string;
|
|
1311
|
+
/** The planned date this override changes. */
|
|
1312
|
+
date: CalendarDate;
|
|
1313
|
+
kind: ScheduleOverrideKind;
|
|
1314
|
+
/** MOVE: the date the occurrence now falls on. */
|
|
1315
|
+
toDate: CalendarDate | null;
|
|
1316
|
+
createdAt: IsoDateString;
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* `GET /schedule/overrides?from&to`: the owner's overrides whose date or
|
|
1320
|
+
* target falls in the range, both ends included.
|
|
1321
|
+
*/
|
|
1322
|
+
interface ScheduleOverridesQuery {
|
|
1323
|
+
from: CalendarDate;
|
|
1324
|
+
to: CalendarDate;
|
|
1325
|
+
}
|
|
1326
|
+
interface ScheduleOverridesResponse {
|
|
1327
|
+
overrides: ScheduleOverride[];
|
|
1328
|
+
}
|
|
1329
|
+
/** `PUT /schedule/overrides/move`: moves one occurrence, or moves it again. */
|
|
1330
|
+
interface MoveOccurrenceRequest {
|
|
1331
|
+
routineId: string;
|
|
1332
|
+
date: CalendarDate;
|
|
1333
|
+
toDate: CalendarDate;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementUnlockedEventPayload, type AchievementsResponse, type Brand, type CalendarDate, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, 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, PROGRESS_TIMELINE_EVENT_TYPES, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REP_TYPES, RESERVED_USERNAMES, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_SCHEDULE_MODES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, type RecentActivityEntry, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type RestoreRoutineVersionResponse, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineScheduleMode, type RoutineSet, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, STARRED_EXERCISES_MAX, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionExerciseSubstitution, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetLog, type Sex, type SharedSessionOwner, type SharedSessionRecap, type StarredExercise, type StarredExercisesResponse, type StartWorkoutRequest, type StartWorkoutResponse, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, 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, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, 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, routineDayLabel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1196,6 +1196,12 @@ interface Routine {
|
|
|
1196
1196
|
* never one of its training weekdays; always empty on a ROTATION routine.
|
|
1197
1197
|
*/
|
|
1198
1198
|
restDays: number[];
|
|
1199
|
+
/**
|
|
1200
|
+
* SCHED-06: weekdays (0=Sun..6=Sat) a ROTATION routine trains on, sorted; the
|
|
1201
|
+
* schedule places its days on them in order. Empty means any day, without
|
|
1202
|
+
* dates; always empty on a WEEKLY routine.
|
|
1203
|
+
*/
|
|
1204
|
+
rotationWeekdays: number[];
|
|
1199
1205
|
days: RoutineDay[];
|
|
1200
1206
|
createdAt: IsoDateString;
|
|
1201
1207
|
updatedAt: IsoDateString;
|
|
@@ -1211,6 +1217,11 @@ interface CreateRoutineRequest {
|
|
|
1211
1217
|
* any that became training weekdays.
|
|
1212
1218
|
*/
|
|
1213
1219
|
restDays?: number[];
|
|
1220
|
+
/**
|
|
1221
|
+
* Rotation routines only. Omitted on update keeps the stored weekdays;
|
|
1222
|
+
* switching to WEEKLY clears them.
|
|
1223
|
+
*/
|
|
1224
|
+
rotationWeekdays?: number[];
|
|
1214
1225
|
days: CreateRoutineDayInput[];
|
|
1215
1226
|
}
|
|
1216
1227
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
@@ -1248,6 +1259,8 @@ interface RoutineVersionSetup {
|
|
|
1248
1259
|
description: string | null;
|
|
1249
1260
|
scheduleMode: RoutineScheduleMode;
|
|
1250
1261
|
restDays: number[];
|
|
1262
|
+
/** SCHED-06; absent in versions saved before it, which means none. */
|
|
1263
|
+
rotationWeekdays?: number[];
|
|
1251
1264
|
days: RoutineVersionDay[];
|
|
1252
1265
|
}
|
|
1253
1266
|
interface RoutineVersion {
|
|
@@ -1278,4 +1291,46 @@ interface RestoreRoutineVersionResponse {
|
|
|
1278
1291
|
savedVersion: RoutineVersion;
|
|
1279
1292
|
}
|
|
1280
1293
|
|
|
1281
|
-
|
|
1294
|
+
/** A local calendar date, YYYY-MM-DD. */
|
|
1295
|
+
type CalendarDate = string;
|
|
1296
|
+
/**
|
|
1297
|
+
* The schedule-instance model: per-date overrides of a routine's plan. MOVE
|
|
1298
|
+
* puts one weekly occurrence on another date (SCHED-04); SCHED-05 adds its
|
|
1299
|
+
* own kinds. Overrides are kept by calendar date, not by routine day, because
|
|
1300
|
+
* routine edits replace the days.
|
|
1301
|
+
*/
|
|
1302
|
+
declare const SCHEDULE_OVERRIDE_KINDS: readonly ["MOVE"];
|
|
1303
|
+
type ScheduleOverrideKind = (typeof SCHEDULE_OVERRIDE_KINDS)[number];
|
|
1304
|
+
/** A move goes at most this many days before or after the planned date. */
|
|
1305
|
+
declare const SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
1306
|
+
/** Overrides are read for at most this many days at once. */
|
|
1307
|
+
declare const SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
1308
|
+
interface ScheduleOverride {
|
|
1309
|
+
id: string;
|
|
1310
|
+
routineId: string;
|
|
1311
|
+
/** The planned date this override changes. */
|
|
1312
|
+
date: CalendarDate;
|
|
1313
|
+
kind: ScheduleOverrideKind;
|
|
1314
|
+
/** MOVE: the date the occurrence now falls on. */
|
|
1315
|
+
toDate: CalendarDate | null;
|
|
1316
|
+
createdAt: IsoDateString;
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* `GET /schedule/overrides?from&to`: the owner's overrides whose date or
|
|
1320
|
+
* target falls in the range, both ends included.
|
|
1321
|
+
*/
|
|
1322
|
+
interface ScheduleOverridesQuery {
|
|
1323
|
+
from: CalendarDate;
|
|
1324
|
+
to: CalendarDate;
|
|
1325
|
+
}
|
|
1326
|
+
interface ScheduleOverridesResponse {
|
|
1327
|
+
overrides: ScheduleOverride[];
|
|
1328
|
+
}
|
|
1329
|
+
/** `PUT /schedule/overrides/move`: moves one occurrence, or moves it again. */
|
|
1330
|
+
interface MoveOccurrenceRequest {
|
|
1331
|
+
routineId: string;
|
|
1332
|
+
date: CalendarDate;
|
|
1333
|
+
toDate: CalendarDate;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementUnlockedEventPayload, type AchievementsResponse, type Brand, type CalendarDate, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExercisePlateau, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, 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, PROGRESS_TIMELINE_EVENT_TYPES, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PlateauPreferences, type PlateauSet, type PlateausResponse, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REP_TYPES, RESERVED_USERNAMES, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_SCHEDULE_MODES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, type RecentActivityEntry, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type RestoreRoutineVersionResponse, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineScheduleMode, type RoutineSet, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, STARRED_EXERCISES_MAX, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionExerciseSubstitution, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetLog, type Sex, type SharedSessionOwner, type SharedSessionRecap, type StarredExercise, type StarredExercisesResponse, type StartWorkoutRequest, type StartWorkoutResponse, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, 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, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, 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, routineDayLabel };
|
package/dist/index.js
CHANGED
|
@@ -304,6 +304,11 @@ var ROUTINE_VERSIONS_MAX = 20;
|
|
|
304
304
|
var ROUTINE_VERSION_NAME_MAX = 60;
|
|
305
305
|
var ROUTINE_VERSION_KINDS = ["SAVED", "BEFORE_RESTORE"];
|
|
306
306
|
|
|
307
|
+
// src/schedule.ts
|
|
308
|
+
var SCHEDULE_OVERRIDE_KINDS = ["MOVE"];
|
|
309
|
+
var SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
310
|
+
var SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
311
|
+
|
|
307
312
|
// src/workout.ts
|
|
308
313
|
var SESSION_SHARE_FIELDS = [
|
|
309
314
|
"duration",
|
|
@@ -379,6 +384,9 @@ export {
|
|
|
379
384
|
ROUTINE_VERSIONS_MAX,
|
|
380
385
|
ROUTINE_VERSION_KINDS,
|
|
381
386
|
ROUTINE_VERSION_NAME_MAX,
|
|
387
|
+
SCHEDULE_MOVE_MAX_DAYS,
|
|
388
|
+
SCHEDULE_OVERRIDES_MAX_RANGE_DAYS,
|
|
389
|
+
SCHEDULE_OVERRIDE_KINDS,
|
|
382
390
|
SESSION_SHARE_DEFAULT_FIELDS,
|
|
383
391
|
SESSION_SHARE_FIELDS,
|
|
384
392
|
SESSION_SHARE_MAX_ACTIVE_LINKS,
|