@sunsteel/contracts 0.76.0 → 0.77.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 +193 -0
- package/dist/index.d.cts +194 -1
- package/dist/index.d.ts +194 -1
- package/dist/index.js +188 -0
- package/package.json +40 -40
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,8 @@ __export(index_exports, {
|
|
|
37
37
|
ACTIVITY_REACTIONS: () => ACTIVITY_REACTIONS,
|
|
38
38
|
ACTIVITY_TYPES: () => ACTIVITY_TYPES,
|
|
39
39
|
ACTIVITY_TYPE_SECTIONS: () => ACTIVITY_TYPE_SECTIONS,
|
|
40
|
+
API_ERROR_CODES: () => API_ERROR_CODES,
|
|
41
|
+
API_ERROR_MESSAGES: () => API_ERROR_MESSAGES,
|
|
40
42
|
BAR_CHOICES_KG: () => BAR_CHOICES_KG,
|
|
41
43
|
BAR_WARM_UP_STEPS: () => BAR_WARM_UP_STEPS,
|
|
42
44
|
BLOCKED_MEMBERS_MAX: () => BLOCKED_MEMBERS_MAX,
|
|
@@ -196,6 +198,8 @@ __export(index_exports, {
|
|
|
196
198
|
WEIGHT_UNITS: () => WEIGHT_UNITS,
|
|
197
199
|
WORKOUT_SESSION_STATUSES: () => WORKOUT_SESSION_STATUSES,
|
|
198
200
|
accountExportFileName: () => accountExportFileName,
|
|
201
|
+
apiError: () => apiError,
|
|
202
|
+
apiErrorMessage: () => apiErrorMessage,
|
|
199
203
|
applyDeload: () => applyDeload,
|
|
200
204
|
bodyMeasurementProblems: () => bodyMeasurementProblems,
|
|
201
205
|
bodyProgressRangeStart: () => bodyProgressRangeStart,
|
|
@@ -213,6 +217,7 @@ __export(index_exports, {
|
|
|
213
217
|
exerciseNameKey: () => exerciseNameKey,
|
|
214
218
|
followWorkingLoad: () => followWorkingLoad,
|
|
215
219
|
hasOversizedGroup: () => hasOversizedGroup,
|
|
220
|
+
isApiErrorCode: () => isApiErrorCode,
|
|
216
221
|
isAppLocale: () => isAppLocale,
|
|
217
222
|
isBarLoaded: () => isBarLoaded,
|
|
218
223
|
isBodyMeasurementDate: () => isBodyMeasurementDate,
|
|
@@ -1485,6 +1490,189 @@ var ACCOUNT_EXPORT_VERSION = 1;
|
|
|
1485
1490
|
function accountExportFileName(username, exportedAt) {
|
|
1486
1491
|
return `sunnsteel-${username}-${exportedAt.slice(0, 10)}.json`;
|
|
1487
1492
|
}
|
|
1493
|
+
|
|
1494
|
+
// src/api-errors.ts
|
|
1495
|
+
var API_ERROR_MESSAGES = {
|
|
1496
|
+
// ── Not found ──────────────────────────────────────────────────────────
|
|
1497
|
+
ROUTINE_NOT_FOUND: "Routine not found",
|
|
1498
|
+
ROUTINE_NOT_EDITABLE: "Routine not found or you do not have permission to edit it.",
|
|
1499
|
+
ROUTINE_NOT_MODIFIABLE: "Routine not found or you do not have permission to modify it.",
|
|
1500
|
+
ROUTINE_DAY_NOT_FOUND: "Routine day not found for this user/routine",
|
|
1501
|
+
ROUTINE_EXERCISE_NOT_FOUND: "Exercise not found in this routine",
|
|
1502
|
+
VERSION_NOT_FOUND: "Version not found",
|
|
1503
|
+
ROUTINE_VERSION_NOT_FOUND: "Routine version not found",
|
|
1504
|
+
TRAINING_BLOCK_NOT_FOUND: "Training block not found",
|
|
1505
|
+
DELOAD_NOT_FOUND: "Deload not found",
|
|
1506
|
+
WORKOUT_SESSION_NOT_FOUND: "Workout session not found",
|
|
1507
|
+
SET_LOG_NOT_FOUND: "Set log not found",
|
|
1508
|
+
SESSION_EXERCISE_NOT_FOUND: "That exercise is not part of this session",
|
|
1509
|
+
USER_NOT_FOUND: "User not found",
|
|
1510
|
+
MEMBER_NOT_FOUND: "Member not found",
|
|
1511
|
+
ACCOUNT_NOT_FOUND: "Account not found",
|
|
1512
|
+
ACTIVITY_NOT_FOUND: "Activity entry not found",
|
|
1513
|
+
COMMENT_NOT_FOUND: "Comment not found",
|
|
1514
|
+
EXERCISE_NOT_FOUND: "Exercise not found",
|
|
1515
|
+
REPORT_NOT_FOUND: "Report not found",
|
|
1516
|
+
REPORT_SUBJECT_NOT_FOUND: "Subject not found",
|
|
1517
|
+
REPORTED_CONTENT_GONE: "The reported content no longer exists",
|
|
1518
|
+
SHARE_LINK_NOT_FOUND: "Share link not found",
|
|
1519
|
+
LINK_NOT_FOUND: "Link not found",
|
|
1520
|
+
SHARED_SESSION_NOT_FOUND: "Shared session not found",
|
|
1521
|
+
SHARED_SCHEDULE_NOT_FOUND: "Shared schedule not found",
|
|
1522
|
+
OVERRIDE_NOT_FOUND: "Override not found",
|
|
1523
|
+
BODY_ENTRY_NOT_FOUND: "No entry on that date",
|
|
1524
|
+
PARTNER_REQUEST_NOT_FOUND: "Training-partner request not found",
|
|
1525
|
+
PARTNER_RELATIONSHIP_NOT_FOUND: "Training-partner relationship not found",
|
|
1526
|
+
PARTNERSHIP_NOT_FOUND: "Training partnership not found",
|
|
1527
|
+
NO_EXERCISE_PERFORMANCE: "No completed performance found for this exercise",
|
|
1528
|
+
NO_STRENGTH_RECORDS: "No strength records found for this exercise",
|
|
1529
|
+
NO_COMPLETED_SESSIONS_FOR_DAY: "No completed sessions found for this routine day",
|
|
1530
|
+
// ── Training history being prepared ────────────────────────────────────
|
|
1531
|
+
ANALYTICS_NOT_READY: "Workout analytics projection is not ready",
|
|
1532
|
+
ANALYTICS_REBUILDING: "Your training history is being rebuilt. Try again in a few minutes.",
|
|
1533
|
+
ANALYTICS_SNAPSHOTS_PREPARING: "Historical snapshots are still being prepared; retry after analytics setup",
|
|
1534
|
+
RATE_LIMITED: "ThrottlerException: Too Many Requests",
|
|
1535
|
+
// ── Routines ───────────────────────────────────────────────────────────
|
|
1536
|
+
ROUTINE_DAYS_MAX: "A routine has at most {max} days",
|
|
1537
|
+
ROUTINE_DAY_NAME_TOO_LONG: "Day names have at most {max} characters",
|
|
1538
|
+
EXERCISE_GROUP_TOO_LARGE: "A superset or circuit has at most {max} exercises",
|
|
1539
|
+
ROUTINE_ACTIVE_SESSION: "Finish the active session before changing the routine structure",
|
|
1540
|
+
ROUTINE_SHARE_LINKS_MAX: "A routine keeps at most {max} active links.",
|
|
1541
|
+
CLONE_SOURCE_REQUIRED: "SOURCE_REQUIRED: send either a share token or a routine id",
|
|
1542
|
+
CLONE_UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE: an exercise in this routine is no longer in the catalog",
|
|
1543
|
+
ROUTINE_VERSIONS_MAX: "A routine keeps at most {max} versions; delete one first",
|
|
1544
|
+
ROUTINE_VERSION_EXERCISE_GONE: "An exercise in this version is no longer in the catalog",
|
|
1545
|
+
ROUTINE_VERSION_NAME_TOO_LONG: "Version names have at most {max} characters",
|
|
1546
|
+
// ── Training blocks ────────────────────────────────────────────────────
|
|
1547
|
+
TRAINING_BLOCKS_MAX: "A routine keeps at most {max} training blocks; delete a future block first",
|
|
1548
|
+
TRAINING_BLOCK_REVISIONS_MAX: "A training block keeps at most {max} revisions",
|
|
1549
|
+
TRAINING_BLOCK_COMPLETED: "A completed training block cannot change",
|
|
1550
|
+
TRAINING_BLOCK_START_LOCKED: "The start date of an active training block cannot change",
|
|
1551
|
+
TRAINING_BLOCK_END_IN_PAST: "An active training block cannot end before today",
|
|
1552
|
+
TRAINING_BLOCK_ACTIVE_SESSION: "Finish the active session of this training block before revising it",
|
|
1553
|
+
TRAINING_BLOCK_NOT_FUTURE: "Only a future training block can be deleted",
|
|
1554
|
+
TRAINING_BLOCK_VERSION_EXERCISE_GONE: "An exercise in this version is no longer available",
|
|
1555
|
+
TRAINING_BLOCK_NAME_REQUIRED: "Name is required",
|
|
1556
|
+
TRAINING_BLOCK_NAME_TOO_LONG: "Name must be at most {max} characters",
|
|
1557
|
+
TRAINING_BLOCK_ENDS_BEFORE_START: "The block ends before it starts",
|
|
1558
|
+
TRAINING_BLOCK_OVERLAP: "Training blocks cannot overlap",
|
|
1559
|
+
TRAINING_BLOCK_NOT_STARTED: "A training block that has not started has nothing to compare",
|
|
1560
|
+
// ── Deloads ────────────────────────────────────────────────────────────
|
|
1561
|
+
DELOAD_NOTHING_TO_LIGHTEN: "There is nothing to deload yet",
|
|
1562
|
+
DELOAD_NOT_LIGHTER: "Those options leave every set as it is: choose a lighter load or fewer sets",
|
|
1563
|
+
DELOAD_NOT_IN_PROGRESS: "Only a deload in progress can be ended early",
|
|
1564
|
+
DELOAD_ALREADY_STARTED: "Only a deload that has not started can be cancelled",
|
|
1565
|
+
DELOAD_ENDS_BEFORE_START: "The deload ends before it starts",
|
|
1566
|
+
DELOAD_STARTS_IN_PAST: "A deload starts today or later",
|
|
1567
|
+
DELOAD_TOO_LONG: "A deload lasts at most {max} days",
|
|
1568
|
+
DELOAD_OVERLAP: "Deloads of one routine cannot overlap",
|
|
1569
|
+
DELOAD_CROSSES_BLOCK: "A deload stays inside one plan: it cannot cross the start or end of a training block",
|
|
1570
|
+
DELOAD_PLANNED_IN_RANGE: "A deload is planned in those dates; end or cancel it first",
|
|
1571
|
+
DELOAD_LIGHTENS_BLOCK: "A deload lightens this training block; cancel it first",
|
|
1572
|
+
// ── Schedule ───────────────────────────────────────────────────────────
|
|
1573
|
+
SCHEDULE_NOT_WEEKLY: "Only weekly routines have dated workouts to change",
|
|
1574
|
+
SCHEDULE_NOT_PLANNED: "The routine is not planned on that date",
|
|
1575
|
+
SCHEDULE_SAME_DATE: "Choose a different date",
|
|
1576
|
+
SCHEDULE_MOVE_TOO_FAR: "A workout moves at most {max} days",
|
|
1577
|
+
SCHEDULE_PAST_MOVE: "Past workouts cannot be moved",
|
|
1578
|
+
SCHEDULE_DATE_TAKEN: "That date already has a workout of this routine",
|
|
1579
|
+
SCHEDULE_DATE_MOVED_INTO: "Another workout of this routine already moved to that date",
|
|
1580
|
+
SCHEDULE_SKIP_TOO_OLD: "A workout can be marked skipped up to {max} days back",
|
|
1581
|
+
// ── Starting and logging a workout ─────────────────────────────────────
|
|
1582
|
+
SESSION_ALREADY_ACTIVE: "Active workout session already exists",
|
|
1583
|
+
SESSION_DELOAD_IN_FORCE: "This routine is on a deload until {endDate}; start one of its days",
|
|
1584
|
+
SESSION_DELOAD_NOT_IN_FORCE: "That deload is not in force today; start a day of the plan in force",
|
|
1585
|
+
SESSION_BLOCK_IN_FORCE: 'This routine follows the training block "{name}" until {endDate}; start one of its days',
|
|
1586
|
+
SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine",
|
|
1587
|
+
SESSION_FINISHED: "Cannot modify set logs for a finished session",
|
|
1588
|
+
SESSION_ALREADY_FINISHED: "Session already finished with a different status",
|
|
1589
|
+
EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets",
|
|
1590
|
+
EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set",
|
|
1591
|
+
PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed",
|
|
1592
|
+
ONLY_LAST_EXTRA_SET_REMOVABLE: "Only the last added set can be removed",
|
|
1593
|
+
SWAP_SESSION_NOT_ACTIVE: "Exercises can only be swapped in an active session",
|
|
1594
|
+
SWAP_SETS_COMPLETED: "This exercise already has completed sets. Swap it before completing any.",
|
|
1595
|
+
NOTES_DISCARDED_SESSION: "A discarded workout cannot take notes",
|
|
1596
|
+
// ── Corrections (LIVE-17) ──────────────────────────────────────────────
|
|
1597
|
+
CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected",
|
|
1598
|
+
CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected",
|
|
1599
|
+
CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since",
|
|
1600
|
+
CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed",
|
|
1601
|
+
CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed",
|
|
1602
|
+
CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg",
|
|
1603
|
+
CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}",
|
|
1604
|
+
CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}",
|
|
1605
|
+
CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep",
|
|
1606
|
+
CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way",
|
|
1607
|
+
CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set",
|
|
1608
|
+
// ── Sharing a workout ──────────────────────────────────────────────────
|
|
1609
|
+
SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share",
|
|
1610
|
+
SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared",
|
|
1611
|
+
SESSION_SHARE_LINKS_MAX: "A session can have at most {max} active share links",
|
|
1612
|
+
// ── Exercises ──────────────────────────────────────────────────────────
|
|
1613
|
+
EXERCISE_STARS_MAX: "You can star at most {max} exercises",
|
|
1614
|
+
CUSTOM_EXERCISE_NAME_TAKEN: "NAME_TAKEN: you already have an exercise by that name, or the catalog does",
|
|
1615
|
+
CUSTOM_EXERCISE_LIMIT_REACHED: "LIMIT_REACHED: you can keep up to {max} custom exercises, archived ones included",
|
|
1616
|
+
CUSTOM_EXERCISE_NO_ROOM: "LIMIT_REACHED: this routine needs custom exercises you have no room for (up to {max})",
|
|
1617
|
+
CUSTOM_EXERCISE_IN_USE: "IN_USE: a routine or a workout uses this exercise, so it can be archived but not deleted",
|
|
1618
|
+
// ── Activity and moderation ────────────────────────────────────────────
|
|
1619
|
+
ACTIVITY_AUDIENCE_REQUIRED: "Choose an audience for at least one type",
|
|
1620
|
+
COMMENT_LENGTH: "A comment must not be empty and may be at most {max} characters.",
|
|
1621
|
+
COMMENTS_PER_DAY: "You can write at most {max} comments a day.",
|
|
1622
|
+
REACTION_OWN_ACTIVITY: "You cannot react to your own activity",
|
|
1623
|
+
REPORTS_PER_DAY: "You can file at most {max} reports a day.",
|
|
1624
|
+
REPORTED_CONTENT_ALREADY_HIDDEN: "The reported content is already hidden",
|
|
1625
|
+
REPORTED_CONTENT_NOT_HIDDEN: "The reported content is not hidden",
|
|
1626
|
+
REPORT_ALREADY_REVIEWED: "This report has already been reviewed",
|
|
1627
|
+
// ── Members, partners and blocks ───────────────────────────────────────
|
|
1628
|
+
USERNAME_TAKEN: "Username is already taken",
|
|
1629
|
+
USERNAME_RESERVED: "This username is reserved",
|
|
1630
|
+
USERNAME_INVALID: "Username must be 3-30 characters, use letters, numbers, underscores or hyphens, and start and end with a letter or number",
|
|
1631
|
+
FOLLOW_SELF: "You cannot follow yourself",
|
|
1632
|
+
UNFOLLOW_SELF: "You cannot unfollow yourself",
|
|
1633
|
+
BLOCK_SELF: "You cannot block yourself",
|
|
1634
|
+
BLOCKS_MAX: "You can block at most {max} members.",
|
|
1635
|
+
PARTNER_REQUEST_SELF: "You cannot send a training-partner request to yourself",
|
|
1636
|
+
PARTNER_REQUESTS_PER_DAY: "You can send at most {max} training-partner requests per day.",
|
|
1637
|
+
PARTNER_ALREADY_EXISTS: "A training-partner relationship already exists with this member.",
|
|
1638
|
+
PARTNERS_MAX: "An account can have at most {max} training partners.",
|
|
1639
|
+
ENCOURAGEMENTS_MAX: "You can send this partner at most {max} encouragements in 24 hours.",
|
|
1640
|
+
ENCOURAGEMENT_RETRY: "Please retry the encouragement.",
|
|
1641
|
+
// ── Account and settings ───────────────────────────────────────────────
|
|
1642
|
+
ACCOUNT_CONFLICT: "Account conflict for this email",
|
|
1643
|
+
ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.",
|
|
1644
|
+
ACCOUNT_DELETE_MODERATOR: "A moderator account cannot be deleted while it holds moderator access.",
|
|
1645
|
+
ACCOUNT_DELETE_UNAVAILABLE: "Your account could not be deleted right now. Nothing was removed; try again shortly.",
|
|
1646
|
+
FEATURED_ITEM_UNAVAILABLE: "A featured item is not currently available to this account",
|
|
1647
|
+
FEATURED_ITEMS_MAX: "Choose at most {max} featured items",
|
|
1648
|
+
FEATURED_RANK_ONE: "Choose at most one featured rank",
|
|
1649
|
+
TRAINING_LOCATION_DEFAULT: "Exactly one training location must be the default.",
|
|
1650
|
+
TRAINING_LOCATION_NAMES_UNIQUE: "Training location names must be unique.",
|
|
1651
|
+
PLATE_WEIGHTS_UNIQUE: "Plate weights must be unique within {name}.",
|
|
1652
|
+
GOALS_MAX: "No more than {max} measurable goals are allowed",
|
|
1653
|
+
GOAL_DUPLICATE: "Duplicate measurable goal",
|
|
1654
|
+
GOAL_STRENGTH_NEEDS_EXERCISE: "Strength goals require an exercise",
|
|
1655
|
+
BODY_ENTRY_IN_FUTURE: "An entry cannot be dated in the future"
|
|
1656
|
+
};
|
|
1657
|
+
var API_ERROR_CODES = Object.keys(
|
|
1658
|
+
API_ERROR_MESSAGES
|
|
1659
|
+
);
|
|
1660
|
+
function isApiErrorCode(value) {
|
|
1661
|
+
return typeof value === "string" && Object.prototype.hasOwnProperty.call(API_ERROR_MESSAGES, value);
|
|
1662
|
+
}
|
|
1663
|
+
function apiErrorMessage(code, params = {}) {
|
|
1664
|
+
return API_ERROR_MESSAGES[code].replace(
|
|
1665
|
+
/\{(\w+)\}/g,
|
|
1666
|
+
(whole, name) => Object.prototype.hasOwnProperty.call(params, name) ? String(params[name]) : whole
|
|
1667
|
+
);
|
|
1668
|
+
}
|
|
1669
|
+
function apiError(code, params) {
|
|
1670
|
+
return {
|
|
1671
|
+
code,
|
|
1672
|
+
message: apiErrorMessage(code, params),
|
|
1673
|
+
...params ? { params } : {}
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1488
1676
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1489
1677
|
0 && (module.exports = {
|
|
1490
1678
|
ACCOUNT_EXPORT_FORMAT,
|
|
@@ -1504,6 +1692,8 @@ function accountExportFileName(username, exportedAt) {
|
|
|
1504
1692
|
ACTIVITY_REACTIONS,
|
|
1505
1693
|
ACTIVITY_TYPES,
|
|
1506
1694
|
ACTIVITY_TYPE_SECTIONS,
|
|
1695
|
+
API_ERROR_CODES,
|
|
1696
|
+
API_ERROR_MESSAGES,
|
|
1507
1697
|
BAR_CHOICES_KG,
|
|
1508
1698
|
BAR_WARM_UP_STEPS,
|
|
1509
1699
|
BLOCKED_MEMBERS_MAX,
|
|
@@ -1663,6 +1853,8 @@ function accountExportFileName(username, exportedAt) {
|
|
|
1663
1853
|
WEIGHT_UNITS,
|
|
1664
1854
|
WORKOUT_SESSION_STATUSES,
|
|
1665
1855
|
accountExportFileName,
|
|
1856
|
+
apiError,
|
|
1857
|
+
apiErrorMessage,
|
|
1666
1858
|
applyDeload,
|
|
1667
1859
|
bodyMeasurementProblems,
|
|
1668
1860
|
bodyProgressRangeStart,
|
|
@@ -1680,6 +1872,7 @@ function accountExportFileName(username, exportedAt) {
|
|
|
1680
1872
|
exerciseNameKey,
|
|
1681
1873
|
followWorkingLoad,
|
|
1682
1874
|
hasOversizedGroup,
|
|
1875
|
+
isApiErrorCode,
|
|
1683
1876
|
isAppLocale,
|
|
1684
1877
|
isBarLoaded,
|
|
1685
1878
|
isBodyMeasurementDate,
|
package/dist/index.d.cts
CHANGED
|
@@ -3884,4 +3884,197 @@ interface AccountExportV1 {
|
|
|
3884
3884
|
/** The file name a download of the export is saved under. */
|
|
3885
3885
|
declare function accountExportFileName(username: string, exportedAt: string): string;
|
|
3886
3886
|
|
|
3887
|
-
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, 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 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, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, 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, 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, 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, type IsoDateString, LIMITED_SHORTFALL_KG, type ListSessionsParams, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, OTHER_WARM_UP_STEPS, 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, 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 RecentActivityEntry, 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 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 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, 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 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 SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, 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 UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, followWorkingLoad, hasOversizedGroup, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isSetKind, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, matchesDeletionConfirmation, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, routineDayLabel, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, summarizeBodyProgress, trainingBlockCovers, warmUpLoad };
|
|
3887
|
+
/**
|
|
3888
|
+
* I18N-06: every refusal a member can meet has a stable code, so the client
|
|
3889
|
+
* can say it in the member's language. The server still sends its English
|
|
3890
|
+
* `message`, rendered from the template below, so older clients, logs and
|
|
3891
|
+
* tests read exactly what they read before; a client that knows the code
|
|
3892
|
+
* translates it and falls back to `message` for one it does not.
|
|
3893
|
+
*
|
|
3894
|
+
* The templates are the server's English, word for word: `{name}` is replaced
|
|
3895
|
+
* by `params.name`. The frontend's English messages are held equal to them by
|
|
3896
|
+
* a test, so switching to codes changes no English on screen.
|
|
3897
|
+
*
|
|
3898
|
+
* Validation a well-behaved client never triggers (malformed cursors, ids that
|
|
3899
|
+
* belong to someone else, DTO shape errors) has no code on purpose: it keeps
|
|
3900
|
+
* its English message and is not worth a translation.
|
|
3901
|
+
*/
|
|
3902
|
+
declare const API_ERROR_MESSAGES: {
|
|
3903
|
+
readonly ROUTINE_NOT_FOUND: "Routine not found";
|
|
3904
|
+
readonly ROUTINE_NOT_EDITABLE: "Routine not found or you do not have permission to edit it.";
|
|
3905
|
+
readonly ROUTINE_NOT_MODIFIABLE: "Routine not found or you do not have permission to modify it.";
|
|
3906
|
+
readonly ROUTINE_DAY_NOT_FOUND: "Routine day not found for this user/routine";
|
|
3907
|
+
readonly ROUTINE_EXERCISE_NOT_FOUND: "Exercise not found in this routine";
|
|
3908
|
+
readonly VERSION_NOT_FOUND: "Version not found";
|
|
3909
|
+
readonly ROUTINE_VERSION_NOT_FOUND: "Routine version not found";
|
|
3910
|
+
readonly TRAINING_BLOCK_NOT_FOUND: "Training block not found";
|
|
3911
|
+
readonly DELOAD_NOT_FOUND: "Deload not found";
|
|
3912
|
+
readonly WORKOUT_SESSION_NOT_FOUND: "Workout session not found";
|
|
3913
|
+
readonly SET_LOG_NOT_FOUND: "Set log not found";
|
|
3914
|
+
readonly SESSION_EXERCISE_NOT_FOUND: "That exercise is not part of this session";
|
|
3915
|
+
readonly USER_NOT_FOUND: "User not found";
|
|
3916
|
+
readonly MEMBER_NOT_FOUND: "Member not found";
|
|
3917
|
+
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
3918
|
+
readonly ACTIVITY_NOT_FOUND: "Activity entry not found";
|
|
3919
|
+
readonly COMMENT_NOT_FOUND: "Comment not found";
|
|
3920
|
+
readonly EXERCISE_NOT_FOUND: "Exercise not found";
|
|
3921
|
+
readonly REPORT_NOT_FOUND: "Report not found";
|
|
3922
|
+
readonly REPORT_SUBJECT_NOT_FOUND: "Subject not found";
|
|
3923
|
+
readonly REPORTED_CONTENT_GONE: "The reported content no longer exists";
|
|
3924
|
+
readonly SHARE_LINK_NOT_FOUND: "Share link not found";
|
|
3925
|
+
readonly LINK_NOT_FOUND: "Link not found";
|
|
3926
|
+
readonly SHARED_SESSION_NOT_FOUND: "Shared session not found";
|
|
3927
|
+
readonly SHARED_SCHEDULE_NOT_FOUND: "Shared schedule not found";
|
|
3928
|
+
readonly OVERRIDE_NOT_FOUND: "Override not found";
|
|
3929
|
+
readonly BODY_ENTRY_NOT_FOUND: "No entry on that date";
|
|
3930
|
+
readonly PARTNER_REQUEST_NOT_FOUND: "Training-partner request not found";
|
|
3931
|
+
readonly PARTNER_RELATIONSHIP_NOT_FOUND: "Training-partner relationship not found";
|
|
3932
|
+
readonly PARTNERSHIP_NOT_FOUND: "Training partnership not found";
|
|
3933
|
+
readonly NO_EXERCISE_PERFORMANCE: "No completed performance found for this exercise";
|
|
3934
|
+
readonly NO_STRENGTH_RECORDS: "No strength records found for this exercise";
|
|
3935
|
+
readonly NO_COMPLETED_SESSIONS_FOR_DAY: "No completed sessions found for this routine day";
|
|
3936
|
+
readonly ANALYTICS_NOT_READY: "Workout analytics projection is not ready";
|
|
3937
|
+
readonly ANALYTICS_REBUILDING: "Your training history is being rebuilt. Try again in a few minutes.";
|
|
3938
|
+
readonly ANALYTICS_SNAPSHOTS_PREPARING: "Historical snapshots are still being prepared; retry after analytics setup";
|
|
3939
|
+
readonly RATE_LIMITED: "ThrottlerException: Too Many Requests";
|
|
3940
|
+
readonly ROUTINE_DAYS_MAX: "A routine has at most {max} days";
|
|
3941
|
+
readonly ROUTINE_DAY_NAME_TOO_LONG: "Day names have at most {max} characters";
|
|
3942
|
+
readonly EXERCISE_GROUP_TOO_LARGE: "A superset or circuit has at most {max} exercises";
|
|
3943
|
+
readonly ROUTINE_ACTIVE_SESSION: "Finish the active session before changing the routine structure";
|
|
3944
|
+
readonly ROUTINE_SHARE_LINKS_MAX: "A routine keeps at most {max} active links.";
|
|
3945
|
+
readonly CLONE_SOURCE_REQUIRED: "SOURCE_REQUIRED: send either a share token or a routine id";
|
|
3946
|
+
readonly CLONE_UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE: an exercise in this routine is no longer in the catalog";
|
|
3947
|
+
readonly ROUTINE_VERSIONS_MAX: "A routine keeps at most {max} versions; delete one first";
|
|
3948
|
+
readonly ROUTINE_VERSION_EXERCISE_GONE: "An exercise in this version is no longer in the catalog";
|
|
3949
|
+
readonly ROUTINE_VERSION_NAME_TOO_LONG: "Version names have at most {max} characters";
|
|
3950
|
+
readonly TRAINING_BLOCKS_MAX: "A routine keeps at most {max} training blocks; delete a future block first";
|
|
3951
|
+
readonly TRAINING_BLOCK_REVISIONS_MAX: "A training block keeps at most {max} revisions";
|
|
3952
|
+
readonly TRAINING_BLOCK_COMPLETED: "A completed training block cannot change";
|
|
3953
|
+
readonly TRAINING_BLOCK_START_LOCKED: "The start date of an active training block cannot change";
|
|
3954
|
+
readonly TRAINING_BLOCK_END_IN_PAST: "An active training block cannot end before today";
|
|
3955
|
+
readonly TRAINING_BLOCK_ACTIVE_SESSION: "Finish the active session of this training block before revising it";
|
|
3956
|
+
readonly TRAINING_BLOCK_NOT_FUTURE: "Only a future training block can be deleted";
|
|
3957
|
+
readonly TRAINING_BLOCK_VERSION_EXERCISE_GONE: "An exercise in this version is no longer available";
|
|
3958
|
+
readonly TRAINING_BLOCK_NAME_REQUIRED: "Name is required";
|
|
3959
|
+
readonly TRAINING_BLOCK_NAME_TOO_LONG: "Name must be at most {max} characters";
|
|
3960
|
+
readonly TRAINING_BLOCK_ENDS_BEFORE_START: "The block ends before it starts";
|
|
3961
|
+
readonly TRAINING_BLOCK_OVERLAP: "Training blocks cannot overlap";
|
|
3962
|
+
readonly TRAINING_BLOCK_NOT_STARTED: "A training block that has not started has nothing to compare";
|
|
3963
|
+
readonly DELOAD_NOTHING_TO_LIGHTEN: "There is nothing to deload yet";
|
|
3964
|
+
readonly DELOAD_NOT_LIGHTER: "Those options leave every set as it is: choose a lighter load or fewer sets";
|
|
3965
|
+
readonly DELOAD_NOT_IN_PROGRESS: "Only a deload in progress can be ended early";
|
|
3966
|
+
readonly DELOAD_ALREADY_STARTED: "Only a deload that has not started can be cancelled";
|
|
3967
|
+
readonly DELOAD_ENDS_BEFORE_START: "The deload ends before it starts";
|
|
3968
|
+
readonly DELOAD_STARTS_IN_PAST: "A deload starts today or later";
|
|
3969
|
+
readonly DELOAD_TOO_LONG: "A deload lasts at most {max} days";
|
|
3970
|
+
readonly DELOAD_OVERLAP: "Deloads of one routine cannot overlap";
|
|
3971
|
+
readonly DELOAD_CROSSES_BLOCK: "A deload stays inside one plan: it cannot cross the start or end of a training block";
|
|
3972
|
+
readonly DELOAD_PLANNED_IN_RANGE: "A deload is planned in those dates; end or cancel it first";
|
|
3973
|
+
readonly DELOAD_LIGHTENS_BLOCK: "A deload lightens this training block; cancel it first";
|
|
3974
|
+
readonly SCHEDULE_NOT_WEEKLY: "Only weekly routines have dated workouts to change";
|
|
3975
|
+
readonly SCHEDULE_NOT_PLANNED: "The routine is not planned on that date";
|
|
3976
|
+
readonly SCHEDULE_SAME_DATE: "Choose a different date";
|
|
3977
|
+
readonly SCHEDULE_MOVE_TOO_FAR: "A workout moves at most {max} days";
|
|
3978
|
+
readonly SCHEDULE_PAST_MOVE: "Past workouts cannot be moved";
|
|
3979
|
+
readonly SCHEDULE_DATE_TAKEN: "That date already has a workout of this routine";
|
|
3980
|
+
readonly SCHEDULE_DATE_MOVED_INTO: "Another workout of this routine already moved to that date";
|
|
3981
|
+
readonly SCHEDULE_SKIP_TOO_OLD: "A workout can be marked skipped up to {max} days back";
|
|
3982
|
+
readonly SESSION_ALREADY_ACTIVE: "Active workout session already exists";
|
|
3983
|
+
readonly SESSION_DELOAD_IN_FORCE: "This routine is on a deload until {endDate}; start one of its days";
|
|
3984
|
+
readonly SESSION_DELOAD_NOT_IN_FORCE: "That deload is not in force today; start a day of the plan in force";
|
|
3985
|
+
readonly SESSION_BLOCK_IN_FORCE: "This routine follows the training block \"{name}\" until {endDate}; start one of its days";
|
|
3986
|
+
readonly SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine";
|
|
3987
|
+
readonly SESSION_FINISHED: "Cannot modify set logs for a finished session";
|
|
3988
|
+
readonly SESSION_ALREADY_FINISHED: "Session already finished with a different status";
|
|
3989
|
+
readonly EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets";
|
|
3990
|
+
readonly EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set";
|
|
3991
|
+
readonly PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed";
|
|
3992
|
+
readonly ONLY_LAST_EXTRA_SET_REMOVABLE: "Only the last added set can be removed";
|
|
3993
|
+
readonly SWAP_SESSION_NOT_ACTIVE: "Exercises can only be swapped in an active session";
|
|
3994
|
+
readonly SWAP_SETS_COMPLETED: "This exercise already has completed sets. Swap it before completing any.";
|
|
3995
|
+
readonly NOTES_DISCARDED_SESSION: "A discarded workout cannot take notes";
|
|
3996
|
+
readonly CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected";
|
|
3997
|
+
readonly CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected";
|
|
3998
|
+
readonly CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since";
|
|
3999
|
+
readonly CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed";
|
|
4000
|
+
readonly CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed";
|
|
4001
|
+
readonly CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg";
|
|
4002
|
+
readonly CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}";
|
|
4003
|
+
readonly CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}";
|
|
4004
|
+
readonly CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep";
|
|
4005
|
+
readonly CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way";
|
|
4006
|
+
readonly CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set";
|
|
4007
|
+
readonly SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share";
|
|
4008
|
+
readonly SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared";
|
|
4009
|
+
readonly SESSION_SHARE_LINKS_MAX: "A session can have at most {max} active share links";
|
|
4010
|
+
readonly EXERCISE_STARS_MAX: "You can star at most {max} exercises";
|
|
4011
|
+
readonly CUSTOM_EXERCISE_NAME_TAKEN: "NAME_TAKEN: you already have an exercise by that name, or the catalog does";
|
|
4012
|
+
readonly CUSTOM_EXERCISE_LIMIT_REACHED: "LIMIT_REACHED: you can keep up to {max} custom exercises, archived ones included";
|
|
4013
|
+
readonly CUSTOM_EXERCISE_NO_ROOM: "LIMIT_REACHED: this routine needs custom exercises you have no room for (up to {max})";
|
|
4014
|
+
readonly CUSTOM_EXERCISE_IN_USE: "IN_USE: a routine or a workout uses this exercise, so it can be archived but not deleted";
|
|
4015
|
+
readonly ACTIVITY_AUDIENCE_REQUIRED: "Choose an audience for at least one type";
|
|
4016
|
+
readonly COMMENT_LENGTH: "A comment must not be empty and may be at most {max} characters.";
|
|
4017
|
+
readonly COMMENTS_PER_DAY: "You can write at most {max} comments a day.";
|
|
4018
|
+
readonly REACTION_OWN_ACTIVITY: "You cannot react to your own activity";
|
|
4019
|
+
readonly REPORTS_PER_DAY: "You can file at most {max} reports a day.";
|
|
4020
|
+
readonly REPORTED_CONTENT_ALREADY_HIDDEN: "The reported content is already hidden";
|
|
4021
|
+
readonly REPORTED_CONTENT_NOT_HIDDEN: "The reported content is not hidden";
|
|
4022
|
+
readonly REPORT_ALREADY_REVIEWED: "This report has already been reviewed";
|
|
4023
|
+
readonly USERNAME_TAKEN: "Username is already taken";
|
|
4024
|
+
readonly USERNAME_RESERVED: "This username is reserved";
|
|
4025
|
+
readonly USERNAME_INVALID: "Username must be 3-30 characters, use letters, numbers, underscores or hyphens, and start and end with a letter or number";
|
|
4026
|
+
readonly FOLLOW_SELF: "You cannot follow yourself";
|
|
4027
|
+
readonly UNFOLLOW_SELF: "You cannot unfollow yourself";
|
|
4028
|
+
readonly BLOCK_SELF: "You cannot block yourself";
|
|
4029
|
+
readonly BLOCKS_MAX: "You can block at most {max} members.";
|
|
4030
|
+
readonly PARTNER_REQUEST_SELF: "You cannot send a training-partner request to yourself";
|
|
4031
|
+
readonly PARTNER_REQUESTS_PER_DAY: "You can send at most {max} training-partner requests per day.";
|
|
4032
|
+
readonly PARTNER_ALREADY_EXISTS: "A training-partner relationship already exists with this member.";
|
|
4033
|
+
readonly PARTNERS_MAX: "An account can have at most {max} training partners.";
|
|
4034
|
+
readonly ENCOURAGEMENTS_MAX: "You can send this partner at most {max} encouragements in 24 hours.";
|
|
4035
|
+
readonly ENCOURAGEMENT_RETRY: "Please retry the encouragement.";
|
|
4036
|
+
readonly ACCOUNT_CONFLICT: "Account conflict for this email";
|
|
4037
|
+
readonly ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.";
|
|
4038
|
+
readonly ACCOUNT_DELETE_MODERATOR: "A moderator account cannot be deleted while it holds moderator access.";
|
|
4039
|
+
readonly ACCOUNT_DELETE_UNAVAILABLE: "Your account could not be deleted right now. Nothing was removed; try again shortly.";
|
|
4040
|
+
readonly FEATURED_ITEM_UNAVAILABLE: "A featured item is not currently available to this account";
|
|
4041
|
+
readonly FEATURED_ITEMS_MAX: "Choose at most {max} featured items";
|
|
4042
|
+
readonly FEATURED_RANK_ONE: "Choose at most one featured rank";
|
|
4043
|
+
readonly TRAINING_LOCATION_DEFAULT: "Exactly one training location must be the default.";
|
|
4044
|
+
readonly TRAINING_LOCATION_NAMES_UNIQUE: "Training location names must be unique.";
|
|
4045
|
+
readonly PLATE_WEIGHTS_UNIQUE: "Plate weights must be unique within {name}.";
|
|
4046
|
+
readonly GOALS_MAX: "No more than {max} measurable goals are allowed";
|
|
4047
|
+
readonly GOAL_DUPLICATE: "Duplicate measurable goal";
|
|
4048
|
+
readonly GOAL_STRENGTH_NEEDS_EXERCISE: "Strength goals require an exercise";
|
|
4049
|
+
readonly BODY_ENTRY_IN_FUTURE: "An entry cannot be dated in the future";
|
|
4050
|
+
};
|
|
4051
|
+
type ApiErrorCode = keyof typeof API_ERROR_MESSAGES;
|
|
4052
|
+
declare const API_ERROR_CODES: readonly ApiErrorCode[];
|
|
4053
|
+
/** Values a template names, sent as they were substituted. */
|
|
4054
|
+
type ApiErrorParams = Record<string, string | number>;
|
|
4055
|
+
/**
|
|
4056
|
+
* The body of every error response. `code` and `params` are present only for
|
|
4057
|
+
* a refusal listed above; `message` is always the English sentence.
|
|
4058
|
+
*/
|
|
4059
|
+
interface ApiErrorBody {
|
|
4060
|
+
statusCode: number;
|
|
4061
|
+
message: string;
|
|
4062
|
+
code?: ApiErrorCode;
|
|
4063
|
+
params?: ApiErrorParams;
|
|
4064
|
+
timestamp?: string;
|
|
4065
|
+
path?: string;
|
|
4066
|
+
}
|
|
4067
|
+
declare function isApiErrorCode(value: unknown): value is ApiErrorCode;
|
|
4068
|
+
/** A template with its `{name}` placeholders filled from `params`. */
|
|
4069
|
+
declare function apiErrorMessage(code: ApiErrorCode, params?: ApiErrorParams): string;
|
|
4070
|
+
/**
|
|
4071
|
+
* What the server hands an exception constructor: Nest takes `message` as the
|
|
4072
|
+
* exception's own message and the error filter forwards `code` and `params`.
|
|
4073
|
+
*/
|
|
4074
|
+
declare function apiError(code: ApiErrorCode, params?: ApiErrorParams): {
|
|
4075
|
+
code: ApiErrorCode;
|
|
4076
|
+
message: string;
|
|
4077
|
+
params?: ApiErrorParams;
|
|
4078
|
+
};
|
|
4079
|
+
|
|
4080
|
+
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, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, 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, 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, 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, type IsoDateString, LIMITED_SHORTFALL_KG, type ListSessionsParams, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, OTHER_WARM_UP_STEPS, 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, 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 RecentActivityEntry, 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 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 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, 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 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 SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, 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 UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, followWorkingLoad, hasOversizedGroup, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isSetKind, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, matchesDeletionConfirmation, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, routineDayLabel, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, summarizeBodyProgress, trainingBlockCovers, warmUpLoad };
|
package/dist/index.d.ts
CHANGED
|
@@ -3884,4 +3884,197 @@ interface AccountExportV1 {
|
|
|
3884
3884
|
/** The file name a download of the export is saved under. */
|
|
3885
3885
|
declare function accountExportFileName(username: string, exportedAt: string): string;
|
|
3886
3886
|
|
|
3887
|
-
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, 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 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, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, 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, 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, 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, type IsoDateString, LIMITED_SHORTFALL_KG, type ListSessionsParams, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, OTHER_WARM_UP_STEPS, 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, 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 RecentActivityEntry, 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 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 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, 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 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 SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, 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 UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, followWorkingLoad, hasOversizedGroup, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isSetKind, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, matchesDeletionConfirmation, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, routineDayLabel, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, summarizeBodyProgress, trainingBlockCovers, warmUpLoad };
|
|
3887
|
+
/**
|
|
3888
|
+
* I18N-06: every refusal a member can meet has a stable code, so the client
|
|
3889
|
+
* can say it in the member's language. The server still sends its English
|
|
3890
|
+
* `message`, rendered from the template below, so older clients, logs and
|
|
3891
|
+
* tests read exactly what they read before; a client that knows the code
|
|
3892
|
+
* translates it and falls back to `message` for one it does not.
|
|
3893
|
+
*
|
|
3894
|
+
* The templates are the server's English, word for word: `{name}` is replaced
|
|
3895
|
+
* by `params.name`. The frontend's English messages are held equal to them by
|
|
3896
|
+
* a test, so switching to codes changes no English on screen.
|
|
3897
|
+
*
|
|
3898
|
+
* Validation a well-behaved client never triggers (malformed cursors, ids that
|
|
3899
|
+
* belong to someone else, DTO shape errors) has no code on purpose: it keeps
|
|
3900
|
+
* its English message and is not worth a translation.
|
|
3901
|
+
*/
|
|
3902
|
+
declare const API_ERROR_MESSAGES: {
|
|
3903
|
+
readonly ROUTINE_NOT_FOUND: "Routine not found";
|
|
3904
|
+
readonly ROUTINE_NOT_EDITABLE: "Routine not found or you do not have permission to edit it.";
|
|
3905
|
+
readonly ROUTINE_NOT_MODIFIABLE: "Routine not found or you do not have permission to modify it.";
|
|
3906
|
+
readonly ROUTINE_DAY_NOT_FOUND: "Routine day not found for this user/routine";
|
|
3907
|
+
readonly ROUTINE_EXERCISE_NOT_FOUND: "Exercise not found in this routine";
|
|
3908
|
+
readonly VERSION_NOT_FOUND: "Version not found";
|
|
3909
|
+
readonly ROUTINE_VERSION_NOT_FOUND: "Routine version not found";
|
|
3910
|
+
readonly TRAINING_BLOCK_NOT_FOUND: "Training block not found";
|
|
3911
|
+
readonly DELOAD_NOT_FOUND: "Deload not found";
|
|
3912
|
+
readonly WORKOUT_SESSION_NOT_FOUND: "Workout session not found";
|
|
3913
|
+
readonly SET_LOG_NOT_FOUND: "Set log not found";
|
|
3914
|
+
readonly SESSION_EXERCISE_NOT_FOUND: "That exercise is not part of this session";
|
|
3915
|
+
readonly USER_NOT_FOUND: "User not found";
|
|
3916
|
+
readonly MEMBER_NOT_FOUND: "Member not found";
|
|
3917
|
+
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
3918
|
+
readonly ACTIVITY_NOT_FOUND: "Activity entry not found";
|
|
3919
|
+
readonly COMMENT_NOT_FOUND: "Comment not found";
|
|
3920
|
+
readonly EXERCISE_NOT_FOUND: "Exercise not found";
|
|
3921
|
+
readonly REPORT_NOT_FOUND: "Report not found";
|
|
3922
|
+
readonly REPORT_SUBJECT_NOT_FOUND: "Subject not found";
|
|
3923
|
+
readonly REPORTED_CONTENT_GONE: "The reported content no longer exists";
|
|
3924
|
+
readonly SHARE_LINK_NOT_FOUND: "Share link not found";
|
|
3925
|
+
readonly LINK_NOT_FOUND: "Link not found";
|
|
3926
|
+
readonly SHARED_SESSION_NOT_FOUND: "Shared session not found";
|
|
3927
|
+
readonly SHARED_SCHEDULE_NOT_FOUND: "Shared schedule not found";
|
|
3928
|
+
readonly OVERRIDE_NOT_FOUND: "Override not found";
|
|
3929
|
+
readonly BODY_ENTRY_NOT_FOUND: "No entry on that date";
|
|
3930
|
+
readonly PARTNER_REQUEST_NOT_FOUND: "Training-partner request not found";
|
|
3931
|
+
readonly PARTNER_RELATIONSHIP_NOT_FOUND: "Training-partner relationship not found";
|
|
3932
|
+
readonly PARTNERSHIP_NOT_FOUND: "Training partnership not found";
|
|
3933
|
+
readonly NO_EXERCISE_PERFORMANCE: "No completed performance found for this exercise";
|
|
3934
|
+
readonly NO_STRENGTH_RECORDS: "No strength records found for this exercise";
|
|
3935
|
+
readonly NO_COMPLETED_SESSIONS_FOR_DAY: "No completed sessions found for this routine day";
|
|
3936
|
+
readonly ANALYTICS_NOT_READY: "Workout analytics projection is not ready";
|
|
3937
|
+
readonly ANALYTICS_REBUILDING: "Your training history is being rebuilt. Try again in a few minutes.";
|
|
3938
|
+
readonly ANALYTICS_SNAPSHOTS_PREPARING: "Historical snapshots are still being prepared; retry after analytics setup";
|
|
3939
|
+
readonly RATE_LIMITED: "ThrottlerException: Too Many Requests";
|
|
3940
|
+
readonly ROUTINE_DAYS_MAX: "A routine has at most {max} days";
|
|
3941
|
+
readonly ROUTINE_DAY_NAME_TOO_LONG: "Day names have at most {max} characters";
|
|
3942
|
+
readonly EXERCISE_GROUP_TOO_LARGE: "A superset or circuit has at most {max} exercises";
|
|
3943
|
+
readonly ROUTINE_ACTIVE_SESSION: "Finish the active session before changing the routine structure";
|
|
3944
|
+
readonly ROUTINE_SHARE_LINKS_MAX: "A routine keeps at most {max} active links.";
|
|
3945
|
+
readonly CLONE_SOURCE_REQUIRED: "SOURCE_REQUIRED: send either a share token or a routine id";
|
|
3946
|
+
readonly CLONE_UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE: an exercise in this routine is no longer in the catalog";
|
|
3947
|
+
readonly ROUTINE_VERSIONS_MAX: "A routine keeps at most {max} versions; delete one first";
|
|
3948
|
+
readonly ROUTINE_VERSION_EXERCISE_GONE: "An exercise in this version is no longer in the catalog";
|
|
3949
|
+
readonly ROUTINE_VERSION_NAME_TOO_LONG: "Version names have at most {max} characters";
|
|
3950
|
+
readonly TRAINING_BLOCKS_MAX: "A routine keeps at most {max} training blocks; delete a future block first";
|
|
3951
|
+
readonly TRAINING_BLOCK_REVISIONS_MAX: "A training block keeps at most {max} revisions";
|
|
3952
|
+
readonly TRAINING_BLOCK_COMPLETED: "A completed training block cannot change";
|
|
3953
|
+
readonly TRAINING_BLOCK_START_LOCKED: "The start date of an active training block cannot change";
|
|
3954
|
+
readonly TRAINING_BLOCK_END_IN_PAST: "An active training block cannot end before today";
|
|
3955
|
+
readonly TRAINING_BLOCK_ACTIVE_SESSION: "Finish the active session of this training block before revising it";
|
|
3956
|
+
readonly TRAINING_BLOCK_NOT_FUTURE: "Only a future training block can be deleted";
|
|
3957
|
+
readonly TRAINING_BLOCK_VERSION_EXERCISE_GONE: "An exercise in this version is no longer available";
|
|
3958
|
+
readonly TRAINING_BLOCK_NAME_REQUIRED: "Name is required";
|
|
3959
|
+
readonly TRAINING_BLOCK_NAME_TOO_LONG: "Name must be at most {max} characters";
|
|
3960
|
+
readonly TRAINING_BLOCK_ENDS_BEFORE_START: "The block ends before it starts";
|
|
3961
|
+
readonly TRAINING_BLOCK_OVERLAP: "Training blocks cannot overlap";
|
|
3962
|
+
readonly TRAINING_BLOCK_NOT_STARTED: "A training block that has not started has nothing to compare";
|
|
3963
|
+
readonly DELOAD_NOTHING_TO_LIGHTEN: "There is nothing to deload yet";
|
|
3964
|
+
readonly DELOAD_NOT_LIGHTER: "Those options leave every set as it is: choose a lighter load or fewer sets";
|
|
3965
|
+
readonly DELOAD_NOT_IN_PROGRESS: "Only a deload in progress can be ended early";
|
|
3966
|
+
readonly DELOAD_ALREADY_STARTED: "Only a deload that has not started can be cancelled";
|
|
3967
|
+
readonly DELOAD_ENDS_BEFORE_START: "The deload ends before it starts";
|
|
3968
|
+
readonly DELOAD_STARTS_IN_PAST: "A deload starts today or later";
|
|
3969
|
+
readonly DELOAD_TOO_LONG: "A deload lasts at most {max} days";
|
|
3970
|
+
readonly DELOAD_OVERLAP: "Deloads of one routine cannot overlap";
|
|
3971
|
+
readonly DELOAD_CROSSES_BLOCK: "A deload stays inside one plan: it cannot cross the start or end of a training block";
|
|
3972
|
+
readonly DELOAD_PLANNED_IN_RANGE: "A deload is planned in those dates; end or cancel it first";
|
|
3973
|
+
readonly DELOAD_LIGHTENS_BLOCK: "A deload lightens this training block; cancel it first";
|
|
3974
|
+
readonly SCHEDULE_NOT_WEEKLY: "Only weekly routines have dated workouts to change";
|
|
3975
|
+
readonly SCHEDULE_NOT_PLANNED: "The routine is not planned on that date";
|
|
3976
|
+
readonly SCHEDULE_SAME_DATE: "Choose a different date";
|
|
3977
|
+
readonly SCHEDULE_MOVE_TOO_FAR: "A workout moves at most {max} days";
|
|
3978
|
+
readonly SCHEDULE_PAST_MOVE: "Past workouts cannot be moved";
|
|
3979
|
+
readonly SCHEDULE_DATE_TAKEN: "That date already has a workout of this routine";
|
|
3980
|
+
readonly SCHEDULE_DATE_MOVED_INTO: "Another workout of this routine already moved to that date";
|
|
3981
|
+
readonly SCHEDULE_SKIP_TOO_OLD: "A workout can be marked skipped up to {max} days back";
|
|
3982
|
+
readonly SESSION_ALREADY_ACTIVE: "Active workout session already exists";
|
|
3983
|
+
readonly SESSION_DELOAD_IN_FORCE: "This routine is on a deload until {endDate}; start one of its days";
|
|
3984
|
+
readonly SESSION_DELOAD_NOT_IN_FORCE: "That deload is not in force today; start a day of the plan in force";
|
|
3985
|
+
readonly SESSION_BLOCK_IN_FORCE: "This routine follows the training block \"{name}\" until {endDate}; start one of its days";
|
|
3986
|
+
readonly SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine";
|
|
3987
|
+
readonly SESSION_FINISHED: "Cannot modify set logs for a finished session";
|
|
3988
|
+
readonly SESSION_ALREADY_FINISHED: "Session already finished with a different status";
|
|
3989
|
+
readonly EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets";
|
|
3990
|
+
readonly EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set";
|
|
3991
|
+
readonly PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed";
|
|
3992
|
+
readonly ONLY_LAST_EXTRA_SET_REMOVABLE: "Only the last added set can be removed";
|
|
3993
|
+
readonly SWAP_SESSION_NOT_ACTIVE: "Exercises can only be swapped in an active session";
|
|
3994
|
+
readonly SWAP_SETS_COMPLETED: "This exercise already has completed sets. Swap it before completing any.";
|
|
3995
|
+
readonly NOTES_DISCARDED_SESSION: "A discarded workout cannot take notes";
|
|
3996
|
+
readonly CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected";
|
|
3997
|
+
readonly CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected";
|
|
3998
|
+
readonly CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since";
|
|
3999
|
+
readonly CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed";
|
|
4000
|
+
readonly CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed";
|
|
4001
|
+
readonly CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg";
|
|
4002
|
+
readonly CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}";
|
|
4003
|
+
readonly CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}";
|
|
4004
|
+
readonly CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep";
|
|
4005
|
+
readonly CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way";
|
|
4006
|
+
readonly CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set";
|
|
4007
|
+
readonly SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share";
|
|
4008
|
+
readonly SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared";
|
|
4009
|
+
readonly SESSION_SHARE_LINKS_MAX: "A session can have at most {max} active share links";
|
|
4010
|
+
readonly EXERCISE_STARS_MAX: "You can star at most {max} exercises";
|
|
4011
|
+
readonly CUSTOM_EXERCISE_NAME_TAKEN: "NAME_TAKEN: you already have an exercise by that name, or the catalog does";
|
|
4012
|
+
readonly CUSTOM_EXERCISE_LIMIT_REACHED: "LIMIT_REACHED: you can keep up to {max} custom exercises, archived ones included";
|
|
4013
|
+
readonly CUSTOM_EXERCISE_NO_ROOM: "LIMIT_REACHED: this routine needs custom exercises you have no room for (up to {max})";
|
|
4014
|
+
readonly CUSTOM_EXERCISE_IN_USE: "IN_USE: a routine or a workout uses this exercise, so it can be archived but not deleted";
|
|
4015
|
+
readonly ACTIVITY_AUDIENCE_REQUIRED: "Choose an audience for at least one type";
|
|
4016
|
+
readonly COMMENT_LENGTH: "A comment must not be empty and may be at most {max} characters.";
|
|
4017
|
+
readonly COMMENTS_PER_DAY: "You can write at most {max} comments a day.";
|
|
4018
|
+
readonly REACTION_OWN_ACTIVITY: "You cannot react to your own activity";
|
|
4019
|
+
readonly REPORTS_PER_DAY: "You can file at most {max} reports a day.";
|
|
4020
|
+
readonly REPORTED_CONTENT_ALREADY_HIDDEN: "The reported content is already hidden";
|
|
4021
|
+
readonly REPORTED_CONTENT_NOT_HIDDEN: "The reported content is not hidden";
|
|
4022
|
+
readonly REPORT_ALREADY_REVIEWED: "This report has already been reviewed";
|
|
4023
|
+
readonly USERNAME_TAKEN: "Username is already taken";
|
|
4024
|
+
readonly USERNAME_RESERVED: "This username is reserved";
|
|
4025
|
+
readonly USERNAME_INVALID: "Username must be 3-30 characters, use letters, numbers, underscores or hyphens, and start and end with a letter or number";
|
|
4026
|
+
readonly FOLLOW_SELF: "You cannot follow yourself";
|
|
4027
|
+
readonly UNFOLLOW_SELF: "You cannot unfollow yourself";
|
|
4028
|
+
readonly BLOCK_SELF: "You cannot block yourself";
|
|
4029
|
+
readonly BLOCKS_MAX: "You can block at most {max} members.";
|
|
4030
|
+
readonly PARTNER_REQUEST_SELF: "You cannot send a training-partner request to yourself";
|
|
4031
|
+
readonly PARTNER_REQUESTS_PER_DAY: "You can send at most {max} training-partner requests per day.";
|
|
4032
|
+
readonly PARTNER_ALREADY_EXISTS: "A training-partner relationship already exists with this member.";
|
|
4033
|
+
readonly PARTNERS_MAX: "An account can have at most {max} training partners.";
|
|
4034
|
+
readonly ENCOURAGEMENTS_MAX: "You can send this partner at most {max} encouragements in 24 hours.";
|
|
4035
|
+
readonly ENCOURAGEMENT_RETRY: "Please retry the encouragement.";
|
|
4036
|
+
readonly ACCOUNT_CONFLICT: "Account conflict for this email";
|
|
4037
|
+
readonly ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.";
|
|
4038
|
+
readonly ACCOUNT_DELETE_MODERATOR: "A moderator account cannot be deleted while it holds moderator access.";
|
|
4039
|
+
readonly ACCOUNT_DELETE_UNAVAILABLE: "Your account could not be deleted right now. Nothing was removed; try again shortly.";
|
|
4040
|
+
readonly FEATURED_ITEM_UNAVAILABLE: "A featured item is not currently available to this account";
|
|
4041
|
+
readonly FEATURED_ITEMS_MAX: "Choose at most {max} featured items";
|
|
4042
|
+
readonly FEATURED_RANK_ONE: "Choose at most one featured rank";
|
|
4043
|
+
readonly TRAINING_LOCATION_DEFAULT: "Exactly one training location must be the default.";
|
|
4044
|
+
readonly TRAINING_LOCATION_NAMES_UNIQUE: "Training location names must be unique.";
|
|
4045
|
+
readonly PLATE_WEIGHTS_UNIQUE: "Plate weights must be unique within {name}.";
|
|
4046
|
+
readonly GOALS_MAX: "No more than {max} measurable goals are allowed";
|
|
4047
|
+
readonly GOAL_DUPLICATE: "Duplicate measurable goal";
|
|
4048
|
+
readonly GOAL_STRENGTH_NEEDS_EXERCISE: "Strength goals require an exercise";
|
|
4049
|
+
readonly BODY_ENTRY_IN_FUTURE: "An entry cannot be dated in the future";
|
|
4050
|
+
};
|
|
4051
|
+
type ApiErrorCode = keyof typeof API_ERROR_MESSAGES;
|
|
4052
|
+
declare const API_ERROR_CODES: readonly ApiErrorCode[];
|
|
4053
|
+
/** Values a template names, sent as they were substituted. */
|
|
4054
|
+
type ApiErrorParams = Record<string, string | number>;
|
|
4055
|
+
/**
|
|
4056
|
+
* The body of every error response. `code` and `params` are present only for
|
|
4057
|
+
* a refusal listed above; `message` is always the English sentence.
|
|
4058
|
+
*/
|
|
4059
|
+
interface ApiErrorBody {
|
|
4060
|
+
statusCode: number;
|
|
4061
|
+
message: string;
|
|
4062
|
+
code?: ApiErrorCode;
|
|
4063
|
+
params?: ApiErrorParams;
|
|
4064
|
+
timestamp?: string;
|
|
4065
|
+
path?: string;
|
|
4066
|
+
}
|
|
4067
|
+
declare function isApiErrorCode(value: unknown): value is ApiErrorCode;
|
|
4068
|
+
/** A template with its `{name}` placeholders filled from `params`. */
|
|
4069
|
+
declare function apiErrorMessage(code: ApiErrorCode, params?: ApiErrorParams): string;
|
|
4070
|
+
/**
|
|
4071
|
+
* What the server hands an exception constructor: Nest takes `message` as the
|
|
4072
|
+
* exception's own message and the error filter forwards `code` and `params`.
|
|
4073
|
+
*/
|
|
4074
|
+
declare function apiError(code: ApiErrorCode, params?: ApiErrorParams): {
|
|
4075
|
+
code: ApiErrorCode;
|
|
4076
|
+
message: string;
|
|
4077
|
+
params?: ApiErrorParams;
|
|
4078
|
+
};
|
|
4079
|
+
|
|
4080
|
+
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, COMEBACK_MIN_INACTIVE_DAYS, COMEBACK_RECOGNITION_LIMIT, COMEBACK_REQUIRED_ACTIVE_DAYS, COMEBACK_SESSION_LOOKBACK, COMEBACK_WINDOW_DAYS, CUSTOM_EXERCISES_MAX, CUSTOM_EXERCISE_NAME_MAX, CUSTOM_EXERCISE_NOTE_MAX, CUSTOM_EXERCISE_PROBLEM_MESSAGES, CUSTOM_EXERCISE_REFUSALS, type CalendarDate, type CloneRoutineRefusal, type CloneRoutineRequest, type ComebackActivity, type ComebackRecognition, type ComebackRecognitionSummary, 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, 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, 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, type IsoDateString, LIMITED_SHORTFALL_KG, type ListSessionsParams, MAX_SETS_PER_EXERCISE, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MINUTES_IN_DAY, MODERATION_ACTION_KINDS, MODERATION_HISTORY_PAGE_SIZE, MODERATION_NOTE_MAX_LENGTH, MODERATION_QUEUE_PAGE_SIZE, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MarkNotificationsReadRequest, type MarkNotificationsReadResponse, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MemberActivityResponse, type MemberModerationState, type MemberRoutinesResponse, 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, NOTIFICATIONS_LIST_LIMIT, NOTIFICATIONS_LOOKBACK_DAYS, NOTIFICATIONS_RETENTION_DAYS, NOTIFICATION_CATEGORIES, NOTIFICATION_KINDS, type NewFollowerNotification, type NotificationCategory, type NotificationKind, type NotificationPreferences, type NotificationPreferencesResponse, type NotificationsResponse, OTHER_WARM_UP_STEPS, 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, 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 RecentActivityEntry, 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 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 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, 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 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 SharedRoutineSource, type SharedRoutineSummary, type SharedSessionOwner, type SharedSessionRecap, type SkipOccurrenceRequest, type StarredExercise, type StarredExercisesResponse, 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 UpdateActivitySharingRequest, type UpdateCustomExerciseRequest, type UpdateDashboardLayoutRequest, type UpdateLocaleRequest, type UpdateNotificationPreferencesRequest, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpdateRoutineVisibilityRequest, type UpdateSessionNotesRequest, type UpdateSessionNotesResponse, type UpdateTrainingPartnerPermissionsRequest, type UpsertBodyMeasurementRequest, type UpsertRoutineTrainingBlockRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WarmUpEquipment, type WarmUpLoad, type WarmUpRamp, type WarmUpSet, type WarmUpStep, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutPeriod, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutSignal, type WorkoutStatsQuery, type WorkoutStatsResponse, accountExportFileName, apiError, apiErrorMessage, applyDeload, bodyMeasurementProblems, bodyProgressRangeStart, buildWarmUpRamp, calculatePlateLoading, canLinkToNext, countsAsWork, countsForProgression, customExerciseProblem, defaultWarmUpEquipment, deloadLengthDays, exerciseGroupLabel, exerciseGroupPosition, exerciseGroups, exerciseNameKey, followWorkingLoad, hasOversizedGroup, isApiErrorCode, isAppLocale, isBarLoaded, isBodyMeasurementDate, isDashboardSectionId, isDefaultDashboardLayout, isSetKind, isWithinQuietHours, latestBodyWeight, leadWorkingWeight, matchesDeletionConfirmation, normalizeDashboardLayout, normalizeExerciseLinks, normalizeExerciseName, primaryEquipment, requiredToFinish, resolveActiveTrainingBlock, resolveRoutinePlan, routineDayLabel, sessionCorrectionWindow, setKindOf, setLogValuesDiffer, summarizeBodyProgress, trainingBlockCovers, warmUpLoad };
|
package/dist/index.js
CHANGED
|
@@ -1243,6 +1243,189 @@ var ACCOUNT_EXPORT_VERSION = 1;
|
|
|
1243
1243
|
function accountExportFileName(username, exportedAt) {
|
|
1244
1244
|
return `sunnsteel-${username}-${exportedAt.slice(0, 10)}.json`;
|
|
1245
1245
|
}
|
|
1246
|
+
|
|
1247
|
+
// src/api-errors.ts
|
|
1248
|
+
var API_ERROR_MESSAGES = {
|
|
1249
|
+
// ── Not found ──────────────────────────────────────────────────────────
|
|
1250
|
+
ROUTINE_NOT_FOUND: "Routine not found",
|
|
1251
|
+
ROUTINE_NOT_EDITABLE: "Routine not found or you do not have permission to edit it.",
|
|
1252
|
+
ROUTINE_NOT_MODIFIABLE: "Routine not found or you do not have permission to modify it.",
|
|
1253
|
+
ROUTINE_DAY_NOT_FOUND: "Routine day not found for this user/routine",
|
|
1254
|
+
ROUTINE_EXERCISE_NOT_FOUND: "Exercise not found in this routine",
|
|
1255
|
+
VERSION_NOT_FOUND: "Version not found",
|
|
1256
|
+
ROUTINE_VERSION_NOT_FOUND: "Routine version not found",
|
|
1257
|
+
TRAINING_BLOCK_NOT_FOUND: "Training block not found",
|
|
1258
|
+
DELOAD_NOT_FOUND: "Deload not found",
|
|
1259
|
+
WORKOUT_SESSION_NOT_FOUND: "Workout session not found",
|
|
1260
|
+
SET_LOG_NOT_FOUND: "Set log not found",
|
|
1261
|
+
SESSION_EXERCISE_NOT_FOUND: "That exercise is not part of this session",
|
|
1262
|
+
USER_NOT_FOUND: "User not found",
|
|
1263
|
+
MEMBER_NOT_FOUND: "Member not found",
|
|
1264
|
+
ACCOUNT_NOT_FOUND: "Account not found",
|
|
1265
|
+
ACTIVITY_NOT_FOUND: "Activity entry not found",
|
|
1266
|
+
COMMENT_NOT_FOUND: "Comment not found",
|
|
1267
|
+
EXERCISE_NOT_FOUND: "Exercise not found",
|
|
1268
|
+
REPORT_NOT_FOUND: "Report not found",
|
|
1269
|
+
REPORT_SUBJECT_NOT_FOUND: "Subject not found",
|
|
1270
|
+
REPORTED_CONTENT_GONE: "The reported content no longer exists",
|
|
1271
|
+
SHARE_LINK_NOT_FOUND: "Share link not found",
|
|
1272
|
+
LINK_NOT_FOUND: "Link not found",
|
|
1273
|
+
SHARED_SESSION_NOT_FOUND: "Shared session not found",
|
|
1274
|
+
SHARED_SCHEDULE_NOT_FOUND: "Shared schedule not found",
|
|
1275
|
+
OVERRIDE_NOT_FOUND: "Override not found",
|
|
1276
|
+
BODY_ENTRY_NOT_FOUND: "No entry on that date",
|
|
1277
|
+
PARTNER_REQUEST_NOT_FOUND: "Training-partner request not found",
|
|
1278
|
+
PARTNER_RELATIONSHIP_NOT_FOUND: "Training-partner relationship not found",
|
|
1279
|
+
PARTNERSHIP_NOT_FOUND: "Training partnership not found",
|
|
1280
|
+
NO_EXERCISE_PERFORMANCE: "No completed performance found for this exercise",
|
|
1281
|
+
NO_STRENGTH_RECORDS: "No strength records found for this exercise",
|
|
1282
|
+
NO_COMPLETED_SESSIONS_FOR_DAY: "No completed sessions found for this routine day",
|
|
1283
|
+
// ── Training history being prepared ────────────────────────────────────
|
|
1284
|
+
ANALYTICS_NOT_READY: "Workout analytics projection is not ready",
|
|
1285
|
+
ANALYTICS_REBUILDING: "Your training history is being rebuilt. Try again in a few minutes.",
|
|
1286
|
+
ANALYTICS_SNAPSHOTS_PREPARING: "Historical snapshots are still being prepared; retry after analytics setup",
|
|
1287
|
+
RATE_LIMITED: "ThrottlerException: Too Many Requests",
|
|
1288
|
+
// ── Routines ───────────────────────────────────────────────────────────
|
|
1289
|
+
ROUTINE_DAYS_MAX: "A routine has at most {max} days",
|
|
1290
|
+
ROUTINE_DAY_NAME_TOO_LONG: "Day names have at most {max} characters",
|
|
1291
|
+
EXERCISE_GROUP_TOO_LARGE: "A superset or circuit has at most {max} exercises",
|
|
1292
|
+
ROUTINE_ACTIVE_SESSION: "Finish the active session before changing the routine structure",
|
|
1293
|
+
ROUTINE_SHARE_LINKS_MAX: "A routine keeps at most {max} active links.",
|
|
1294
|
+
CLONE_SOURCE_REQUIRED: "SOURCE_REQUIRED: send either a share token or a routine id",
|
|
1295
|
+
CLONE_UNKNOWN_EXERCISE: "UNKNOWN_EXERCISE: an exercise in this routine is no longer in the catalog",
|
|
1296
|
+
ROUTINE_VERSIONS_MAX: "A routine keeps at most {max} versions; delete one first",
|
|
1297
|
+
ROUTINE_VERSION_EXERCISE_GONE: "An exercise in this version is no longer in the catalog",
|
|
1298
|
+
ROUTINE_VERSION_NAME_TOO_LONG: "Version names have at most {max} characters",
|
|
1299
|
+
// ── Training blocks ────────────────────────────────────────────────────
|
|
1300
|
+
TRAINING_BLOCKS_MAX: "A routine keeps at most {max} training blocks; delete a future block first",
|
|
1301
|
+
TRAINING_BLOCK_REVISIONS_MAX: "A training block keeps at most {max} revisions",
|
|
1302
|
+
TRAINING_BLOCK_COMPLETED: "A completed training block cannot change",
|
|
1303
|
+
TRAINING_BLOCK_START_LOCKED: "The start date of an active training block cannot change",
|
|
1304
|
+
TRAINING_BLOCK_END_IN_PAST: "An active training block cannot end before today",
|
|
1305
|
+
TRAINING_BLOCK_ACTIVE_SESSION: "Finish the active session of this training block before revising it",
|
|
1306
|
+
TRAINING_BLOCK_NOT_FUTURE: "Only a future training block can be deleted",
|
|
1307
|
+
TRAINING_BLOCK_VERSION_EXERCISE_GONE: "An exercise in this version is no longer available",
|
|
1308
|
+
TRAINING_BLOCK_NAME_REQUIRED: "Name is required",
|
|
1309
|
+
TRAINING_BLOCK_NAME_TOO_LONG: "Name must be at most {max} characters",
|
|
1310
|
+
TRAINING_BLOCK_ENDS_BEFORE_START: "The block ends before it starts",
|
|
1311
|
+
TRAINING_BLOCK_OVERLAP: "Training blocks cannot overlap",
|
|
1312
|
+
TRAINING_BLOCK_NOT_STARTED: "A training block that has not started has nothing to compare",
|
|
1313
|
+
// ── Deloads ────────────────────────────────────────────────────────────
|
|
1314
|
+
DELOAD_NOTHING_TO_LIGHTEN: "There is nothing to deload yet",
|
|
1315
|
+
DELOAD_NOT_LIGHTER: "Those options leave every set as it is: choose a lighter load or fewer sets",
|
|
1316
|
+
DELOAD_NOT_IN_PROGRESS: "Only a deload in progress can be ended early",
|
|
1317
|
+
DELOAD_ALREADY_STARTED: "Only a deload that has not started can be cancelled",
|
|
1318
|
+
DELOAD_ENDS_BEFORE_START: "The deload ends before it starts",
|
|
1319
|
+
DELOAD_STARTS_IN_PAST: "A deload starts today or later",
|
|
1320
|
+
DELOAD_TOO_LONG: "A deload lasts at most {max} days",
|
|
1321
|
+
DELOAD_OVERLAP: "Deloads of one routine cannot overlap",
|
|
1322
|
+
DELOAD_CROSSES_BLOCK: "A deload stays inside one plan: it cannot cross the start or end of a training block",
|
|
1323
|
+
DELOAD_PLANNED_IN_RANGE: "A deload is planned in those dates; end or cancel it first",
|
|
1324
|
+
DELOAD_LIGHTENS_BLOCK: "A deload lightens this training block; cancel it first",
|
|
1325
|
+
// ── Schedule ───────────────────────────────────────────────────────────
|
|
1326
|
+
SCHEDULE_NOT_WEEKLY: "Only weekly routines have dated workouts to change",
|
|
1327
|
+
SCHEDULE_NOT_PLANNED: "The routine is not planned on that date",
|
|
1328
|
+
SCHEDULE_SAME_DATE: "Choose a different date",
|
|
1329
|
+
SCHEDULE_MOVE_TOO_FAR: "A workout moves at most {max} days",
|
|
1330
|
+
SCHEDULE_PAST_MOVE: "Past workouts cannot be moved",
|
|
1331
|
+
SCHEDULE_DATE_TAKEN: "That date already has a workout of this routine",
|
|
1332
|
+
SCHEDULE_DATE_MOVED_INTO: "Another workout of this routine already moved to that date",
|
|
1333
|
+
SCHEDULE_SKIP_TOO_OLD: "A workout can be marked skipped up to {max} days back",
|
|
1334
|
+
// ── Starting and logging a workout ─────────────────────────────────────
|
|
1335
|
+
SESSION_ALREADY_ACTIVE: "Active workout session already exists",
|
|
1336
|
+
SESSION_DELOAD_IN_FORCE: "This routine is on a deload until {endDate}; start one of its days",
|
|
1337
|
+
SESSION_DELOAD_NOT_IN_FORCE: "That deload is not in force today; start a day of the plan in force",
|
|
1338
|
+
SESSION_BLOCK_IN_FORCE: 'This routine follows the training block "{name}" until {endDate}; start one of its days',
|
|
1339
|
+
SESSION_BLOCK_NOT_IN_FORCE: "That training block is not in force today; start a day of the routine",
|
|
1340
|
+
SESSION_FINISHED: "Cannot modify set logs for a finished session",
|
|
1341
|
+
SESSION_ALREADY_FINISHED: "Session already finished with a different status",
|
|
1342
|
+
EXTRA_SETS_MAX: "An exercise can take at most {max} extra sets",
|
|
1343
|
+
EXTRA_SET_NOT_NEXT: "Extra sets are added after the last set",
|
|
1344
|
+
PRESCRIBED_SET_NOT_REMOVABLE: "A prescribed set cannot be removed",
|
|
1345
|
+
ONLY_LAST_EXTRA_SET_REMOVABLE: "Only the last added set can be removed",
|
|
1346
|
+
SWAP_SESSION_NOT_ACTIVE: "Exercises can only be swapped in an active session",
|
|
1347
|
+
SWAP_SETS_COMPLETED: "This exercise already has completed sets. Swap it before completing any.",
|
|
1348
|
+
NOTES_DISCARDED_SESSION: "A discarded workout cannot take notes",
|
|
1349
|
+
// ── Corrections (LIVE-17) ──────────────────────────────────────────────
|
|
1350
|
+
CORRECTION_NOT_COMPLETED: "Only a completed workout can be corrected",
|
|
1351
|
+
CORRECTION_NOT_LATEST: "Only your most recent workout can be corrected",
|
|
1352
|
+
CORRECTION_LATER_SESSION: "This workout can no longer be corrected: another one has started since",
|
|
1353
|
+
CORRECTION_WINDOW_PASSED: "This workout can no longer be corrected: the correction window has passed",
|
|
1354
|
+
CORRECTION_LIMIT_REACHED: "This workout has been corrected as many times as allowed",
|
|
1355
|
+
CORRECTION_WEIGHT_RANGE: "Weight must be between 0 and {max} kg",
|
|
1356
|
+
CORRECTION_REPS_RANGE: "Reps must be a whole number between 0 and {max}",
|
|
1357
|
+
CORRECTION_RPE_RANGE: "RPE must be between {min} and {max}",
|
|
1358
|
+
CORRECTION_COMPLETED_NEEDS_REP: "A completed set needs at least one rep",
|
|
1359
|
+
CORRECTION_NOTHING_TO_CORRECT: "Nothing to correct: every set already reads that way",
|
|
1360
|
+
CORRECTION_KEEPS_ONE_SET: "A finished workout keeps at least one completed set",
|
|
1361
|
+
// ── Sharing a workout ──────────────────────────────────────────────────
|
|
1362
|
+
SESSION_SHARE_NOTHING_CHOSEN: "Choose at least one part of the recap to share",
|
|
1363
|
+
SESSION_SHARE_NOT_COMPLETED: "Only completed sessions can be shared",
|
|
1364
|
+
SESSION_SHARE_LINKS_MAX: "A session can have at most {max} active share links",
|
|
1365
|
+
// ── Exercises ──────────────────────────────────────────────────────────
|
|
1366
|
+
EXERCISE_STARS_MAX: "You can star at most {max} exercises",
|
|
1367
|
+
CUSTOM_EXERCISE_NAME_TAKEN: "NAME_TAKEN: you already have an exercise by that name, or the catalog does",
|
|
1368
|
+
CUSTOM_EXERCISE_LIMIT_REACHED: "LIMIT_REACHED: you can keep up to {max} custom exercises, archived ones included",
|
|
1369
|
+
CUSTOM_EXERCISE_NO_ROOM: "LIMIT_REACHED: this routine needs custom exercises you have no room for (up to {max})",
|
|
1370
|
+
CUSTOM_EXERCISE_IN_USE: "IN_USE: a routine or a workout uses this exercise, so it can be archived but not deleted",
|
|
1371
|
+
// ── Activity and moderation ────────────────────────────────────────────
|
|
1372
|
+
ACTIVITY_AUDIENCE_REQUIRED: "Choose an audience for at least one type",
|
|
1373
|
+
COMMENT_LENGTH: "A comment must not be empty and may be at most {max} characters.",
|
|
1374
|
+
COMMENTS_PER_DAY: "You can write at most {max} comments a day.",
|
|
1375
|
+
REACTION_OWN_ACTIVITY: "You cannot react to your own activity",
|
|
1376
|
+
REPORTS_PER_DAY: "You can file at most {max} reports a day.",
|
|
1377
|
+
REPORTED_CONTENT_ALREADY_HIDDEN: "The reported content is already hidden",
|
|
1378
|
+
REPORTED_CONTENT_NOT_HIDDEN: "The reported content is not hidden",
|
|
1379
|
+
REPORT_ALREADY_REVIEWED: "This report has already been reviewed",
|
|
1380
|
+
// ── Members, partners and blocks ───────────────────────────────────────
|
|
1381
|
+
USERNAME_TAKEN: "Username is already taken",
|
|
1382
|
+
USERNAME_RESERVED: "This username is reserved",
|
|
1383
|
+
USERNAME_INVALID: "Username must be 3-30 characters, use letters, numbers, underscores or hyphens, and start and end with a letter or number",
|
|
1384
|
+
FOLLOW_SELF: "You cannot follow yourself",
|
|
1385
|
+
UNFOLLOW_SELF: "You cannot unfollow yourself",
|
|
1386
|
+
BLOCK_SELF: "You cannot block yourself",
|
|
1387
|
+
BLOCKS_MAX: "You can block at most {max} members.",
|
|
1388
|
+
PARTNER_REQUEST_SELF: "You cannot send a training-partner request to yourself",
|
|
1389
|
+
PARTNER_REQUESTS_PER_DAY: "You can send at most {max} training-partner requests per day.",
|
|
1390
|
+
PARTNER_ALREADY_EXISTS: "A training-partner relationship already exists with this member.",
|
|
1391
|
+
PARTNERS_MAX: "An account can have at most {max} training partners.",
|
|
1392
|
+
ENCOURAGEMENTS_MAX: "You can send this partner at most {max} encouragements in 24 hours.",
|
|
1393
|
+
ENCOURAGEMENT_RETRY: "Please retry the encouragement.",
|
|
1394
|
+
// ── Account and settings ───────────────────────────────────────────────
|
|
1395
|
+
ACCOUNT_CONFLICT: "Account conflict for this email",
|
|
1396
|
+
ACCOUNT_DELETE_CONFIRMATION: "Type your username exactly as it appears to confirm.",
|
|
1397
|
+
ACCOUNT_DELETE_MODERATOR: "A moderator account cannot be deleted while it holds moderator access.",
|
|
1398
|
+
ACCOUNT_DELETE_UNAVAILABLE: "Your account could not be deleted right now. Nothing was removed; try again shortly.",
|
|
1399
|
+
FEATURED_ITEM_UNAVAILABLE: "A featured item is not currently available to this account",
|
|
1400
|
+
FEATURED_ITEMS_MAX: "Choose at most {max} featured items",
|
|
1401
|
+
FEATURED_RANK_ONE: "Choose at most one featured rank",
|
|
1402
|
+
TRAINING_LOCATION_DEFAULT: "Exactly one training location must be the default.",
|
|
1403
|
+
TRAINING_LOCATION_NAMES_UNIQUE: "Training location names must be unique.",
|
|
1404
|
+
PLATE_WEIGHTS_UNIQUE: "Plate weights must be unique within {name}.",
|
|
1405
|
+
GOALS_MAX: "No more than {max} measurable goals are allowed",
|
|
1406
|
+
GOAL_DUPLICATE: "Duplicate measurable goal",
|
|
1407
|
+
GOAL_STRENGTH_NEEDS_EXERCISE: "Strength goals require an exercise",
|
|
1408
|
+
BODY_ENTRY_IN_FUTURE: "An entry cannot be dated in the future"
|
|
1409
|
+
};
|
|
1410
|
+
var API_ERROR_CODES = Object.keys(
|
|
1411
|
+
API_ERROR_MESSAGES
|
|
1412
|
+
);
|
|
1413
|
+
function isApiErrorCode(value) {
|
|
1414
|
+
return typeof value === "string" && Object.prototype.hasOwnProperty.call(API_ERROR_MESSAGES, value);
|
|
1415
|
+
}
|
|
1416
|
+
function apiErrorMessage(code, params = {}) {
|
|
1417
|
+
return API_ERROR_MESSAGES[code].replace(
|
|
1418
|
+
/\{(\w+)\}/g,
|
|
1419
|
+
(whole, name) => Object.prototype.hasOwnProperty.call(params, name) ? String(params[name]) : whole
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
function apiError(code, params) {
|
|
1423
|
+
return {
|
|
1424
|
+
code,
|
|
1425
|
+
message: apiErrorMessage(code, params),
|
|
1426
|
+
...params ? { params } : {}
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1246
1429
|
export {
|
|
1247
1430
|
ACCOUNT_EXPORT_FORMAT,
|
|
1248
1431
|
ACCOUNT_EXPORT_VERSION,
|
|
@@ -1261,6 +1444,8 @@ export {
|
|
|
1261
1444
|
ACTIVITY_REACTIONS,
|
|
1262
1445
|
ACTIVITY_TYPES,
|
|
1263
1446
|
ACTIVITY_TYPE_SECTIONS,
|
|
1447
|
+
API_ERROR_CODES,
|
|
1448
|
+
API_ERROR_MESSAGES,
|
|
1264
1449
|
BAR_CHOICES_KG,
|
|
1265
1450
|
BAR_WARM_UP_STEPS,
|
|
1266
1451
|
BLOCKED_MEMBERS_MAX,
|
|
@@ -1420,6 +1605,8 @@ export {
|
|
|
1420
1605
|
WEIGHT_UNITS,
|
|
1421
1606
|
WORKOUT_SESSION_STATUSES,
|
|
1422
1607
|
accountExportFileName,
|
|
1608
|
+
apiError,
|
|
1609
|
+
apiErrorMessage,
|
|
1423
1610
|
applyDeload,
|
|
1424
1611
|
bodyMeasurementProblems,
|
|
1425
1612
|
bodyProgressRangeStart,
|
|
@@ -1437,6 +1624,7 @@ export {
|
|
|
1437
1624
|
exerciseNameKey,
|
|
1438
1625
|
followWorkingLoad,
|
|
1439
1626
|
hasOversizedGroup,
|
|
1627
|
+
isApiErrorCode,
|
|
1440
1628
|
isAppLocale,
|
|
1441
1629
|
isBarLoaded,
|
|
1442
1630
|
isBodyMeasurementDate,
|
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.77.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
|
+
}
|