@sunsteel/contracts 0.29.0 → 0.30.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 +46 -0
- package/dist/index.d.cts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +45 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,6 +44,7 @@ __export(index_exports, {
|
|
|
44
44
|
RELATIONSHIP_LIST_DEFAULT_LIMIT: () => RELATIONSHIP_LIST_DEFAULT_LIMIT,
|
|
45
45
|
RELATIONSHIP_LIST_KINDS: () => RELATIONSHIP_LIST_KINDS,
|
|
46
46
|
RELATIONSHIP_LIST_MAX_LIMIT: () => RELATIONSHIP_LIST_MAX_LIMIT,
|
|
47
|
+
RENAISSANCE_RANK_DEFINITIONS: () => RENAISSANCE_RANK_DEFINITIONS,
|
|
47
48
|
REP_TYPES: () => REP_TYPES,
|
|
48
49
|
RESERVED_USERNAMES: () => RESERVED_USERNAMES,
|
|
49
50
|
SESSION_SHARE_DEFAULT_FIELDS: () => SESSION_SHARE_DEFAULT_FIELDS,
|
|
@@ -294,6 +295,50 @@ var ACHIEVEMENT_DEFINITIONS = ACHIEVEMENT_CATEGORIES.flatMap(
|
|
|
294
295
|
description: descriptionFor(category, threshold)
|
|
295
296
|
}))
|
|
296
297
|
);
|
|
298
|
+
var RENAISSANCE_RANK_DEFINITIONS = [
|
|
299
|
+
{
|
|
300
|
+
id: "INITIATE",
|
|
301
|
+
title: "Initiate",
|
|
302
|
+
description: "Your place in the training ledger begins here.",
|
|
303
|
+
minimumSessions: 0,
|
|
304
|
+
minimumActiveWeeks: 0
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
id: "APPRENTICE",
|
|
308
|
+
title: "Apprentice",
|
|
309
|
+
description: "Learning the craft through regular practice.",
|
|
310
|
+
minimumSessions: 5,
|
|
311
|
+
minimumActiveWeeks: 3
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: "ARTISAN",
|
|
315
|
+
title: "Artisan",
|
|
316
|
+
description: "Building a dependable training practice.",
|
|
317
|
+
minimumSessions: 15,
|
|
318
|
+
minimumActiveWeeks: 8
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
id: "MAESTRO",
|
|
322
|
+
title: "Maestro",
|
|
323
|
+
description: "Sustaining purposeful work across many weeks.",
|
|
324
|
+
minimumSessions: 30,
|
|
325
|
+
minimumActiveWeeks: 16
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: "VIRTUOSO",
|
|
329
|
+
title: "Virtuoso",
|
|
330
|
+
description: "Showing enduring discipline through repeated seasons.",
|
|
331
|
+
minimumSessions: 60,
|
|
332
|
+
minimumActiveWeeks: 32
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: "LAUREATE",
|
|
336
|
+
title: "Laureate",
|
|
337
|
+
description: "A lasting training practice recorded in the ledger.",
|
|
338
|
+
minimumSessions: 100,
|
|
339
|
+
minimumActiveWeeks: 52
|
|
340
|
+
}
|
|
341
|
+
];
|
|
297
342
|
|
|
298
343
|
// src/workout.ts
|
|
299
344
|
var SESSION_SHARE_FIELDS = [
|
|
@@ -350,6 +395,7 @@ var PROGRESS_TIMELINE_EVENT_TYPES = [
|
|
|
350
395
|
RELATIONSHIP_LIST_DEFAULT_LIMIT,
|
|
351
396
|
RELATIONSHIP_LIST_KINDS,
|
|
352
397
|
RELATIONSHIP_LIST_MAX_LIMIT,
|
|
398
|
+
RENAISSANCE_RANK_DEFINITIONS,
|
|
353
399
|
REP_TYPES,
|
|
354
400
|
RESERVED_USERNAMES,
|
|
355
401
|
SESSION_SHARE_DEFAULT_FIELDS,
|
package/dist/index.d.cts
CHANGED
|
@@ -949,12 +949,70 @@ interface EarnedAchievement extends AchievementDefinition {
|
|
|
949
949
|
/** True when existing verified history was recognized after ACH-01 shipped. */
|
|
950
950
|
backfilled: boolean;
|
|
951
951
|
}
|
|
952
|
+
interface RenaissanceRankDefinition {
|
|
953
|
+
id: 'INITIATE' | 'APPRENTICE' | 'ARTISAN' | 'MAESTRO' | 'VIRTUOSO' | 'LAUREATE';
|
|
954
|
+
title: string;
|
|
955
|
+
description: string;
|
|
956
|
+
minimumSessions: number;
|
|
957
|
+
minimumActiveWeeks: number;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Stable rank ladder. Both requirements are intentionally based on attendance:
|
|
961
|
+
* completed sessions reward participation, while distinct active weeks reward
|
|
962
|
+
* consistency without encouraging consecutive-day training.
|
|
963
|
+
*/
|
|
964
|
+
declare const RENAISSANCE_RANK_DEFINITIONS: readonly [{
|
|
965
|
+
readonly id: "INITIATE";
|
|
966
|
+
readonly title: "Initiate";
|
|
967
|
+
readonly description: "Your place in the training ledger begins here.";
|
|
968
|
+
readonly minimumSessions: 0;
|
|
969
|
+
readonly minimumActiveWeeks: 0;
|
|
970
|
+
}, {
|
|
971
|
+
readonly id: "APPRENTICE";
|
|
972
|
+
readonly title: "Apprentice";
|
|
973
|
+
readonly description: "Learning the craft through regular practice.";
|
|
974
|
+
readonly minimumSessions: 5;
|
|
975
|
+
readonly minimumActiveWeeks: 3;
|
|
976
|
+
}, {
|
|
977
|
+
readonly id: "ARTISAN";
|
|
978
|
+
readonly title: "Artisan";
|
|
979
|
+
readonly description: "Building a dependable training practice.";
|
|
980
|
+
readonly minimumSessions: 15;
|
|
981
|
+
readonly minimumActiveWeeks: 8;
|
|
982
|
+
}, {
|
|
983
|
+
readonly id: "MAESTRO";
|
|
984
|
+
readonly title: "Maestro";
|
|
985
|
+
readonly description: "Sustaining purposeful work across many weeks.";
|
|
986
|
+
readonly minimumSessions: 30;
|
|
987
|
+
readonly minimumActiveWeeks: 16;
|
|
988
|
+
}, {
|
|
989
|
+
readonly id: "VIRTUOSO";
|
|
990
|
+
readonly title: "Virtuoso";
|
|
991
|
+
readonly description: "Showing enduring discipline through repeated seasons.";
|
|
992
|
+
readonly minimumSessions: 60;
|
|
993
|
+
readonly minimumActiveWeeks: 32;
|
|
994
|
+
}, {
|
|
995
|
+
readonly id: "LAUREATE";
|
|
996
|
+
readonly title: "Laureate";
|
|
997
|
+
readonly description: "A lasting training practice recorded in the ledger.";
|
|
998
|
+
readonly minimumSessions: 100;
|
|
999
|
+
readonly minimumActiveWeeks: 52;
|
|
1000
|
+
}];
|
|
1001
|
+
interface RenaissanceRankProgress {
|
|
1002
|
+
currentRank: RenaissanceRankDefinition;
|
|
1003
|
+
nextRank: RenaissanceRankDefinition | null;
|
|
1004
|
+
completedSessions: number;
|
|
1005
|
+
activeWeeks: number;
|
|
1006
|
+
sessionsRemaining: number;
|
|
1007
|
+
activeWeeksRemaining: number;
|
|
1008
|
+
}
|
|
952
1009
|
/** Stable successful response of GET /achievements. */
|
|
953
1010
|
interface AchievementsResponse {
|
|
954
1011
|
analyticsReady: boolean;
|
|
955
1012
|
earnedCount: number;
|
|
956
1013
|
availableCount: number;
|
|
957
1014
|
achievements: EarnedAchievement[];
|
|
1015
|
+
rank: RenaissanceRankProgress | null;
|
|
958
1016
|
}
|
|
959
1017
|
|
|
960
1018
|
interface RoutineSet {
|
|
@@ -1021,4 +1079,4 @@ interface CreateRoutineRequest {
|
|
|
1021
1079
|
}
|
|
1022
1080
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
1023
1081
|
|
|
1024
|
-
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementDefinition, type AchievementUnlockedEventPayload, type AchievementsResponse, type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateSessionShareRequest, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RepType, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionExerciseSubstitution, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetLog, type Sex, type SharedSessionOwner, type SharedSessionRecap, type StartWorkoutRequest, type StartWorkoutResponse, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
|
1082
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementDefinition, type AchievementUnlockedEventPayload, type AchievementsResponse, type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateSessionShareRequest, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionExerciseSubstitution, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetLog, type Sex, type SharedSessionOwner, type SharedSessionRecap, type StartWorkoutRequest, type StartWorkoutResponse, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -949,12 +949,70 @@ interface EarnedAchievement extends AchievementDefinition {
|
|
|
949
949
|
/** True when existing verified history was recognized after ACH-01 shipped. */
|
|
950
950
|
backfilled: boolean;
|
|
951
951
|
}
|
|
952
|
+
interface RenaissanceRankDefinition {
|
|
953
|
+
id: 'INITIATE' | 'APPRENTICE' | 'ARTISAN' | 'MAESTRO' | 'VIRTUOSO' | 'LAUREATE';
|
|
954
|
+
title: string;
|
|
955
|
+
description: string;
|
|
956
|
+
minimumSessions: number;
|
|
957
|
+
minimumActiveWeeks: number;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Stable rank ladder. Both requirements are intentionally based on attendance:
|
|
961
|
+
* completed sessions reward participation, while distinct active weeks reward
|
|
962
|
+
* consistency without encouraging consecutive-day training.
|
|
963
|
+
*/
|
|
964
|
+
declare const RENAISSANCE_RANK_DEFINITIONS: readonly [{
|
|
965
|
+
readonly id: "INITIATE";
|
|
966
|
+
readonly title: "Initiate";
|
|
967
|
+
readonly description: "Your place in the training ledger begins here.";
|
|
968
|
+
readonly minimumSessions: 0;
|
|
969
|
+
readonly minimumActiveWeeks: 0;
|
|
970
|
+
}, {
|
|
971
|
+
readonly id: "APPRENTICE";
|
|
972
|
+
readonly title: "Apprentice";
|
|
973
|
+
readonly description: "Learning the craft through regular practice.";
|
|
974
|
+
readonly minimumSessions: 5;
|
|
975
|
+
readonly minimumActiveWeeks: 3;
|
|
976
|
+
}, {
|
|
977
|
+
readonly id: "ARTISAN";
|
|
978
|
+
readonly title: "Artisan";
|
|
979
|
+
readonly description: "Building a dependable training practice.";
|
|
980
|
+
readonly minimumSessions: 15;
|
|
981
|
+
readonly minimumActiveWeeks: 8;
|
|
982
|
+
}, {
|
|
983
|
+
readonly id: "MAESTRO";
|
|
984
|
+
readonly title: "Maestro";
|
|
985
|
+
readonly description: "Sustaining purposeful work across many weeks.";
|
|
986
|
+
readonly minimumSessions: 30;
|
|
987
|
+
readonly minimumActiveWeeks: 16;
|
|
988
|
+
}, {
|
|
989
|
+
readonly id: "VIRTUOSO";
|
|
990
|
+
readonly title: "Virtuoso";
|
|
991
|
+
readonly description: "Showing enduring discipline through repeated seasons.";
|
|
992
|
+
readonly minimumSessions: 60;
|
|
993
|
+
readonly minimumActiveWeeks: 32;
|
|
994
|
+
}, {
|
|
995
|
+
readonly id: "LAUREATE";
|
|
996
|
+
readonly title: "Laureate";
|
|
997
|
+
readonly description: "A lasting training practice recorded in the ledger.";
|
|
998
|
+
readonly minimumSessions: 100;
|
|
999
|
+
readonly minimumActiveWeeks: 52;
|
|
1000
|
+
}];
|
|
1001
|
+
interface RenaissanceRankProgress {
|
|
1002
|
+
currentRank: RenaissanceRankDefinition;
|
|
1003
|
+
nextRank: RenaissanceRankDefinition | null;
|
|
1004
|
+
completedSessions: number;
|
|
1005
|
+
activeWeeks: number;
|
|
1006
|
+
sessionsRemaining: number;
|
|
1007
|
+
activeWeeksRemaining: number;
|
|
1008
|
+
}
|
|
952
1009
|
/** Stable successful response of GET /achievements. */
|
|
953
1010
|
interface AchievementsResponse {
|
|
954
1011
|
analyticsReady: boolean;
|
|
955
1012
|
earnedCount: number;
|
|
956
1013
|
availableCount: number;
|
|
957
1014
|
achievements: EarnedAchievement[];
|
|
1015
|
+
rank: RenaissanceRankProgress | null;
|
|
958
1016
|
}
|
|
959
1017
|
|
|
960
1018
|
interface RoutineSet {
|
|
@@ -1021,4 +1079,4 @@ interface CreateRoutineRequest {
|
|
|
1021
1079
|
}
|
|
1022
1080
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
1023
1081
|
|
|
1024
|
-
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementDefinition, type AchievementUnlockedEventPayload, type AchievementsResponse, type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateSessionShareRequest, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RepType, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionExerciseSubstitution, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetLog, type Sex, type SharedSessionOwner, type SharedSessionRecap, type StartWorkoutRequest, type StartWorkoutResponse, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
|
1082
|
+
export { ACHIEVEMENT_CATEGORIES, ACHIEVEMENT_DEFINITIONS, type AchievementCategory, type AchievementDefinition, type AchievementUnlockedEventPayload, type AchievementsResponse, type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateSessionShareRequest, EXERCISE_EQUIPMENT, EXERCISE_MECHANICS, type EarnedAchievement, type EarnedPersonalRecord, type Exercise, type ExerciseEquipment, type ExerciseId, type ExerciseMechanic, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, FOLLOW_SUGGESTIONS_DEFAULT_LIMIT, FOLLOW_SUGGESTIONS_MAX_LIMIT, FOLLOW_SUGGESTION_REASONS, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type FollowSuggestion, type FollowSuggestionReason, type FollowSuggestionsResponse, type IsoDateString, type ListSessionsParams, MEASURABLE_GOALS_MAX, MEASURABLE_GOAL_DIRECTIONS, MEASURABLE_GOAL_TYPES, MOVEMENT_PATTERNS, MUSCLE_GROUPS, type MeasurableGoal, type MeasurableGoalDirection, type MeasurableGoalExercise, type MeasurableGoalInput, type MeasurableGoalType, type MovementPattern, type MuscleGroup, type MuscleGroupHeatmapQuery, type MuscleGroupHeatmapResponse, type MuscleGroupHeatmapValue, type MuscleGroupHeatmapWeek, type MuscleVolumeTrendSeries, PREFERRED_TRAINING_STYLE_VALUES, PROFILE_BIO_MAX_LENGTH, PROFILE_FAVORITE_EXERCISES_MAX, PROFILE_LOCATION_MAX_LENGTH, PROFILE_TRAINING_DISCIPLINES_MAX, PROFILE_TRAINING_GOALS_MAX, PROFILE_VISIBILITY_VALUES, PROGRESSION_SCHEMES, PROGRESS_TIMELINE_EVENT_TYPES, type PaginatedResponse, type PersonalGoalProgress, type PersonalGoalsResponse, type PersonalRecordEntry, type PersonalRecordKind, type PlatePairInventory, type PreferredTrainingStyle, type PreviousPerformanceResponse, type PreviousSessionRecap, type PreviousSetPerformance, type ProfileDiscoverySettings, type ProfileFavoriteExercise, type ProfilePrivacySettings, type ProfileViewerAccess, type ProfileVisibility, type ProgressTimelineEventType, type ProgressTimelineItem, type ProgressTimelinePersonalRecordItem, type ProgressTimelineProgressionItem, type ProgressTimelineQuery, type ProgressTimelineRecordPerformance, type ProgressTimelineRecordReason, type ProgressTimelineResponse, type ProgressTimelineSessionContext, type ProgressionChange, type ProgressionRule, type ProgressionScheme, type ProgressionSetChange, type PublicBodyMetrics, type PublicTrainingSummary, type PublicUserProfile, RELATIONSHIP_LIST_DEFAULT_LIMIT, RELATIONSHIP_LIST_KINDS, RELATIONSHIP_LIST_MAX_LIMIT, RENAISSANCE_RANK_DEFINITIONS, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RelationshipListKind, type RelationshipListQuery, type RelationshipListResponse, type RelationshipMember, type RenaissanceRankDefinition, type RenaissanceRankProgress, type RepType, type ReplaceMeasurableGoalsRequest, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SESSION_SHARE_DEFAULT_FIELDS, SESSION_SHARE_FIELDS, SESSION_SHARE_MAX_ACTIVE_LINKS, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionExerciseSubstitution, type SessionRecapRecord, type SessionShare, type SessionShareField, type SessionShareListResponse, type SetAccountTimeZoneRequest, type SetLog, type Sex, type SharedSessionOwner, type SharedSessionRecap, type StartWorkoutRequest, type StartWorkoutResponse, type StreakMilestoneEventPayload, type SubstituteSessionExerciseRequest, type SubstituteSessionExerciseResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TRAINING_DISCIPLINE_VALUES, TRAINING_EVENT_TYPES, TRAINING_EXPERIENCE_LEVEL_VALUES, TRAINING_GOAL_VALUES, type TrainingDiscipline, type TrainingEventType, type TrainingExperienceLevel, type TrainingGoal, type TrainingIdentity, type TrainingLocationPreference, type TrainingLocationPreferenceInput, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, type UpdateProfileDiscoveryRequest, type UpdateProfilePrivacyRequest, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UpsertSetLogResponse, type UserId, type UserProfile, type UserSearchResponse, type VolumeTrendPoint, type VolumeTrendQuery, type VolumeTrendResponse, type VolumeTrendSeries, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutAnalyticsStatus, type WorkoutProgressQuery, type WorkoutProgressResponse, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionRecap, type WorkoutSessionSnapshotV1, type WorkoutSessionStatus, type WorkoutSessionSummary, type WorkoutStatsQuery, type WorkoutStatsResponse };
|
package/dist/index.js
CHANGED
|
@@ -230,6 +230,50 @@ var ACHIEVEMENT_DEFINITIONS = ACHIEVEMENT_CATEGORIES.flatMap(
|
|
|
230
230
|
description: descriptionFor(category, threshold)
|
|
231
231
|
}))
|
|
232
232
|
);
|
|
233
|
+
var RENAISSANCE_RANK_DEFINITIONS = [
|
|
234
|
+
{
|
|
235
|
+
id: "INITIATE",
|
|
236
|
+
title: "Initiate",
|
|
237
|
+
description: "Your place in the training ledger begins here.",
|
|
238
|
+
minimumSessions: 0,
|
|
239
|
+
minimumActiveWeeks: 0
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: "APPRENTICE",
|
|
243
|
+
title: "Apprentice",
|
|
244
|
+
description: "Learning the craft through regular practice.",
|
|
245
|
+
minimumSessions: 5,
|
|
246
|
+
minimumActiveWeeks: 3
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: "ARTISAN",
|
|
250
|
+
title: "Artisan",
|
|
251
|
+
description: "Building a dependable training practice.",
|
|
252
|
+
minimumSessions: 15,
|
|
253
|
+
minimumActiveWeeks: 8
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
id: "MAESTRO",
|
|
257
|
+
title: "Maestro",
|
|
258
|
+
description: "Sustaining purposeful work across many weeks.",
|
|
259
|
+
minimumSessions: 30,
|
|
260
|
+
minimumActiveWeeks: 16
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
id: "VIRTUOSO",
|
|
264
|
+
title: "Virtuoso",
|
|
265
|
+
description: "Showing enduring discipline through repeated seasons.",
|
|
266
|
+
minimumSessions: 60,
|
|
267
|
+
minimumActiveWeeks: 32
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
id: "LAUREATE",
|
|
271
|
+
title: "Laureate",
|
|
272
|
+
description: "A lasting training practice recorded in the ledger.",
|
|
273
|
+
minimumSessions: 100,
|
|
274
|
+
minimumActiveWeeks: 52
|
|
275
|
+
}
|
|
276
|
+
];
|
|
233
277
|
|
|
234
278
|
// src/workout.ts
|
|
235
279
|
var SESSION_SHARE_FIELDS = [
|
|
@@ -285,6 +329,7 @@ export {
|
|
|
285
329
|
RELATIONSHIP_LIST_DEFAULT_LIMIT,
|
|
286
330
|
RELATIONSHIP_LIST_KINDS,
|
|
287
331
|
RELATIONSHIP_LIST_MAX_LIMIT,
|
|
332
|
+
RENAISSANCE_RANK_DEFINITIONS,
|
|
288
333
|
REP_TYPES,
|
|
289
334
|
RESERVED_USERNAMES,
|
|
290
335
|
SESSION_SHARE_DEFAULT_FIELDS,
|