@sunsteel/contracts 0.39.0 → 0.41.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 +14 -0
- package/dist/index.d.cts +56 -1
- package/dist/index.d.ts +56 -1
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -59,6 +59,10 @@ __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,
|
|
65
|
+
SCHEDULE_SKIP_PAST_DAYS: () => SCHEDULE_SKIP_PAST_DAYS,
|
|
62
66
|
SESSION_SHARE_DEFAULT_FIELDS: () => SESSION_SHARE_DEFAULT_FIELDS,
|
|
63
67
|
SESSION_SHARE_FIELDS: () => SESSION_SHARE_FIELDS,
|
|
64
68
|
SESSION_SHARE_MAX_ACTIVE_LINKS: () => SESSION_SHARE_MAX_ACTIVE_LINKS,
|
|
@@ -383,6 +387,12 @@ var ROUTINE_VERSIONS_MAX = 20;
|
|
|
383
387
|
var ROUTINE_VERSION_NAME_MAX = 60;
|
|
384
388
|
var ROUTINE_VERSION_KINDS = ["SAVED", "BEFORE_RESTORE"];
|
|
385
389
|
|
|
390
|
+
// src/schedule.ts
|
|
391
|
+
var SCHEDULE_OVERRIDE_KINDS = ["MOVE", "SKIP"];
|
|
392
|
+
var SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
393
|
+
var SCHEDULE_SKIP_PAST_DAYS = 6;
|
|
394
|
+
var SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
395
|
+
|
|
386
396
|
// src/workout.ts
|
|
387
397
|
var SESSION_SHARE_FIELDS = [
|
|
388
398
|
"duration",
|
|
@@ -459,6 +469,10 @@ var PLATEAU_MIN_SESSIONS_MAX = 8;
|
|
|
459
469
|
ROUTINE_VERSIONS_MAX,
|
|
460
470
|
ROUTINE_VERSION_KINDS,
|
|
461
471
|
ROUTINE_VERSION_NAME_MAX,
|
|
472
|
+
SCHEDULE_MOVE_MAX_DAYS,
|
|
473
|
+
SCHEDULE_OVERRIDES_MAX_RANGE_DAYS,
|
|
474
|
+
SCHEDULE_OVERRIDE_KINDS,
|
|
475
|
+
SCHEDULE_SKIP_PAST_DAYS,
|
|
462
476
|
SESSION_SHARE_DEFAULT_FIELDS,
|
|
463
477
|
SESSION_SHARE_FIELDS,
|
|
464
478
|
SESSION_SHARE_MAX_ACTIVE_LINKS,
|
package/dist/index.d.cts
CHANGED
|
@@ -1291,4 +1291,59 @@ interface RestoreRoutineVersionResponse {
|
|
|
1291
1291
|
savedVersion: RoutineVersion;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
|
|
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); SKIP marks it
|
|
1299
|
+
* skipped on purpose (SCHED-05). Overrides are kept by calendar date, not by
|
|
1300
|
+
* routine day, because routine edits replace the days.
|
|
1301
|
+
*/
|
|
1302
|
+
declare const SCHEDULE_OVERRIDE_KINDS: readonly ["MOVE", "SKIP"];
|
|
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
|
+
/**
|
|
1307
|
+
* SCHED-05: a skip can explain a planned day up to this many days back;
|
|
1308
|
+
* ahead, any planned day can be skipped.
|
|
1309
|
+
*/
|
|
1310
|
+
declare const SCHEDULE_SKIP_PAST_DAYS = 6;
|
|
1311
|
+
/** Overrides are read for at most this many days at once. */
|
|
1312
|
+
declare const SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
1313
|
+
interface ScheduleOverride {
|
|
1314
|
+
id: string;
|
|
1315
|
+
routineId: string;
|
|
1316
|
+
/** The planned date this override changes. */
|
|
1317
|
+
date: CalendarDate;
|
|
1318
|
+
kind: ScheduleOverrideKind;
|
|
1319
|
+
/** MOVE: the date the occurrence now falls on; null for SKIP. */
|
|
1320
|
+
toDate: CalendarDate | null;
|
|
1321
|
+
createdAt: IsoDateString;
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* `GET /schedule/overrides?from&to`: the owner's overrides whose date or
|
|
1325
|
+
* target falls in the range, both ends included.
|
|
1326
|
+
*/
|
|
1327
|
+
interface ScheduleOverridesQuery {
|
|
1328
|
+
from: CalendarDate;
|
|
1329
|
+
to: CalendarDate;
|
|
1330
|
+
}
|
|
1331
|
+
interface ScheduleOverridesResponse {
|
|
1332
|
+
overrides: ScheduleOverride[];
|
|
1333
|
+
}
|
|
1334
|
+
/** `PUT /schedule/overrides/move`: moves one occurrence, or moves it again. */
|
|
1335
|
+
interface MoveOccurrenceRequest {
|
|
1336
|
+
routineId: string;
|
|
1337
|
+
date: CalendarDate;
|
|
1338
|
+
toDate: CalendarDate;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* `PUT /schedule/overrides/skip`: marks one occurrence skipped. A moved
|
|
1342
|
+
* occurrence is skipped as a whole; undoing is `DELETE` like a move.
|
|
1343
|
+
*/
|
|
1344
|
+
interface SkipOccurrenceRequest {
|
|
1345
|
+
routineId: string;
|
|
1346
|
+
date: CalendarDate;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
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, SCHEDULE_SKIP_PAST_DAYS, 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 SkipOccurrenceRequest, 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
|
@@ -1291,4 +1291,59 @@ interface RestoreRoutineVersionResponse {
|
|
|
1291
1291
|
savedVersion: RoutineVersion;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
|
|
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); SKIP marks it
|
|
1299
|
+
* skipped on purpose (SCHED-05). Overrides are kept by calendar date, not by
|
|
1300
|
+
* routine day, because routine edits replace the days.
|
|
1301
|
+
*/
|
|
1302
|
+
declare const SCHEDULE_OVERRIDE_KINDS: readonly ["MOVE", "SKIP"];
|
|
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
|
+
/**
|
|
1307
|
+
* SCHED-05: a skip can explain a planned day up to this many days back;
|
|
1308
|
+
* ahead, any planned day can be skipped.
|
|
1309
|
+
*/
|
|
1310
|
+
declare const SCHEDULE_SKIP_PAST_DAYS = 6;
|
|
1311
|
+
/** Overrides are read for at most this many days at once. */
|
|
1312
|
+
declare const SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
1313
|
+
interface ScheduleOverride {
|
|
1314
|
+
id: string;
|
|
1315
|
+
routineId: string;
|
|
1316
|
+
/** The planned date this override changes. */
|
|
1317
|
+
date: CalendarDate;
|
|
1318
|
+
kind: ScheduleOverrideKind;
|
|
1319
|
+
/** MOVE: the date the occurrence now falls on; null for SKIP. */
|
|
1320
|
+
toDate: CalendarDate | null;
|
|
1321
|
+
createdAt: IsoDateString;
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* `GET /schedule/overrides?from&to`: the owner's overrides whose date or
|
|
1325
|
+
* target falls in the range, both ends included.
|
|
1326
|
+
*/
|
|
1327
|
+
interface ScheduleOverridesQuery {
|
|
1328
|
+
from: CalendarDate;
|
|
1329
|
+
to: CalendarDate;
|
|
1330
|
+
}
|
|
1331
|
+
interface ScheduleOverridesResponse {
|
|
1332
|
+
overrides: ScheduleOverride[];
|
|
1333
|
+
}
|
|
1334
|
+
/** `PUT /schedule/overrides/move`: moves one occurrence, or moves it again. */
|
|
1335
|
+
interface MoveOccurrenceRequest {
|
|
1336
|
+
routineId: string;
|
|
1337
|
+
date: CalendarDate;
|
|
1338
|
+
toDate: CalendarDate;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* `PUT /schedule/overrides/skip`: marks one occurrence skipped. A moved
|
|
1342
|
+
* occurrence is skipped as a whole; undoing is `DELETE` like a move.
|
|
1343
|
+
*/
|
|
1344
|
+
interface SkipOccurrenceRequest {
|
|
1345
|
+
routineId: string;
|
|
1346
|
+
date: CalendarDate;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
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, SCHEDULE_SKIP_PAST_DAYS, 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 SkipOccurrenceRequest, 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,12 @@ 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", "SKIP"];
|
|
309
|
+
var SCHEDULE_MOVE_MAX_DAYS = 6;
|
|
310
|
+
var SCHEDULE_SKIP_PAST_DAYS = 6;
|
|
311
|
+
var SCHEDULE_OVERRIDES_MAX_RANGE_DAYS = 62;
|
|
312
|
+
|
|
307
313
|
// src/workout.ts
|
|
308
314
|
var SESSION_SHARE_FIELDS = [
|
|
309
315
|
"duration",
|
|
@@ -379,6 +385,10 @@ export {
|
|
|
379
385
|
ROUTINE_VERSIONS_MAX,
|
|
380
386
|
ROUTINE_VERSION_KINDS,
|
|
381
387
|
ROUTINE_VERSION_NAME_MAX,
|
|
388
|
+
SCHEDULE_MOVE_MAX_DAYS,
|
|
389
|
+
SCHEDULE_OVERRIDES_MAX_RANGE_DAYS,
|
|
390
|
+
SCHEDULE_OVERRIDE_KINDS,
|
|
391
|
+
SCHEDULE_SKIP_PAST_DAYS,
|
|
382
392
|
SESSION_SHARE_DEFAULT_FIELDS,
|
|
383
393
|
SESSION_SHARE_FIELDS,
|
|
384
394
|
SESSION_SHARE_MAX_ACTIVE_LINKS,
|