@sunsteel/contracts 0.94.0 → 0.96.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 +82 -2
- package/dist/index.d.cts +113 -5
- package/dist/index.d.ts +113 -5
- package/dist/index.js +72 -2
- package/package.json +40 -40
package/dist/index.cjs
CHANGED
|
@@ -97,6 +97,11 @@ __export(index_exports, {
|
|
|
97
97
|
INCHES_PER_FOOT: () => INCHES_PER_FOOT,
|
|
98
98
|
LENGTH_UNITS: () => LENGTH_UNITS,
|
|
99
99
|
LIMITED_SHORTFALL_KG: () => LIMITED_SHORTFALL_KG,
|
|
100
|
+
LOGGED_WORKOUTS_PER_ROUTINE_MAX: () => LOGGED_WORKOUTS_PER_ROUTINE_MAX,
|
|
101
|
+
LOGGED_WORKOUT_DEFAULT_START_MINUTE: () => LOGGED_WORKOUT_DEFAULT_START_MINUTE,
|
|
102
|
+
LOGGED_WORKOUT_LOOKBACK_DAYS: () => LOGGED_WORKOUT_LOOKBACK_DAYS,
|
|
103
|
+
LOGGED_WORKOUT_MAX_DURATION_SEC: () => LOGGED_WORKOUT_MAX_DURATION_SEC,
|
|
104
|
+
LOGGED_WORKOUT_MIN_DURATION_SEC: () => LOGGED_WORKOUT_MIN_DURATION_SEC,
|
|
100
105
|
LP_BLOCK_STEPS: () => LP_BLOCK_STEPS,
|
|
101
106
|
LP_ESTIMATE_MAX_REPS_TO_FAILURE: () => LP_ESTIMATE_MAX_REPS_TO_FAILURE,
|
|
102
107
|
LP_ESTIMATE_MIN_SETS: () => LP_ESTIMATE_MIN_SETS,
|
|
@@ -253,8 +258,10 @@ __export(index_exports, {
|
|
|
253
258
|
USERNAME_PATTERN_SOURCE: () => USERNAME_PATTERN_SOURCE,
|
|
254
259
|
WEEK_STARTS: () => WEEK_STARTS,
|
|
255
260
|
WEIGHT_UNITS: () => WEIGHT_UNITS,
|
|
261
|
+
WORKOUT_SESSION_ORIGINS: () => WORKOUT_SESSION_ORIGINS,
|
|
256
262
|
WORKOUT_SESSION_STATUSES: () => WORKOUT_SESSION_STATUSES,
|
|
257
263
|
accountExportFileName: () => accountExportFileName,
|
|
264
|
+
addCalendarDays: () => addCalendarDays,
|
|
258
265
|
advanceLinearPeriodization: () => advanceLinearPeriodization,
|
|
259
266
|
apiError: () => apiError,
|
|
260
267
|
apiErrorMessage: () => apiErrorMessage,
|
|
@@ -264,6 +271,7 @@ __export(index_exports, {
|
|
|
264
271
|
buildWarmUpRamp: () => buildWarmUpRamp,
|
|
265
272
|
calculatePlateLoading: () => calculatePlateLoading,
|
|
266
273
|
canLinkToNext: () => canLinkToNext,
|
|
274
|
+
canLogWorkoutOn: () => canLogWorkoutOn,
|
|
267
275
|
cmToFeetInches: () => cmToFeetInches,
|
|
268
276
|
cmToInches: () => cmToInches,
|
|
269
277
|
continueLinearPeriodization: () => continueLinearPeriodization,
|
|
@@ -297,6 +305,8 @@ __export(index_exports, {
|
|
|
297
305
|
latestBodyWeight: () => latestBodyWeight,
|
|
298
306
|
leadWorkingWeight: () => leadWorkingWeight,
|
|
299
307
|
linearPeriodizationProblem: () => linearPeriodizationProblem,
|
|
308
|
+
loggedWorkoutDateRange: () => loggedWorkoutDateRange,
|
|
309
|
+
lpAtStep: () => lpAtStep,
|
|
300
310
|
lpEstimate: () => lpEstimate,
|
|
301
311
|
lpLoadKg: () => lpLoadKg,
|
|
302
312
|
lpPrescription: () => lpPrescription,
|
|
@@ -980,11 +990,12 @@ function lpLoadKg(referenceMaxKg, percentage, incrementKg) {
|
|
|
980
990
|
return roundToIncrement(referenceMaxKg * percentage, incrementKg);
|
|
981
991
|
}
|
|
982
992
|
var LP_PHASES = ["BLOCK", "RECOVERY", "FINISHED"];
|
|
983
|
-
|
|
993
|
+
var clampStep = (step) => Math.min(Math.max(Math.trunc(step) || 1, 1), LP_BLOCK_STEPS);
|
|
994
|
+
function startLinearPeriodization(referenceMaxKg, cycle = 1, step = 1) {
|
|
984
995
|
return {
|
|
985
996
|
referenceMaxKg,
|
|
986
997
|
phase: "BLOCK",
|
|
987
|
-
step:
|
|
998
|
+
step: clampStep(step),
|
|
988
999
|
cycle,
|
|
989
1000
|
samples: [],
|
|
990
1001
|
finishedAt: null,
|
|
@@ -992,6 +1003,18 @@ function startLinearPeriodization(referenceMaxKg, cycle = 1) {
|
|
|
992
1003
|
nextReferenceMaxKg: null
|
|
993
1004
|
};
|
|
994
1005
|
}
|
|
1006
|
+
function lpAtStep(state, step) {
|
|
1007
|
+
const at = clampStep(step);
|
|
1008
|
+
return {
|
|
1009
|
+
...state,
|
|
1010
|
+
phase: "BLOCK",
|
|
1011
|
+
step: at,
|
|
1012
|
+
samples: state.samples.filter((sample) => sample.step < at),
|
|
1013
|
+
finishedAt: null,
|
|
1014
|
+
estimatedMaxKg: null,
|
|
1015
|
+
nextReferenceMaxKg: null
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
995
1018
|
function linearPeriodizationProblem(state) {
|
|
996
1019
|
if (!Number.isFinite(state.referenceMaxKg) || state.referenceMaxKg <= 0 || state.referenceMaxKg > LP_REFERENCE_MAX_KG) {
|
|
997
1020
|
return "The reference max must be above 0";
|
|
@@ -1159,6 +1182,42 @@ function lpStoredSets(state, incrementKg) {
|
|
|
1159
1182
|
}));
|
|
1160
1183
|
}
|
|
1161
1184
|
|
|
1185
|
+
// src/logged-workouts.ts
|
|
1186
|
+
var WORKOUT_SESSION_ORIGINS = ["LIVE", "LOGGED_LATER"];
|
|
1187
|
+
var LOGGED_WORKOUT_LOOKBACK_DAYS = 84;
|
|
1188
|
+
var LOGGED_WORKOUTS_PER_ROUTINE_MAX = 48;
|
|
1189
|
+
var LOGGED_WORKOUT_DEFAULT_START_MINUTE = 12 * 60;
|
|
1190
|
+
var LOGGED_WORKOUT_MAX_DURATION_SEC = 6 * 60 * 60;
|
|
1191
|
+
var LOGGED_WORKOUT_MIN_DURATION_SEC = 60;
|
|
1192
|
+
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
1193
|
+
var DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
1194
|
+
function dayNumber(date) {
|
|
1195
|
+
if (!DATE.test(date)) return null;
|
|
1196
|
+
const time = Date.parse(`${date}T00:00:00Z`);
|
|
1197
|
+
if (!Number.isFinite(time)) return null;
|
|
1198
|
+
if (new Date(time).toISOString().slice(0, 10) !== date) return null;
|
|
1199
|
+
return Math.round(time / DAY_MS);
|
|
1200
|
+
}
|
|
1201
|
+
function addCalendarDays(date, days) {
|
|
1202
|
+
const day = dayNumber(date);
|
|
1203
|
+
if (day === null) return date;
|
|
1204
|
+
return new Date((day + days) * DAY_MS).toISOString().slice(0, 10);
|
|
1205
|
+
}
|
|
1206
|
+
function loggedWorkoutDateRange(input) {
|
|
1207
|
+
const first = addCalendarDays(input.today, -LOGGED_WORKOUT_LOOKBACK_DAYS);
|
|
1208
|
+
const last = addCalendarDays(input.createdOn, -1);
|
|
1209
|
+
const a = dayNumber(first);
|
|
1210
|
+
const b = dayNumber(last);
|
|
1211
|
+
if (a === null || b === null || b < a) return null;
|
|
1212
|
+
return { first, last };
|
|
1213
|
+
}
|
|
1214
|
+
function canLogWorkoutOn(date, input) {
|
|
1215
|
+
const day = dayNumber(date);
|
|
1216
|
+
const range = loggedWorkoutDateRange(input);
|
|
1217
|
+
if (day === null || !range) return false;
|
|
1218
|
+
return day >= dayNumber(range.first) && day <= dayNumber(range.last);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1162
1221
|
// src/plate-loading.ts
|
|
1163
1222
|
var CANONICAL_SCALE = 1e4;
|
|
1164
1223
|
var DENSE_CAPACITY_LIMIT = 2e5;
|
|
@@ -1729,6 +1788,7 @@ function sessionCorrectionWindow(input, now = /* @__PURE__ */ new Date()) {
|
|
|
1729
1788
|
const closed = (closedReason) => ({ correctableUntil: null, closedReason });
|
|
1730
1789
|
if (input.status !== "COMPLETED" || !input.endedAt)
|
|
1731
1790
|
return closed("NOT_COMPLETED");
|
|
1791
|
+
if (input.loggedLater) return closed("LOGGED_LATER");
|
|
1732
1792
|
if (!input.isLatest) return closed("NOT_LATEST");
|
|
1733
1793
|
if (input.laterSessionStarted) return closed("LATER_SESSION");
|
|
1734
1794
|
const until = new Date(
|
|
@@ -1991,12 +2051,22 @@ var API_ERROR_MESSAGES = {
|
|
|
1991
2051
|
LINEAR_BLOCK_SWAP_ROUTINE: "An exercise on an 8-week block can be swapped for this workout only",
|
|
1992
2052
|
LINEAR_BLOCK_NOT_LINEAR: "This exercise is not on an 8-week block",
|
|
1993
2053
|
LINEAR_BLOCK_NOT_FINISHED: "This exercise's block has not finished, so there is nothing to choose yet",
|
|
2054
|
+
// ── Workouts logged later (LIVE-23) ───────────────────────────────────
|
|
2055
|
+
LOGGED_WORKOUT_DATE: "A past workout can be logged only before the routine was created, within the last {days} days",
|
|
2056
|
+
LOGGED_WORKOUT_OVERLAP: "Another workout overlaps that time",
|
|
2057
|
+
LOGGED_WORKOUT_SAME_DAY: "This day of the routine is already logged on that date",
|
|
2058
|
+
LOGGED_WORKOUT_LIMIT: "A routine can hold at most {max} logged workouts",
|
|
2059
|
+
LOGGED_WORKOUT_NO_SETS: "Log at least one completed set",
|
|
2060
|
+
LOGGED_WORKOUT_SET_NOT_IN_DAY: "Every set must belong to an exercise of this day",
|
|
2061
|
+
LOGGED_WORKOUT_DAY_NOT_BASELINE: "Only the routine's own days can be logged, not a training block's or a deload's",
|
|
2062
|
+
LOGGED_WORKOUT_NOT_LOGGED: "Only a workout logged later can be removed",
|
|
1994
2063
|
// ── Corrections (LIVE-17) ──────────────────────────────────────────────
|
|
1995
2064
|
CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected",
|
|
1996
2065
|
CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected",
|
|
1997
2066
|
CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since",
|
|
1998
2067
|
CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed",
|
|
1999
2068
|
CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed",
|
|
2069
|
+
CORRECTION_LOGGED_LATER: "A workout logged later is changed by removing it and logging it again",
|
|
2000
2070
|
CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg",
|
|
2001
2071
|
CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}",
|
|
2002
2072
|
CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}",
|
|
@@ -2241,6 +2311,11 @@ function isMessagePermission(value) {
|
|
|
2241
2311
|
INCHES_PER_FOOT,
|
|
2242
2312
|
LENGTH_UNITS,
|
|
2243
2313
|
LIMITED_SHORTFALL_KG,
|
|
2314
|
+
LOGGED_WORKOUTS_PER_ROUTINE_MAX,
|
|
2315
|
+
LOGGED_WORKOUT_DEFAULT_START_MINUTE,
|
|
2316
|
+
LOGGED_WORKOUT_LOOKBACK_DAYS,
|
|
2317
|
+
LOGGED_WORKOUT_MAX_DURATION_SEC,
|
|
2318
|
+
LOGGED_WORKOUT_MIN_DURATION_SEC,
|
|
2244
2319
|
LP_BLOCK_STEPS,
|
|
2245
2320
|
LP_ESTIMATE_MAX_REPS_TO_FAILURE,
|
|
2246
2321
|
LP_ESTIMATE_MIN_SETS,
|
|
@@ -2397,8 +2472,10 @@ function isMessagePermission(value) {
|
|
|
2397
2472
|
USERNAME_PATTERN_SOURCE,
|
|
2398
2473
|
WEEK_STARTS,
|
|
2399
2474
|
WEIGHT_UNITS,
|
|
2475
|
+
WORKOUT_SESSION_ORIGINS,
|
|
2400
2476
|
WORKOUT_SESSION_STATUSES,
|
|
2401
2477
|
accountExportFileName,
|
|
2478
|
+
addCalendarDays,
|
|
2402
2479
|
advanceLinearPeriodization,
|
|
2403
2480
|
apiError,
|
|
2404
2481
|
apiErrorMessage,
|
|
@@ -2408,6 +2485,7 @@ function isMessagePermission(value) {
|
|
|
2408
2485
|
buildWarmUpRamp,
|
|
2409
2486
|
calculatePlateLoading,
|
|
2410
2487
|
canLinkToNext,
|
|
2488
|
+
canLogWorkoutOn,
|
|
2411
2489
|
cmToFeetInches,
|
|
2412
2490
|
cmToInches,
|
|
2413
2491
|
continueLinearPeriodization,
|
|
@@ -2441,6 +2519,8 @@ function isMessagePermission(value) {
|
|
|
2441
2519
|
latestBodyWeight,
|
|
2442
2520
|
leadWorkingWeight,
|
|
2443
2521
|
linearPeriodizationProblem,
|
|
2522
|
+
loggedWorkoutDateRange,
|
|
2523
|
+
lpAtStep,
|
|
2444
2524
|
lpEstimate,
|
|
2445
2525
|
lpLoadKg,
|
|
2446
2526
|
lpPrescription,
|
package/dist/index.d.cts
CHANGED
|
@@ -174,8 +174,20 @@ interface LinearPeriodizationState {
|
|
|
174
174
|
/** RECOVERY: the reference the next block starts from. */
|
|
175
175
|
nextReferenceMaxKg?: number | null;
|
|
176
176
|
}
|
|
177
|
-
/**
|
|
178
|
-
|
|
177
|
+
/**
|
|
178
|
+
* A new block, from step 1 unless the member is already part of the way
|
|
179
|
+
* through it (ROUT-20): the earlier steps are never treated as done.
|
|
180
|
+
*/
|
|
181
|
+
declare function startLinearPeriodization(referenceMaxKg: number, cycle?: number, step?: number): LinearPeriodizationState;
|
|
182
|
+
/**
|
|
183
|
+
* The same block at another step (ROUT-20): what a member sets when they
|
|
184
|
+
* already trained part of it outside the app, or got the week wrong. The
|
|
185
|
+
* reference max and block number stay; samples from that step on are
|
|
186
|
+
* dropped, so the estimate only ever reads sets done at steps 7-8 before
|
|
187
|
+
* the slot gets there again. A finished block or its recovery step becomes
|
|
188
|
+
* a running block at that step.
|
|
189
|
+
*/
|
|
190
|
+
declare function lpAtStep(state: LinearPeriodizationState, step: number): LinearPeriodizationState;
|
|
179
191
|
/** Why a state cannot be stored, or null. */
|
|
180
192
|
declare function linearPeriodizationProblem(state: LinearPeriodizationState): string | null;
|
|
181
193
|
/** What one set of an LP exercise prescribes this workout. */
|
|
@@ -981,6 +993,81 @@ declare const CLONE_ROUTINE_REFUSALS: {
|
|
|
981
993
|
};
|
|
982
994
|
type CloneRoutineRefusal = (typeof CLONE_ROUTINE_REFUSALS)[keyof typeof CLONE_ROUTINE_REFUSALS];
|
|
983
995
|
|
|
996
|
+
/** LIVE is a workout trained in the app; LOGGED_LATER one recorded after. */
|
|
997
|
+
declare const WORKOUT_SESSION_ORIGINS: readonly ["LIVE", "LOGGED_LATER"];
|
|
998
|
+
type WorkoutSessionOrigin = (typeof WORKOUT_SESSION_ORIGINS)[number];
|
|
999
|
+
/** How far back a past workout can be logged, in days before today. */
|
|
1000
|
+
declare const LOGGED_WORKOUT_LOOKBACK_DAYS = 84;
|
|
1001
|
+
/** Logged workouts one routine can hold. */
|
|
1002
|
+
declare const LOGGED_WORKOUTS_PER_ROUTINE_MAX = 48;
|
|
1003
|
+
/** The local start a logged workout takes when none is given: 12:00. */
|
|
1004
|
+
declare const LOGGED_WORKOUT_DEFAULT_START_MINUTE: number;
|
|
1005
|
+
/** The longest a logged workout can last, in seconds. */
|
|
1006
|
+
declare const LOGGED_WORKOUT_MAX_DURATION_SEC: number;
|
|
1007
|
+
/** The shortest, in seconds. */
|
|
1008
|
+
declare const LOGGED_WORKOUT_MIN_DURATION_SEC = 60;
|
|
1009
|
+
/** One set as it was lifted. Weight in kilograms. */
|
|
1010
|
+
interface LoggedSetInput {
|
|
1011
|
+
routineExerciseId: string;
|
|
1012
|
+
setNumber: number;
|
|
1013
|
+
reps: number;
|
|
1014
|
+
weight: number;
|
|
1015
|
+
rpe?: number | null;
|
|
1016
|
+
isCompleted: boolean;
|
|
1017
|
+
kind?: SetKind;
|
|
1018
|
+
}
|
|
1019
|
+
/** The week an 8-week slot was on in this workout (ROUT-17). */
|
|
1020
|
+
interface LoggedBlockStep {
|
|
1021
|
+
routineExerciseId: string;
|
|
1022
|
+
step: number;
|
|
1023
|
+
}
|
|
1024
|
+
/** Body of `POST /workouts/sessions/logged`. */
|
|
1025
|
+
interface LogPastWorkoutRequest {
|
|
1026
|
+
routineId: string;
|
|
1027
|
+
routineDayId: string;
|
|
1028
|
+
date: CalendarDate;
|
|
1029
|
+
/** Local minute of the day it started, 0-1439; 12:00 when omitted. */
|
|
1030
|
+
startMinute?: number;
|
|
1031
|
+
/** Its length; the day's estimate when omitted. */
|
|
1032
|
+
durationSec?: number;
|
|
1033
|
+
notes?: string | null;
|
|
1034
|
+
lpSteps?: LoggedBlockStep[];
|
|
1035
|
+
sets: LoggedSetInput[];
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* The answer to logging one (`POST /workouts/sessions/logged`) or removing
|
|
1039
|
+
* one (`DELETE /workouts/sessions/:id/logged`): the session (logging) and the
|
|
1040
|
+
* analytics status, BUILDING while the history it changed is replayed.
|
|
1041
|
+
*/
|
|
1042
|
+
interface LogPastWorkoutResponse {
|
|
1043
|
+
session: WorkoutSession;
|
|
1044
|
+
analytics: WorkoutAnalyticsStatus;
|
|
1045
|
+
}
|
|
1046
|
+
interface RemoveLoggedWorkoutResponse {
|
|
1047
|
+
analytics: WorkoutAnalyticsStatus;
|
|
1048
|
+
}
|
|
1049
|
+
/** The calendar date `days` after `date` (before, when negative). */
|
|
1050
|
+
declare function addCalendarDays(date: CalendarDate, days: number): CalendarDate;
|
|
1051
|
+
/**
|
|
1052
|
+
* The dates a past workout of a routine can be logged on: from the lookback
|
|
1053
|
+
* to the day before the routine was created, both in the member's calendar.
|
|
1054
|
+
* Null when there is none (a routine created at the edge of the lookback).
|
|
1055
|
+
*/
|
|
1056
|
+
declare function loggedWorkoutDateRange(input: {
|
|
1057
|
+
/** The member's local today. */
|
|
1058
|
+
today: CalendarDate;
|
|
1059
|
+
/** The member's local date the routine was created on. */
|
|
1060
|
+
createdOn: CalendarDate;
|
|
1061
|
+
}): {
|
|
1062
|
+
first: CalendarDate;
|
|
1063
|
+
last: CalendarDate;
|
|
1064
|
+
} | null;
|
|
1065
|
+
/** Whether a past workout can be logged on `date`. */
|
|
1066
|
+
declare function canLogWorkoutOn(date: CalendarDate, input: {
|
|
1067
|
+
today: CalendarDate;
|
|
1068
|
+
createdOn: CalendarDate;
|
|
1069
|
+
}): boolean;
|
|
1070
|
+
|
|
984
1071
|
interface SetLog {
|
|
985
1072
|
id: string;
|
|
986
1073
|
sessionId: string;
|
|
@@ -1033,6 +1120,11 @@ interface WorkoutSession {
|
|
|
1033
1120
|
* never advances progression.
|
|
1034
1121
|
*/
|
|
1035
1122
|
temporaryOverride?: SessionTemporaryOverride | null;
|
|
1123
|
+
/**
|
|
1124
|
+
* LIVE-23: LOGGED_LATER for a workout recorded after it happened; absent
|
|
1125
|
+
* or LIVE for one trained in the app.
|
|
1126
|
+
*/
|
|
1127
|
+
origin?: WorkoutSessionOrigin;
|
|
1036
1128
|
routine?: {
|
|
1037
1129
|
id: string;
|
|
1038
1130
|
name: string;
|
|
@@ -1351,6 +1443,8 @@ interface WorkoutSessionSummary {
|
|
|
1351
1443
|
totalSets?: number | null;
|
|
1352
1444
|
totalExercises?: number | null;
|
|
1353
1445
|
notes?: string | null;
|
|
1446
|
+
/** LIVE-23: LOGGED_LATER for a workout recorded after it happened. */
|
|
1447
|
+
origin?: WorkoutSessionOrigin;
|
|
1354
1448
|
routine: {
|
|
1355
1449
|
id: string;
|
|
1356
1450
|
name: string;
|
|
@@ -1657,7 +1751,8 @@ interface WorkoutSessionSnapshotV1 {
|
|
|
1657
1751
|
sourceRoutineId: string;
|
|
1658
1752
|
sourceRoutineDayId: string;
|
|
1659
1753
|
capturedAt: string;
|
|
1660
|
-
|
|
1754
|
+
/** LOGGED (LIVE-23): reconstructed when a past workout was logged later. */
|
|
1755
|
+
provenance: 'CAPTURED' | 'APPROXIMATED' | 'LOGGED';
|
|
1661
1756
|
notes: string | null;
|
|
1662
1757
|
routine: NonNullable<WorkoutSession['routine']>;
|
|
1663
1758
|
routineDay: NonNullable<WorkoutSession['routineDay']>;
|
|
@@ -3786,7 +3881,9 @@ interface SessionCorrection {
|
|
|
3786
3881
|
createdAt: IsoDateString;
|
|
3787
3882
|
changes: SessionSetCorrection[];
|
|
3788
3883
|
}
|
|
3789
|
-
type SessionCorrectionClosedReason = "NOT_COMPLETED" | "NOT_LATEST" | "LATER_SESSION" | "WINDOW_PASSED" | "LIMIT_REACHED"
|
|
3884
|
+
type SessionCorrectionClosedReason = "NOT_COMPLETED" | "NOT_LATEST" | "LATER_SESSION" | "WINDOW_PASSED" | "LIMIT_REACHED"
|
|
3885
|
+
/** LIVE-23: a workout logged later is removed and logged again instead. */
|
|
3886
|
+
| "LOGGED_LATER";
|
|
3790
3887
|
/**
|
|
3791
3888
|
* Whether the workout can be corrected now. `correctableUntil` is set only
|
|
3792
3889
|
* while it can; `closedReason` says why it cannot.
|
|
@@ -3844,6 +3941,8 @@ declare function sessionCorrectionWindow(input: {
|
|
|
3844
3941
|
isLatest: boolean;
|
|
3845
3942
|
laterSessionStarted: boolean;
|
|
3846
3943
|
correctionCount: number;
|
|
3944
|
+
/** LIVE-23: the workout was logged after it happened. */
|
|
3945
|
+
loggedLater?: boolean;
|
|
3847
3946
|
}, now?: Date): SessionCorrectionWindow;
|
|
3848
3947
|
/** Whether two sets of values differ in anything a correction records. */
|
|
3849
3948
|
declare function setLogValuesDiffer(a: SetLogValues, b: SetLogValues): boolean;
|
|
@@ -4884,11 +4983,20 @@ declare const API_ERROR_MESSAGES: {
|
|
|
4884
4983
|
readonly LINEAR_BLOCK_SWAP_ROUTINE: "An exercise on an 8-week block can be swapped for this workout only";
|
|
4885
4984
|
readonly LINEAR_BLOCK_NOT_LINEAR: "This exercise is not on an 8-week block";
|
|
4886
4985
|
readonly LINEAR_BLOCK_NOT_FINISHED: "This exercise's block has not finished, so there is nothing to choose yet";
|
|
4986
|
+
readonly LOGGED_WORKOUT_DATE: "A past workout can be logged only before the routine was created, within the last {days} days";
|
|
4987
|
+
readonly LOGGED_WORKOUT_OVERLAP: "Another workout overlaps that time";
|
|
4988
|
+
readonly LOGGED_WORKOUT_SAME_DAY: "This day of the routine is already logged on that date";
|
|
4989
|
+
readonly LOGGED_WORKOUT_LIMIT: "A routine can hold at most {max} logged workouts";
|
|
4990
|
+
readonly LOGGED_WORKOUT_NO_SETS: "Log at least one completed set";
|
|
4991
|
+
readonly LOGGED_WORKOUT_SET_NOT_IN_DAY: "Every set must belong to an exercise of this day";
|
|
4992
|
+
readonly LOGGED_WORKOUT_DAY_NOT_BASELINE: "Only the routine's own days can be logged, not a training block's or a deload's";
|
|
4993
|
+
readonly LOGGED_WORKOUT_NOT_LOGGED: "Only a workout logged later can be removed";
|
|
4887
4994
|
readonly CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected";
|
|
4888
4995
|
readonly CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected";
|
|
4889
4996
|
readonly CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since";
|
|
4890
4997
|
readonly CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed";
|
|
4891
4998
|
readonly CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed";
|
|
4999
|
+
readonly CORRECTION_LOGGED_LATER: "A workout logged later is changed by removing it and logging it again";
|
|
4892
5000
|
readonly CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg";
|
|
4893
5001
|
readonly CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}";
|
|
4894
5002
|
readonly CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}";
|
|
@@ -5118,4 +5226,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
|
|
|
5118
5226
|
/** The event in one `data:` payload, or null for anything else. */
|
|
5119
5227
|
declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
|
|
5120
5228
|
|
|
5121
|
-
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, 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, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LP_BLOCK_STEPS, LP_ESTIMATE_MAX_REPS_TO_FAILURE, LP_ESTIMATE_MIN_SETS, LP_ESTIMATE_STEPS, LP_NEXT_BLOCK_KINDS, LP_PHASES, LP_PROGRESS_CAP, LP_PROGRESS_THRESHOLD, LP_RECOVERY, LP_REFERENCE_MAX_KG, LP_REST_SECONDS, LP_STEPS, LP_WORKING_SETS, type LengthUnit, type LinearBlockChange, type LinearBlockFinishedNotification, type LinearPeriodizationState, type ListSessionsParams, type LpEstimate, type LpLoggedSet, type LpNextBlockKind, type LpPhase, type LpRecommendation, type LpSample, type LpSetPrescription, type LpSetTarget, type LpStep, type LpStoredSet, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MESSAGES_PAGE_SIZE, MESSAGES_PER_MINUTE_MAX, MESSAGE_ATTACHMENT_KINDS, MESSAGE_BODY_MAX, MESSAGE_PERMISSIONS, MESSAGE_PUSH_DELAY_SECONDS, MESSAGE_REPORT_CONTEXT_BEFORE, MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkConversationReadRequest, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberMessagingState, type MemberModerationState, type MemberRoutinesResponse, type MemberSearchPage, type MessageAttachment, type MessageAttachmentKind, type MessagePermission, type MessagePushPayload, type MessageRecordAttachment, type MessageRecordSummary, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, 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, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, 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 ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepTargetPeriod, type RepTargetSignal, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, type ReportedMessageContext, type ResolvedRoutinePlan, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type ReviewReportRequest, type ReviewReportResponse, type Routine, type RoutineClassification, type RoutineDay, type RoutineDayId, type RoutineDiscoveryQuery, type RoutineDiscoveryResponse, type RoutineDurationBand, type RoutineExercise, type RoutineFacets, type RoutineId, type RoutineLineage, type RoutinePlanSource, type RoutineScheduleMode, type RoutineSearchPage, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTemporaryOverride, type RoutineTemporaryOverridePlan, type RoutineTemporaryOverridesResponse, type RoutineTrainingBlock, type RoutineTrainingBlockPlan, type RoutineTrainingBlockRevision, type RoutineTrainingBlockRevisionsResponse, type RoutineTrainingBlockSource, type RoutineTrainingBlockSourceKind, type RoutineTrainingBlockState, type RoutineTrainingBlocksResponse, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, type RoutineVisibility, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SCHEDULE_SKIP_PAST_DAYS, SEARCH_PAGE_SIZE, SEARCH_PAGE_SIZE_MAX, SEARCH_PREVIEW_LIMIT, SEARCH_QUERY_MAX_LENGTH, SEARCH_QUERY_MIN_LENGTH, SEARCH_SERVER_CATEGORIES, SESSION_CORRECTIONS_MAX, SESSION_CORRECTION_LIMITS, SESSION_CORRECTION_WINDOW_HOURS, SESSION_EXERCISE_NOTE_MAX_LENGTH, SESSION_NOTE_MAX_LENGTH, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SET_KINDS, SET_KIND_LABELS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, SUPPORTED_LOCALES, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SearchPage, type SearchPageQuery, type SearchPreviewQuery, type SearchPreviewResponse, type SearchServerCategory, type SendMessageRequest, type SendMessageResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionCorrection, type SessionCorrectionClosedReason, type SessionCorrectionWindow, type SessionCorrectionsResponse, type SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeekStartsOn, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSearchPage, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, cmToFeetInches, cmToInches, continueLinearPeriodization, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
|
5229
|
+
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, 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, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LOGGED_WORKOUTS_PER_ROUTINE_MAX, LOGGED_WORKOUT_DEFAULT_START_MINUTE, LOGGED_WORKOUT_LOOKBACK_DAYS, LOGGED_WORKOUT_MAX_DURATION_SEC, LOGGED_WORKOUT_MIN_DURATION_SEC, LP_BLOCK_STEPS, LP_ESTIMATE_MAX_REPS_TO_FAILURE, LP_ESTIMATE_MIN_SETS, LP_ESTIMATE_STEPS, LP_NEXT_BLOCK_KINDS, LP_PHASES, LP_PROGRESS_CAP, LP_PROGRESS_THRESHOLD, LP_RECOVERY, LP_REFERENCE_MAX_KG, LP_REST_SECONDS, LP_STEPS, LP_WORKING_SETS, type LengthUnit, type LinearBlockChange, type LinearBlockFinishedNotification, type LinearPeriodizationState, type ListSessionsParams, type LogPastWorkoutRequest, type LogPastWorkoutResponse, type LoggedBlockStep, type LoggedSetInput, type LpEstimate, type LpLoggedSet, type LpNextBlockKind, type LpPhase, type LpRecommendation, type LpSample, type LpSetPrescription, type LpSetTarget, type LpStep, type LpStoredSet, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MESSAGES_PAGE_SIZE, MESSAGES_PER_MINUTE_MAX, MESSAGE_ATTACHMENT_KINDS, MESSAGE_BODY_MAX, MESSAGE_PERMISSIONS, MESSAGE_PUSH_DELAY_SECONDS, MESSAGE_REPORT_CONTEXT_BEFORE, MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkConversationReadRequest, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberMessagingState, type MemberModerationState, type MemberRoutinesResponse, type MemberSearchPage, type MessageAttachment, type MessageAttachmentKind, type MessagePermission, type MessagePushPayload, type MessageRecordAttachment, type MessageRecordSummary, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, 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, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, 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 ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RemoveLoggedWorkoutResponse, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepTargetPeriod, type RepTargetSignal, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, type ReportedMessageContext, type ResolvedRoutinePlan, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type ReviewReportRequest, type ReviewReportResponse, type Routine, type RoutineClassification, type RoutineDay, type RoutineDayId, type RoutineDiscoveryQuery, type RoutineDiscoveryResponse, type RoutineDurationBand, type RoutineExercise, type RoutineFacets, type RoutineId, type RoutineLineage, type RoutinePlanSource, type RoutineScheduleMode, type RoutineSearchPage, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTemporaryOverride, type RoutineTemporaryOverridePlan, type RoutineTemporaryOverridesResponse, type RoutineTrainingBlock, type RoutineTrainingBlockPlan, type RoutineTrainingBlockRevision, type RoutineTrainingBlockRevisionsResponse, type RoutineTrainingBlockSource, type RoutineTrainingBlockSourceKind, type RoutineTrainingBlockState, type RoutineTrainingBlocksResponse, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, type RoutineVisibility, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SCHEDULE_SKIP_PAST_DAYS, SEARCH_PAGE_SIZE, SEARCH_PAGE_SIZE_MAX, SEARCH_PREVIEW_LIMIT, SEARCH_QUERY_MAX_LENGTH, SEARCH_QUERY_MIN_LENGTH, SEARCH_SERVER_CATEGORIES, SESSION_CORRECTIONS_MAX, SESSION_CORRECTION_LIMITS, SESSION_CORRECTION_WINDOW_HOURS, SESSION_EXERCISE_NOTE_MAX_LENGTH, SESSION_NOTE_MAX_LENGTH, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SET_KINDS, SET_KIND_LABELS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, SUPPORTED_LOCALES, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SearchPage, type SearchPageQuery, type SearchPreviewQuery, type SearchPreviewResponse, type SearchServerCategory, type SendMessageRequest, type SendMessageResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionCorrection, type SessionCorrectionClosedReason, type SessionCorrectionWindow, type SessionCorrectionsResponse, type SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_ORIGINS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeekStartsOn, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSearchPage, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionOrigin, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, addCalendarDays, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, canLogWorkoutOn, cmToFeetInches, cmToInches, continueLinearPeriodization, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
package/dist/index.d.ts
CHANGED
|
@@ -174,8 +174,20 @@ interface LinearPeriodizationState {
|
|
|
174
174
|
/** RECOVERY: the reference the next block starts from. */
|
|
175
175
|
nextReferenceMaxKg?: number | null;
|
|
176
176
|
}
|
|
177
|
-
/**
|
|
178
|
-
|
|
177
|
+
/**
|
|
178
|
+
* A new block, from step 1 unless the member is already part of the way
|
|
179
|
+
* through it (ROUT-20): the earlier steps are never treated as done.
|
|
180
|
+
*/
|
|
181
|
+
declare function startLinearPeriodization(referenceMaxKg: number, cycle?: number, step?: number): LinearPeriodizationState;
|
|
182
|
+
/**
|
|
183
|
+
* The same block at another step (ROUT-20): what a member sets when they
|
|
184
|
+
* already trained part of it outside the app, or got the week wrong. The
|
|
185
|
+
* reference max and block number stay; samples from that step on are
|
|
186
|
+
* dropped, so the estimate only ever reads sets done at steps 7-8 before
|
|
187
|
+
* the slot gets there again. A finished block or its recovery step becomes
|
|
188
|
+
* a running block at that step.
|
|
189
|
+
*/
|
|
190
|
+
declare function lpAtStep(state: LinearPeriodizationState, step: number): LinearPeriodizationState;
|
|
179
191
|
/** Why a state cannot be stored, or null. */
|
|
180
192
|
declare function linearPeriodizationProblem(state: LinearPeriodizationState): string | null;
|
|
181
193
|
/** What one set of an LP exercise prescribes this workout. */
|
|
@@ -981,6 +993,81 @@ declare const CLONE_ROUTINE_REFUSALS: {
|
|
|
981
993
|
};
|
|
982
994
|
type CloneRoutineRefusal = (typeof CLONE_ROUTINE_REFUSALS)[keyof typeof CLONE_ROUTINE_REFUSALS];
|
|
983
995
|
|
|
996
|
+
/** LIVE is a workout trained in the app; LOGGED_LATER one recorded after. */
|
|
997
|
+
declare const WORKOUT_SESSION_ORIGINS: readonly ["LIVE", "LOGGED_LATER"];
|
|
998
|
+
type WorkoutSessionOrigin = (typeof WORKOUT_SESSION_ORIGINS)[number];
|
|
999
|
+
/** How far back a past workout can be logged, in days before today. */
|
|
1000
|
+
declare const LOGGED_WORKOUT_LOOKBACK_DAYS = 84;
|
|
1001
|
+
/** Logged workouts one routine can hold. */
|
|
1002
|
+
declare const LOGGED_WORKOUTS_PER_ROUTINE_MAX = 48;
|
|
1003
|
+
/** The local start a logged workout takes when none is given: 12:00. */
|
|
1004
|
+
declare const LOGGED_WORKOUT_DEFAULT_START_MINUTE: number;
|
|
1005
|
+
/** The longest a logged workout can last, in seconds. */
|
|
1006
|
+
declare const LOGGED_WORKOUT_MAX_DURATION_SEC: number;
|
|
1007
|
+
/** The shortest, in seconds. */
|
|
1008
|
+
declare const LOGGED_WORKOUT_MIN_DURATION_SEC = 60;
|
|
1009
|
+
/** One set as it was lifted. Weight in kilograms. */
|
|
1010
|
+
interface LoggedSetInput {
|
|
1011
|
+
routineExerciseId: string;
|
|
1012
|
+
setNumber: number;
|
|
1013
|
+
reps: number;
|
|
1014
|
+
weight: number;
|
|
1015
|
+
rpe?: number | null;
|
|
1016
|
+
isCompleted: boolean;
|
|
1017
|
+
kind?: SetKind;
|
|
1018
|
+
}
|
|
1019
|
+
/** The week an 8-week slot was on in this workout (ROUT-17). */
|
|
1020
|
+
interface LoggedBlockStep {
|
|
1021
|
+
routineExerciseId: string;
|
|
1022
|
+
step: number;
|
|
1023
|
+
}
|
|
1024
|
+
/** Body of `POST /workouts/sessions/logged`. */
|
|
1025
|
+
interface LogPastWorkoutRequest {
|
|
1026
|
+
routineId: string;
|
|
1027
|
+
routineDayId: string;
|
|
1028
|
+
date: CalendarDate;
|
|
1029
|
+
/** Local minute of the day it started, 0-1439; 12:00 when omitted. */
|
|
1030
|
+
startMinute?: number;
|
|
1031
|
+
/** Its length; the day's estimate when omitted. */
|
|
1032
|
+
durationSec?: number;
|
|
1033
|
+
notes?: string | null;
|
|
1034
|
+
lpSteps?: LoggedBlockStep[];
|
|
1035
|
+
sets: LoggedSetInput[];
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* The answer to logging one (`POST /workouts/sessions/logged`) or removing
|
|
1039
|
+
* one (`DELETE /workouts/sessions/:id/logged`): the session (logging) and the
|
|
1040
|
+
* analytics status, BUILDING while the history it changed is replayed.
|
|
1041
|
+
*/
|
|
1042
|
+
interface LogPastWorkoutResponse {
|
|
1043
|
+
session: WorkoutSession;
|
|
1044
|
+
analytics: WorkoutAnalyticsStatus;
|
|
1045
|
+
}
|
|
1046
|
+
interface RemoveLoggedWorkoutResponse {
|
|
1047
|
+
analytics: WorkoutAnalyticsStatus;
|
|
1048
|
+
}
|
|
1049
|
+
/** The calendar date `days` after `date` (before, when negative). */
|
|
1050
|
+
declare function addCalendarDays(date: CalendarDate, days: number): CalendarDate;
|
|
1051
|
+
/**
|
|
1052
|
+
* The dates a past workout of a routine can be logged on: from the lookback
|
|
1053
|
+
* to the day before the routine was created, both in the member's calendar.
|
|
1054
|
+
* Null when there is none (a routine created at the edge of the lookback).
|
|
1055
|
+
*/
|
|
1056
|
+
declare function loggedWorkoutDateRange(input: {
|
|
1057
|
+
/** The member's local today. */
|
|
1058
|
+
today: CalendarDate;
|
|
1059
|
+
/** The member's local date the routine was created on. */
|
|
1060
|
+
createdOn: CalendarDate;
|
|
1061
|
+
}): {
|
|
1062
|
+
first: CalendarDate;
|
|
1063
|
+
last: CalendarDate;
|
|
1064
|
+
} | null;
|
|
1065
|
+
/** Whether a past workout can be logged on `date`. */
|
|
1066
|
+
declare function canLogWorkoutOn(date: CalendarDate, input: {
|
|
1067
|
+
today: CalendarDate;
|
|
1068
|
+
createdOn: CalendarDate;
|
|
1069
|
+
}): boolean;
|
|
1070
|
+
|
|
984
1071
|
interface SetLog {
|
|
985
1072
|
id: string;
|
|
986
1073
|
sessionId: string;
|
|
@@ -1033,6 +1120,11 @@ interface WorkoutSession {
|
|
|
1033
1120
|
* never advances progression.
|
|
1034
1121
|
*/
|
|
1035
1122
|
temporaryOverride?: SessionTemporaryOverride | null;
|
|
1123
|
+
/**
|
|
1124
|
+
* LIVE-23: LOGGED_LATER for a workout recorded after it happened; absent
|
|
1125
|
+
* or LIVE for one trained in the app.
|
|
1126
|
+
*/
|
|
1127
|
+
origin?: WorkoutSessionOrigin;
|
|
1036
1128
|
routine?: {
|
|
1037
1129
|
id: string;
|
|
1038
1130
|
name: string;
|
|
@@ -1351,6 +1443,8 @@ interface WorkoutSessionSummary {
|
|
|
1351
1443
|
totalSets?: number | null;
|
|
1352
1444
|
totalExercises?: number | null;
|
|
1353
1445
|
notes?: string | null;
|
|
1446
|
+
/** LIVE-23: LOGGED_LATER for a workout recorded after it happened. */
|
|
1447
|
+
origin?: WorkoutSessionOrigin;
|
|
1354
1448
|
routine: {
|
|
1355
1449
|
id: string;
|
|
1356
1450
|
name: string;
|
|
@@ -1657,7 +1751,8 @@ interface WorkoutSessionSnapshotV1 {
|
|
|
1657
1751
|
sourceRoutineId: string;
|
|
1658
1752
|
sourceRoutineDayId: string;
|
|
1659
1753
|
capturedAt: string;
|
|
1660
|
-
|
|
1754
|
+
/** LOGGED (LIVE-23): reconstructed when a past workout was logged later. */
|
|
1755
|
+
provenance: 'CAPTURED' | 'APPROXIMATED' | 'LOGGED';
|
|
1661
1756
|
notes: string | null;
|
|
1662
1757
|
routine: NonNullable<WorkoutSession['routine']>;
|
|
1663
1758
|
routineDay: NonNullable<WorkoutSession['routineDay']>;
|
|
@@ -3786,7 +3881,9 @@ interface SessionCorrection {
|
|
|
3786
3881
|
createdAt: IsoDateString;
|
|
3787
3882
|
changes: SessionSetCorrection[];
|
|
3788
3883
|
}
|
|
3789
|
-
type SessionCorrectionClosedReason = "NOT_COMPLETED" | "NOT_LATEST" | "LATER_SESSION" | "WINDOW_PASSED" | "LIMIT_REACHED"
|
|
3884
|
+
type SessionCorrectionClosedReason = "NOT_COMPLETED" | "NOT_LATEST" | "LATER_SESSION" | "WINDOW_PASSED" | "LIMIT_REACHED"
|
|
3885
|
+
/** LIVE-23: a workout logged later is removed and logged again instead. */
|
|
3886
|
+
| "LOGGED_LATER";
|
|
3790
3887
|
/**
|
|
3791
3888
|
* Whether the workout can be corrected now. `correctableUntil` is set only
|
|
3792
3889
|
* while it can; `closedReason` says why it cannot.
|
|
@@ -3844,6 +3941,8 @@ declare function sessionCorrectionWindow(input: {
|
|
|
3844
3941
|
isLatest: boolean;
|
|
3845
3942
|
laterSessionStarted: boolean;
|
|
3846
3943
|
correctionCount: number;
|
|
3944
|
+
/** LIVE-23: the workout was logged after it happened. */
|
|
3945
|
+
loggedLater?: boolean;
|
|
3847
3946
|
}, now?: Date): SessionCorrectionWindow;
|
|
3848
3947
|
/** Whether two sets of values differ in anything a correction records. */
|
|
3849
3948
|
declare function setLogValuesDiffer(a: SetLogValues, b: SetLogValues): boolean;
|
|
@@ -4884,11 +4983,20 @@ declare const API_ERROR_MESSAGES: {
|
|
|
4884
4983
|
readonly LINEAR_BLOCK_SWAP_ROUTINE: "An exercise on an 8-week block can be swapped for this workout only";
|
|
4885
4984
|
readonly LINEAR_BLOCK_NOT_LINEAR: "This exercise is not on an 8-week block";
|
|
4886
4985
|
readonly LINEAR_BLOCK_NOT_FINISHED: "This exercise's block has not finished, so there is nothing to choose yet";
|
|
4986
|
+
readonly LOGGED_WORKOUT_DATE: "A past workout can be logged only before the routine was created, within the last {days} days";
|
|
4987
|
+
readonly LOGGED_WORKOUT_OVERLAP: "Another workout overlaps that time";
|
|
4988
|
+
readonly LOGGED_WORKOUT_SAME_DAY: "This day of the routine is already logged on that date";
|
|
4989
|
+
readonly LOGGED_WORKOUT_LIMIT: "A routine can hold at most {max} logged workouts";
|
|
4990
|
+
readonly LOGGED_WORKOUT_NO_SETS: "Log at least one completed set";
|
|
4991
|
+
readonly LOGGED_WORKOUT_SET_NOT_IN_DAY: "Every set must belong to an exercise of this day";
|
|
4992
|
+
readonly LOGGED_WORKOUT_DAY_NOT_BASELINE: "Only the routine's own days can be logged, not a training block's or a deload's";
|
|
4993
|
+
readonly LOGGED_WORKOUT_NOT_LOGGED: "Only a workout logged later can be removed";
|
|
4887
4994
|
readonly CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected";
|
|
4888
4995
|
readonly CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected";
|
|
4889
4996
|
readonly CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since";
|
|
4890
4997
|
readonly CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed";
|
|
4891
4998
|
readonly CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed";
|
|
4999
|
+
readonly CORRECTION_LOGGED_LATER: "A workout logged later is changed by removing it and logging it again";
|
|
4892
5000
|
readonly CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg";
|
|
4893
5001
|
readonly CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}";
|
|
4894
5002
|
readonly CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}";
|
|
@@ -5118,4 +5226,4 @@ declare function isRealtimeTopic(value: unknown): value is RealtimeTopic;
|
|
|
5118
5226
|
/** The event in one `data:` payload, or null for anything else. */
|
|
5119
5227
|
declare function parseRealtimeEvent(data: string): RealtimeEvent | null;
|
|
5120
5228
|
|
|
5121
|
-
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, 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, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LP_BLOCK_STEPS, LP_ESTIMATE_MAX_REPS_TO_FAILURE, LP_ESTIMATE_MIN_SETS, LP_ESTIMATE_STEPS, LP_NEXT_BLOCK_KINDS, LP_PHASES, LP_PROGRESS_CAP, LP_PROGRESS_THRESHOLD, LP_RECOVERY, LP_REFERENCE_MAX_KG, LP_REST_SECONDS, LP_STEPS, LP_WORKING_SETS, type LengthUnit, type LinearBlockChange, type LinearBlockFinishedNotification, type LinearPeriodizationState, type ListSessionsParams, type LpEstimate, type LpLoggedSet, type LpNextBlockKind, type LpPhase, type LpRecommendation, type LpSample, type LpSetPrescription, type LpSetTarget, type LpStep, type LpStoredSet, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MESSAGES_PAGE_SIZE, MESSAGES_PER_MINUTE_MAX, MESSAGE_ATTACHMENT_KINDS, MESSAGE_BODY_MAX, MESSAGE_PERMISSIONS, MESSAGE_PUSH_DELAY_SECONDS, MESSAGE_REPORT_CONTEXT_BEFORE, MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkConversationReadRequest, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberMessagingState, type MemberModerationState, type MemberRoutinesResponse, type MemberSearchPage, type MessageAttachment, type MessageAttachmentKind, type MessagePermission, type MessagePushPayload, type MessageRecordAttachment, type MessageRecordSummary, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, 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, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, 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 ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepTargetPeriod, type RepTargetSignal, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, type ReportedMessageContext, type ResolvedRoutinePlan, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type ReviewReportRequest, type ReviewReportResponse, type Routine, type RoutineClassification, type RoutineDay, type RoutineDayId, type RoutineDiscoveryQuery, type RoutineDiscoveryResponse, type RoutineDurationBand, type RoutineExercise, type RoutineFacets, type RoutineId, type RoutineLineage, type RoutinePlanSource, type RoutineScheduleMode, type RoutineSearchPage, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTemporaryOverride, type RoutineTemporaryOverridePlan, type RoutineTemporaryOverridesResponse, type RoutineTrainingBlock, type RoutineTrainingBlockPlan, type RoutineTrainingBlockRevision, type RoutineTrainingBlockRevisionsResponse, type RoutineTrainingBlockSource, type RoutineTrainingBlockSourceKind, type RoutineTrainingBlockState, type RoutineTrainingBlocksResponse, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, type RoutineVisibility, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SCHEDULE_SKIP_PAST_DAYS, SEARCH_PAGE_SIZE, SEARCH_PAGE_SIZE_MAX, SEARCH_PREVIEW_LIMIT, SEARCH_QUERY_MAX_LENGTH, SEARCH_QUERY_MIN_LENGTH, SEARCH_SERVER_CATEGORIES, SESSION_CORRECTIONS_MAX, SESSION_CORRECTION_LIMITS, SESSION_CORRECTION_WINDOW_HOURS, SESSION_EXERCISE_NOTE_MAX_LENGTH, SESSION_NOTE_MAX_LENGTH, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SET_KINDS, SET_KIND_LABELS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, SUPPORTED_LOCALES, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SearchPage, type SearchPageQuery, type SearchPreviewQuery, type SearchPreviewResponse, type SearchServerCategory, type SendMessageRequest, type SendMessageResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionCorrection, type SessionCorrectionClosedReason, type SessionCorrectionWindow, type SessionCorrectionsResponse, type SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeekStartsOn, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSearchPage, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, cmToFeetInches, cmToInches, continueLinearPeriodization, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
|
5229
|
+
export { ACCOUNT_EXPORT_FORMAT, ACCOUNT_EXPORT_VERSION, ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, ACTIVITY_CAPS, ACTIVITY_COMMENTS_PAGE_SIZE, ACTIVITY_COMMENTS_PER_DAY_MAX, ACTIVITY_COMMENT_MAX_LENGTH, ACTIVITY_DEFAULT_AUDIENCE, ACTIVITY_ENTRY_ID_MAX_LENGTH, ACTIVITY_FEED_FOLLOWED_MAX, ACTIVITY_PAGE_DEFAULT_LIMIT, ACTIVITY_PAGE_MAX_LIMIT, ACTIVITY_PREVIEW_AUDIENCES, ACTIVITY_REACTIONS, ACTIVITY_TYPES, ACTIVITY_TYPE_SECTIONS, API_ERROR_CODES, API_ERROR_MESSAGES, type AccountExportBodyMeasurement, type AccountExportGoal, type AccountExportMember, type AccountExportPersonalRecord, type AccountExportRoutine, type AccountExportScheduleOverride, type AccountExportTrainingEvent, type AccountExportTrainingLocation, type AccountExportV1, type AchievementActivity, type AchievementCategory, type AchievementCategoryProgress, type AchievementDefinition, type AchievementNotification, type AchievementUnlockedEventPayload, type AchievementsResponse, type ActivityAudience, type ActivityCap, type ActivityComment, type ActivityCommentNotification, type ActivityCommentSummary, type ActivityCommentsQuery, type ActivityCommentsResponse, type ActivityEntry, type ActivityEntrySharing, type ActivityFeedResponse, type ActivityLink, type ActivityPage, type ActivityPageQuery, type ActivityPreviewAudience, type ActivityPreviewQuery, type ActivityReaction, type ActivityReactionSummary, type ActivitySection, type ActivitySharingSettings, type ActivityType, type ApiErrorBody, type ApiErrorCode, type ApiErrorParams, type AppLocale, type AppNotification, BAR_CHOICES_KG, BAR_WARM_UP_STEPS, BLOCKED_MEMBERS_MAX, BODY_MEASUREMENT_FIELDS, BODY_MEASUREMENT_FIELD_KEYS, BODY_PROGRESS_RANGES, type BlockComparisonLift, type BlockComparisonLiftBest, type BlockComparisonPeriod, type BlockComparisonPeriodKind, type BlockedMember, type BlockedMembersResponse, type BodyFieldSummary, type BodyMeasurement, type BodyMeasurementField, type BodyMeasurementProblem, type BodyMeasurementValues, type BodyProgressRange, type BodyProgressResponse, type Brand, CLONE_ROUTINE_REFUSALS, CM_PER_INCH, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CONVERSATIONS_PAGE_SIZE, CONVERSATION_BOXES, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CapturedMessage, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, type ContinueLinearBlockRequest, type ConversationBox, type ConversationMember, type ConversationMessage, type ConversationMessagesResponse, type ConversationRequest, type ConversationSummary, type ConversationsResponse, type CorrectSessionRequest, type CorrectSessionResponse, type CorrectSessionSetRequest, type CreateActivityCommentRequest, type CreateActivityCommentResponse, type CreateDeloadRequest, type CreateReportRequest, type CreateReportResponse, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateRoutineVersionRequest, type CreateSessionShareRequest, type CustomExerciseInput, type CustomExerciseProblem, type CustomExerciseRefusal, DASHBOARD_SECTION_IDS, DEFAULT_DASHBOARD_LAYOUT, DEFAULT_LOCALE, DEFAULT_MESSAGE_PERMISSION, DEFAULT_WEEK_STARTS_ON, DELOAD_DEFAULT_DAYS, DELOAD_DEFAULT_LOAD_REDUCTION, DELOAD_DEFAULT_SET_MODE, DELOAD_LOAD_REDUCTIONS, DELOAD_MAX_DAYS, DELOAD_NOT_LIGHTER, DELOAD_SET_MODES, DELOAD_SUGGESTION_COOLDOWN_DAYS, DELOAD_SUGGESTION_EARLIER_DAYS, DELOAD_SUGGESTION_MIN_MARKED_TODAY, DELOAD_SUGGESTION_ROUTINE_DAYS, DELOAD_SUGGESTION_SIGNALS, type DashboardLayout, type DashboardLayoutEntry, type DashboardSectionId, type DeclineSignal, type DecliningLift, type DecliningLiftSession, type DeleteAccountRequest, type DeleteAccountResponse, type DeleteActivityCommentResponse, type DeletePushSubscriptionRequest, type DeloadLoadReduction, type DeloadOptions, type DeloadSetMode, type DeloadSuggestion, type DeloadSuggestionEvidence, type DeloadSuggestionResponse, type DeloadSuggestionSignal, type DeloadSuggestionUnavailableReason, type DiscoverableRoutine, type DismissGoalSuggestionRequest, EXERCISE_EQUIPMENT, EXERCISE_GROUP_KIND_LABELS, EXERCISE_GROUP_MAX, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type EffortPeriod, type EffortSignal, type Exercise, type ExerciseEquipment, type ExerciseGroup, type ExerciseGroupKind, type ExerciseGroupPosition, 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, FEATURED_PROFILE_ITEMS_MAX, FEATURED_PROFILE_ITEM_KINDS, FEATURED_PROFILE_REFERENCE_MAX_LENGTH, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FeaturedProfileAchievementItem, type FeaturedProfileItem, type FeaturedProfileItemKind, type FeaturedProfileRankItem, type FeaturedProfileRecordItem, type FeaturedProfileRoutineItem, type FeaturedProfileSelection, type FeaturedProfileSelectionInput, type FeaturedProfileSelectionsResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, GOAL_SUGGESTIONS_MAX, GOAL_SUGGESTION_DISMISSALS_MAX, GOAL_SUGGESTION_LIFT_MIN_SESSIONS, GOAL_SUGGESTION_LIFT_WINDOW_DAYS, GOAL_SUGGESTION_MIN_ACTIVE_WEEKS, GOAL_SUGGESTION_STRENGTH_STEP, GOAL_SUGGESTION_TYPES, GOAL_SUGGESTION_VOLUME_WEEKS, type GoalSuggestion, type GoalSuggestionBasis, type GoalSuggestionType, type GoalSuggestionsResponse, INCHES_PER_FOOT, type IsoDateString, LENGTH_UNITS, LIMITED_SHORTFALL_KG, LOGGED_WORKOUTS_PER_ROUTINE_MAX, LOGGED_WORKOUT_DEFAULT_START_MINUTE, LOGGED_WORKOUT_LOOKBACK_DAYS, LOGGED_WORKOUT_MAX_DURATION_SEC, LOGGED_WORKOUT_MIN_DURATION_SEC, LP_BLOCK_STEPS, LP_ESTIMATE_MAX_REPS_TO_FAILURE, LP_ESTIMATE_MIN_SETS, LP_ESTIMATE_STEPS, LP_NEXT_BLOCK_KINDS, LP_PHASES, LP_PROGRESS_CAP, LP_PROGRESS_THRESHOLD, LP_RECOVERY, LP_REFERENCE_MAX_KG, LP_REST_SECONDS, LP_STEPS, LP_WORKING_SETS, type LengthUnit, type LinearBlockChange, type LinearBlockFinishedNotification, type LinearPeriodizationState, type ListSessionsParams, type LogPastWorkoutRequest, type LogPastWorkoutResponse, type LoggedBlockStep, type LoggedSetInput, type LpEstimate, type LpLoggedSet, type LpNextBlockKind, type LpPhase, type LpRecommendation, type LpSample, type LpSetPrescription, type LpSetTarget, type LpStep, type LpStoredSet, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MESSAGES_PAGE_SIZE, MESSAGES_PER_MINUTE_MAX, MESSAGE_ATTACHMENT_KINDS, MESSAGE_BODY_MAX, MESSAGE_PERMISSIONS, MESSAGE_PUSH_DELAY_SECONDS, MESSAGE_REPORT_CONTEXT_BEFORE, MESSAGE_REQUEST_DECLINE_COOLDOWN_DAYS, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkConversationReadRequest, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberMessagingState, type MemberModerationState, type MemberRoutinesResponse, type MemberSearchPage, type MessageAttachment, type MessageAttachmentKind, type MessagePermission, type MessagePushPayload, type MessageRecordAttachment, type MessageRecordSummary, type MessageRoutineAttachment, type MessageWorkoutAttachment, type MessageWorkoutSummary, type ModerationActionKind, type ModerationActionRecord, type ModerationHistoryQuery, type ModerationHistoryResponse, type ModerationQueueQuery, type ModerationQueueResponse, type ModerationReport, type ModeratorState, type MoveOccurrenceRequest, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, NEW_CONVERSATIONS_PER_DAY_MAX, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_PAGE_SIZE, NOTIFICATIONS_PAGE_SIZE_MAX, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsQuery, type NotificationsResponse, ONBOARDING_STEPS_MAX, ONBOARDING_STEP_ID_PATTERN_SOURCE, ONBOARDING_VERSION_MAX, OTHER_WARM_UP_STEPS, type OnboardingState, type OwnActivityEntry, type OwnActivityResponse, PLATEAU_MIN_DAYS_SINCE_BEST, PLATEAU_MIN_SESSIONS, PLATEAU_MIN_SESSIONS_MAX, PLATEAU_MIN_SESSIONS_MIN, PLATEAU_RECENT_DAYS, PLATEAU_WINDOW_DAYS, PLATE_SETS, 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, PUSH_PAYLOAD_KINDS, PUSH_SUBSCRIPTIONS_MAX, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordActivity, type PersonalRecordEntry, type PersonalRecordKind, type PlannedReminder, type PlateLoadingItem, type PlateLoadingResult, type PlatePairInventory, type PlateSetChoice, 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 ProgressionActivity, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicProfileAchievements, type PublicTrainingSummary, type PublicUserProfile, type PushPayload, type PushPayloadKind, type PushSubscriptionKeys, type PushSubscriptionSummary, type PushSubscriptionsResponse, type QuietHours, REALTIME_HEARTBEAT_MS, REALTIME_MAX_STREAMS_PER_MEMBER, REALTIME_MAX_STREAM_MS, REALTIME_STREAM_PATH, REALTIME_TOPICS, REALTIME_UNAVAILABLE_RETRY_SECONDS, RECENT_SEARCHES_MAX, RECENT_SEARCH_KINDS, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REPORTS_PER_DAY_MAX, REPORT_DETAILS_MAX_LENGTH, REPORT_REASONS, REPORT_STATUSES, REPORT_SUBJECT_KINDS, REP_TYPES, RESERVED_USERNAMES, REST_ALERT_MAX_LEAD_SECONDS, REST_ALERT_MIN_LEAD_SECONDS, REST_ALERT_REFUSALS, ROUTINE_DAYS_MAX, ROUTINE_DAY_NAME_MAX, ROUTINE_DISCOVERY_DEFAULT_LIMIT, ROUTINE_DISCOVERY_MAX_LIMIT, ROUTINE_DISCOVERY_SCAN_LIMIT, ROUTINE_DURATION_BANDS, ROUTINE_DURATION_BAND_MAX_MINUTES, ROUTINE_SCHEDULE_MODES, ROUTINE_SHARE_MAX_ACTIVE_LINKS, ROUTINE_TRAINING_BLOCKS_MAX, ROUTINE_TRAINING_BLOCK_NAME_MAX, ROUTINE_TRAINING_BLOCK_REVISIONS_MAX, ROUTINE_TRAINING_BLOCK_SOURCE_KINDS, ROUTINE_TRAINING_BLOCK_STATES, ROUTINE_VERSIONS_MAX, ROUTINE_VERSION_KINDS, ROUTINE_VERSION_NAME_MAX, ROUTINE_VISIBILITY_VALUES, type RealtimeEvent, type RealtimeTopic, type RecentActivityEntry, type RecentExercise, type RecentRoutine, type RecentSearchItem, type RecentSearchKind, type RecentSearchesResponse, type RecordRecentSearchRequest, type RegisterPushSubscriptionRequest, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RemoveLoggedWorkoutResponse, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepTargetPeriod, type RepTargetSignal, type RepType, type ReplaceFeaturedProfileItemsRequest, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type ReportReason, type ReportStatus, type ReportSubjectKind, type ReportSubjectPreview, type ReportedMessageContext, type ResolvedRoutinePlan, type RestAlertPushPayload, type RestAlertRefusal, type RestoreRoutineVersionResponse, type ReviewReportRequest, type ReviewReportResponse, type Routine, type RoutineClassification, type RoutineDay, type RoutineDayId, type RoutineDiscoveryQuery, type RoutineDiscoveryResponse, type RoutineDurationBand, type RoutineExercise, type RoutineFacets, type RoutineId, type RoutineLineage, type RoutinePlanSource, type RoutineScheduleMode, type RoutineSearchPage, type RoutineSet, type RoutineShare, type RoutineShareListResponse, type RoutineSharedActivity, type RoutineTemporaryOverride, type RoutineTemporaryOverridePlan, type RoutineTemporaryOverridesResponse, type RoutineTrainingBlock, type RoutineTrainingBlockPlan, type RoutineTrainingBlockRevision, type RoutineTrainingBlockRevisionsResponse, type RoutineTrainingBlockSource, type RoutineTrainingBlockSourceKind, type RoutineTrainingBlockState, type RoutineTrainingBlocksResponse, type RoutineVersion, type RoutineVersionDay, type RoutineVersionExercise, type RoutineVersionKind, type RoutineVersionSetup, type RoutineVersionsResponse, type RoutineVisibility, SCHEDULE_MOVE_MAX_DAYS, SCHEDULE_OVERRIDES_MAX_RANGE_DAYS, SCHEDULE_OVERRIDE_KINDS, SCHEDULE_SKIP_PAST_DAYS, SEARCH_PAGE_SIZE, SEARCH_PAGE_SIZE_MAX, SEARCH_PREVIEW_LIMIT, SEARCH_QUERY_MAX_LENGTH, SEARCH_QUERY_MIN_LENGTH, SEARCH_SERVER_CATEGORIES, SESSION_CORRECTIONS_MAX, SESSION_CORRECTION_LIMITS, SESSION_CORRECTION_WINDOW_HOURS, SESSION_EXERCISE_NOTE_MAX_LENGTH, SESSION_NOTE_MAX_LENGTH, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SET_KINDS, SET_KIND_LABELS, SEXES, SHARED_ROUTINE_SOURCES, STARRED_EXERCISES_MAX, STREAK_MAX_GAP_DAYS, SUPPORTED_LOCALES, type ScheduleOverride, type ScheduleOverrideKind, type ScheduleOverridesQuery, type ScheduleOverridesResponse, type ScheduleRestAlertRequest, type ScheduleRestAlertResponse, type SearchPage, type SearchPageQuery, type SearchPreviewQuery, type SearchPreviewResponse, type SearchServerCategory, type SendMessageRequest, type SendMessageResponse, type SendTrainingPartnerEncouragementRequest, type SendTrainingPartnerEncouragementResponse, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionCompletedActivity, type SessionCorrection, type SessionCorrectionClosedReason, type SessionCorrectionWindow, type SessionCorrectionsResponse, type SessionExerciseNote, type SessionExerciseSubstitution, type SessionProgressNotification, type SessionRecapExerciseNote, type SessionRecapRecord, type SessionSetCorrection, type SessionShare, type SessionShareField, type SessionShareListResponse, type SessionTemporaryOverride, type SessionTrainingBlock, type SetAccountTimeZoneRequest, type SetActivityEntryAudienceRequest, type SetActivityEntryAudienceResponse, type SetActivityReactionRequest, type SetActivityReactionResponse, type SetKind, type SetLog, type SetLogValues, type Sex, type SharedRoutine, type SharedRoutineOwner, type SharedRoutineSearchResult, type SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SharedWorkout, type SharedWorkoutExercise, type SharedWorkoutSet, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, type StartConversationRequest, type StartWorkoutRequest, type StartWorkoutResponse, type StreakAtRiskPushPayload, type StreakMilestoneActivity, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TEMPORARY_OVERRIDE_KINDS, TEMPORARY_OVERRIDE_SOURCE_KINDS, TRAINING_BLOCK_COMPARISON_MAX_DAYS, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, TRAINING_PARTNERSHIP_STATUSES, TRAINING_PARTNERS_MAX, TRAINING_PARTNER_ENCOURAGEMENTS_PER_24_HOURS_MAX, TRAINING_PARTNER_ENCOURAGEMENT_KINDS, TRAINING_PARTNER_PERMISSION_KEYS, TRAINING_PARTNER_REQUESTS_PER_DAY_MAX, TRAINING_SIGNAL_DECLINES_MAX, TRAINING_SIGNAL_DECLINE_SESSIONS, TRAINING_SIGNAL_MIN_DECLINE, TRAINING_SIGNAL_MIN_RPE_SETS, TRAINING_SIGNAL_MIN_SHORT_SETS, TRAINING_SIGNAL_MIN_TARGET_SETS, TRAINING_SIGNAL_PERIOD_DAYS, TRAINING_SIGNAL_RPE_RISE, TRAINING_SIGNAL_SHORT_LIFTS_MAX, TRAINING_SIGNAL_SHORT_POINTS_RISE, TRAINING_SIGNAL_WORKOUT_DROP, type TemporaryOverrideKind, type TemporaryOverrideSource, type TemporaryOverrideSourceKind, type TrainingBlockComparisonResponse, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, type TrainingPartnerAchievementNotification, type TrainingPartnerAchievementPushPayload, type TrainingPartnerEncouragementKind, type TrainingPartnerEncouragementNotification, type TrainingPartnerPermissions, type TrainingPartnerScheduleDay, type TrainingPartnerScheduleResponse, type TrainingPartnerSessionNotification, type TrainingPartnerSessionPushPayload, type TrainingPartnership, type TrainingPartnershipStatus, type TrainingPartnershipsResponse, type TrainingReminderPreference, type TrainingReminderPushPayload, type TrainingSignalPeriod, type TrainingSignalsResponse, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UnreadConversationsResponse, type UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateMessagePermissionRequest, type UpdateNotificationPreferencesRequest, type UpdateOnboardingRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpdateWeekStartRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEEK_STARTS, WEIGHT_UNITS, WORKOUT_SESSION_ORIGINS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeekStartsOn, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSearchPage, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionOrigin, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, addCalendarDays, advanceLinearPeriodization, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, canLogWorkoutOn, cmToFeetInches, cmToInches, continueLinearPeriodization, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, feetInchesToCm, followWorkingLoad, goalSuggestionKey, hasOversizedGroup, inchesToCm, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isGoalSuggestionKey, isMessagePermission, isOnboardingStepId, isRealtimeTopic, isSetKind, isWeekStartsOn, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, linearPeriodizationProblem, loggedWorkoutDateRange, lpAtStep, lpEstimate, lpLoadKg, lpPrescription, lpRecommendation, lpRirMidpoint, lpSampleRir, lpSetEstimateKg, lpStep, lpStoredSets, lpWorkingSets, matchesDeletionConfirmation, messageBodyLength, messageNote, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, normalizeMessageBody, normalizeSearchQuery, parseRealtimeEvent, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, roundDownToIncrement, roundToIncrement, routineDayLabel, sameLpPosition, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, startLinearPeriodization, summarizeBodyProgress, trainingBlockCovers, warmUpLoad, weekStartOf };
|
package/dist/index.js
CHANGED
|
@@ -643,11 +643,12 @@ function lpLoadKg(referenceMaxKg, percentage, incrementKg) {
|
|
|
643
643
|
return roundToIncrement(referenceMaxKg * percentage, incrementKg);
|
|
644
644
|
}
|
|
645
645
|
var LP_PHASES = ["BLOCK", "RECOVERY", "FINISHED"];
|
|
646
|
-
|
|
646
|
+
var clampStep = (step) => Math.min(Math.max(Math.trunc(step) || 1, 1), LP_BLOCK_STEPS);
|
|
647
|
+
function startLinearPeriodization(referenceMaxKg, cycle = 1, step = 1) {
|
|
647
648
|
return {
|
|
648
649
|
referenceMaxKg,
|
|
649
650
|
phase: "BLOCK",
|
|
650
|
-
step:
|
|
651
|
+
step: clampStep(step),
|
|
651
652
|
cycle,
|
|
652
653
|
samples: [],
|
|
653
654
|
finishedAt: null,
|
|
@@ -655,6 +656,18 @@ function startLinearPeriodization(referenceMaxKg, cycle = 1) {
|
|
|
655
656
|
nextReferenceMaxKg: null
|
|
656
657
|
};
|
|
657
658
|
}
|
|
659
|
+
function lpAtStep(state, step) {
|
|
660
|
+
const at = clampStep(step);
|
|
661
|
+
return {
|
|
662
|
+
...state,
|
|
663
|
+
phase: "BLOCK",
|
|
664
|
+
step: at,
|
|
665
|
+
samples: state.samples.filter((sample) => sample.step < at),
|
|
666
|
+
finishedAt: null,
|
|
667
|
+
estimatedMaxKg: null,
|
|
668
|
+
nextReferenceMaxKg: null
|
|
669
|
+
};
|
|
670
|
+
}
|
|
658
671
|
function linearPeriodizationProblem(state) {
|
|
659
672
|
if (!Number.isFinite(state.referenceMaxKg) || state.referenceMaxKg <= 0 || state.referenceMaxKg > LP_REFERENCE_MAX_KG) {
|
|
660
673
|
return "The reference max must be above 0";
|
|
@@ -822,6 +835,42 @@ function lpStoredSets(state, incrementKg) {
|
|
|
822
835
|
}));
|
|
823
836
|
}
|
|
824
837
|
|
|
838
|
+
// src/logged-workouts.ts
|
|
839
|
+
var WORKOUT_SESSION_ORIGINS = ["LIVE", "LOGGED_LATER"];
|
|
840
|
+
var LOGGED_WORKOUT_LOOKBACK_DAYS = 84;
|
|
841
|
+
var LOGGED_WORKOUTS_PER_ROUTINE_MAX = 48;
|
|
842
|
+
var LOGGED_WORKOUT_DEFAULT_START_MINUTE = 12 * 60;
|
|
843
|
+
var LOGGED_WORKOUT_MAX_DURATION_SEC = 6 * 60 * 60;
|
|
844
|
+
var LOGGED_WORKOUT_MIN_DURATION_SEC = 60;
|
|
845
|
+
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
846
|
+
var DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
847
|
+
function dayNumber(date) {
|
|
848
|
+
if (!DATE.test(date)) return null;
|
|
849
|
+
const time = Date.parse(`${date}T00:00:00Z`);
|
|
850
|
+
if (!Number.isFinite(time)) return null;
|
|
851
|
+
if (new Date(time).toISOString().slice(0, 10) !== date) return null;
|
|
852
|
+
return Math.round(time / DAY_MS);
|
|
853
|
+
}
|
|
854
|
+
function addCalendarDays(date, days) {
|
|
855
|
+
const day = dayNumber(date);
|
|
856
|
+
if (day === null) return date;
|
|
857
|
+
return new Date((day + days) * DAY_MS).toISOString().slice(0, 10);
|
|
858
|
+
}
|
|
859
|
+
function loggedWorkoutDateRange(input) {
|
|
860
|
+
const first = addCalendarDays(input.today, -LOGGED_WORKOUT_LOOKBACK_DAYS);
|
|
861
|
+
const last = addCalendarDays(input.createdOn, -1);
|
|
862
|
+
const a = dayNumber(first);
|
|
863
|
+
const b = dayNumber(last);
|
|
864
|
+
if (a === null || b === null || b < a) return null;
|
|
865
|
+
return { first, last };
|
|
866
|
+
}
|
|
867
|
+
function canLogWorkoutOn(date, input) {
|
|
868
|
+
const day = dayNumber(date);
|
|
869
|
+
const range = loggedWorkoutDateRange(input);
|
|
870
|
+
if (day === null || !range) return false;
|
|
871
|
+
return day >= dayNumber(range.first) && day <= dayNumber(range.last);
|
|
872
|
+
}
|
|
873
|
+
|
|
825
874
|
// src/plate-loading.ts
|
|
826
875
|
var CANONICAL_SCALE = 1e4;
|
|
827
876
|
var DENSE_CAPACITY_LIMIT = 2e5;
|
|
@@ -1392,6 +1441,7 @@ function sessionCorrectionWindow(input, now = /* @__PURE__ */ new Date()) {
|
|
|
1392
1441
|
const closed = (closedReason) => ({ correctableUntil: null, closedReason });
|
|
1393
1442
|
if (input.status !== "COMPLETED" || !input.endedAt)
|
|
1394
1443
|
return closed("NOT_COMPLETED");
|
|
1444
|
+
if (input.loggedLater) return closed("LOGGED_LATER");
|
|
1395
1445
|
if (!input.isLatest) return closed("NOT_LATEST");
|
|
1396
1446
|
if (input.laterSessionStarted) return closed("LATER_SESSION");
|
|
1397
1447
|
const until = new Date(
|
|
@@ -1654,12 +1704,22 @@ var API_ERROR_MESSAGES = {
|
|
|
1654
1704
|
LINEAR_BLOCK_SWAP_ROUTINE: "An exercise on an 8-week block can be swapped for this workout only",
|
|
1655
1705
|
LINEAR_BLOCK_NOT_LINEAR: "This exercise is not on an 8-week block",
|
|
1656
1706
|
LINEAR_BLOCK_NOT_FINISHED: "This exercise's block has not finished, so there is nothing to choose yet",
|
|
1707
|
+
// ── Workouts logged later (LIVE-23) ───────────────────────────────────
|
|
1708
|
+
LOGGED_WORKOUT_DATE: "A past workout can be logged only before the routine was created, within the last {days} days",
|
|
1709
|
+
LOGGED_WORKOUT_OVERLAP: "Another workout overlaps that time",
|
|
1710
|
+
LOGGED_WORKOUT_SAME_DAY: "This day of the routine is already logged on that date",
|
|
1711
|
+
LOGGED_WORKOUT_LIMIT: "A routine can hold at most {max} logged workouts",
|
|
1712
|
+
LOGGED_WORKOUT_NO_SETS: "Log at least one completed set",
|
|
1713
|
+
LOGGED_WORKOUT_SET_NOT_IN_DAY: "Every set must belong to an exercise of this day",
|
|
1714
|
+
LOGGED_WORKOUT_DAY_NOT_BASELINE: "Only the routine's own days can be logged, not a training block's or a deload's",
|
|
1715
|
+
LOGGED_WORKOUT_NOT_LOGGED: "Only a workout logged later can be removed",
|
|
1657
1716
|
// ── Corrections (LIVE-17) ──────────────────────────────────────────────
|
|
1658
1717
|
CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected",
|
|
1659
1718
|
CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected",
|
|
1660
1719
|
CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since",
|
|
1661
1720
|
CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed",
|
|
1662
1721
|
CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed",
|
|
1722
|
+
CORRECTION_LOGGED_LATER: "A workout logged later is changed by removing it and logging it again",
|
|
1663
1723
|
CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg",
|
|
1664
1724
|
CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}",
|
|
1665
1725
|
CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}",
|
|
@@ -1903,6 +1963,11 @@ export {
|
|
|
1903
1963
|
INCHES_PER_FOOT,
|
|
1904
1964
|
LENGTH_UNITS,
|
|
1905
1965
|
LIMITED_SHORTFALL_KG,
|
|
1966
|
+
LOGGED_WORKOUTS_PER_ROUTINE_MAX,
|
|
1967
|
+
LOGGED_WORKOUT_DEFAULT_START_MINUTE,
|
|
1968
|
+
LOGGED_WORKOUT_LOOKBACK_DAYS,
|
|
1969
|
+
LOGGED_WORKOUT_MAX_DURATION_SEC,
|
|
1970
|
+
LOGGED_WORKOUT_MIN_DURATION_SEC,
|
|
1906
1971
|
LP_BLOCK_STEPS,
|
|
1907
1972
|
LP_ESTIMATE_MAX_REPS_TO_FAILURE,
|
|
1908
1973
|
LP_ESTIMATE_MIN_SETS,
|
|
@@ -2059,8 +2124,10 @@ export {
|
|
|
2059
2124
|
USERNAME_PATTERN_SOURCE,
|
|
2060
2125
|
WEEK_STARTS,
|
|
2061
2126
|
WEIGHT_UNITS,
|
|
2127
|
+
WORKOUT_SESSION_ORIGINS,
|
|
2062
2128
|
WORKOUT_SESSION_STATUSES,
|
|
2063
2129
|
accountExportFileName,
|
|
2130
|
+
addCalendarDays,
|
|
2064
2131
|
advanceLinearPeriodization,
|
|
2065
2132
|
apiError,
|
|
2066
2133
|
apiErrorMessage,
|
|
@@ -2070,6 +2137,7 @@ export {
|
|
|
2070
2137
|
buildWarmUpRamp,
|
|
2071
2138
|
calculatePlateLoading,
|
|
2072
2139
|
canLinkToNext,
|
|
2140
|
+
canLogWorkoutOn,
|
|
2073
2141
|
cmToFeetInches,
|
|
2074
2142
|
cmToInches,
|
|
2075
2143
|
continueLinearPeriodization,
|
|
@@ -2103,6 +2171,8 @@ export {
|
|
|
2103
2171
|
latestBodyWeight,
|
|
2104
2172
|
leadWorkingWeight,
|
|
2105
2173
|
linearPeriodizationProblem,
|
|
2174
|
+
loggedWorkoutDateRange,
|
|
2175
|
+
lpAtStep,
|
|
2106
2176
|
lpEstimate,
|
|
2107
2177
|
lpLoadKg,
|
|
2108
2178
|
lpPrescription,
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sunsteel/contracts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"repository": {
|
|
5
|
-
"type": "git",
|
|
6
|
-
"url": "git+https://github.com/ezee969/sunsteel-contracts.git"
|
|
7
|
-
},
|
|
8
|
-
"private": false,
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">=20.11"
|
|
11
|
-
},
|
|
12
|
-
"type": "module",
|
|
13
|
-
"sideEffects": false,
|
|
14
|
-
"main": "./dist/index.cjs",
|
|
15
|
-
"module": "./dist/index.js",
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"import": "./dist/index.js",
|
|
21
|
-
"require": "./dist/index.cjs"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
29
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
30
|
-
"typecheck": "tsc --noEmit",
|
|
31
|
-
"lint": "npm run typecheck",
|
|
32
|
-
"verify": "npm run typecheck && npm run build",
|
|
33
|
-
"verify:security": "npm audit",
|
|
34
|
-
"prepublishOnly": "npm run build"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"tsup": "^8.3.5",
|
|
38
|
-
"typescript": "^5.7.3"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@sunsteel/contracts",
|
|
3
|
+
"version": "0.96.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/ezee969/sunsteel-contracts.git"
|
|
7
|
+
},
|
|
8
|
+
"private": false,
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20.11"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
29
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"lint": "npm run typecheck",
|
|
32
|
+
"verify": "npm run typecheck && npm run build",
|
|
33
|
+
"verify:security": "npm audit",
|
|
34
|
+
"prepublishOnly": "npm run build"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"tsup": "^8.3.5",
|
|
38
|
+
"typescript": "^5.7.3"
|
|
39
|
+
}
|
|
40
|
+
}
|