@sunsteel/contracts 0.23.0 → 0.24.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 +25 -0
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +19 -0
- package/package.json +40 -40
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
FOLLOW_SUGGESTIONS_DEFAULT_LIMIT: () => FOLLOW_SUGGESTIONS_DEFAULT_LIMIT,
|
|
24
|
+
FOLLOW_SUGGESTIONS_MAX_LIMIT: () => FOLLOW_SUGGESTIONS_MAX_LIMIT,
|
|
25
|
+
FOLLOW_SUGGESTION_REASONS: () => FOLLOW_SUGGESTION_REASONS,
|
|
23
26
|
MUSCLE_GROUPS: () => MUSCLE_GROUPS,
|
|
24
27
|
PREFERRED_TRAINING_STYLE_VALUES: () => PREFERRED_TRAINING_STYLE_VALUES,
|
|
25
28
|
PROFILE_BIO_MAX_LENGTH: () => PROFILE_BIO_MAX_LENGTH,
|
|
@@ -30,6 +33,9 @@ __export(index_exports, {
|
|
|
30
33
|
PROFILE_VISIBILITY_VALUES: () => PROFILE_VISIBILITY_VALUES,
|
|
31
34
|
PROGRESSION_SCHEMES: () => PROGRESSION_SCHEMES,
|
|
32
35
|
PROGRESS_TIMELINE_EVENT_TYPES: () => PROGRESS_TIMELINE_EVENT_TYPES,
|
|
36
|
+
RELATIONSHIP_LIST_DEFAULT_LIMIT: () => RELATIONSHIP_LIST_DEFAULT_LIMIT,
|
|
37
|
+
RELATIONSHIP_LIST_KINDS: () => RELATIONSHIP_LIST_KINDS,
|
|
38
|
+
RELATIONSHIP_LIST_MAX_LIMIT: () => RELATIONSHIP_LIST_MAX_LIMIT,
|
|
33
39
|
REP_TYPES: () => REP_TYPES,
|
|
34
40
|
RESERVED_USERNAMES: () => RESERVED_USERNAMES,
|
|
35
41
|
SEXES: () => SEXES,
|
|
@@ -155,6 +161,19 @@ var PREFERRED_TRAINING_STYLE_VALUES = [
|
|
|
155
161
|
"BODY_PART_SPLIT",
|
|
156
162
|
"CIRCUIT"
|
|
157
163
|
];
|
|
164
|
+
var RELATIONSHIP_LIST_KINDS = [
|
|
165
|
+
"followers",
|
|
166
|
+
"following",
|
|
167
|
+
"mutuals"
|
|
168
|
+
];
|
|
169
|
+
var RELATIONSHIP_LIST_DEFAULT_LIMIT = 20;
|
|
170
|
+
var RELATIONSHIP_LIST_MAX_LIMIT = 50;
|
|
171
|
+
var FOLLOW_SUGGESTIONS_DEFAULT_LIMIT = 10;
|
|
172
|
+
var FOLLOW_SUGGESTIONS_MAX_LIMIT = 20;
|
|
173
|
+
var FOLLOW_SUGGESTION_REASONS = [
|
|
174
|
+
"FOLLOWS_YOU",
|
|
175
|
+
"FOLLOWED_BY_PEOPLE_YOU_FOLLOW"
|
|
176
|
+
];
|
|
158
177
|
|
|
159
178
|
// src/analytics.ts
|
|
160
179
|
var TRAINING_EVENT_TYPES = [
|
|
@@ -168,6 +187,9 @@ var PROGRESS_TIMELINE_EVENT_TYPES = [
|
|
|
168
187
|
];
|
|
169
188
|
// Annotate the CommonJS export names for ESM import in node:
|
|
170
189
|
0 && (module.exports = {
|
|
190
|
+
FOLLOW_SUGGESTIONS_DEFAULT_LIMIT,
|
|
191
|
+
FOLLOW_SUGGESTIONS_MAX_LIMIT,
|
|
192
|
+
FOLLOW_SUGGESTION_REASONS,
|
|
171
193
|
MUSCLE_GROUPS,
|
|
172
194
|
PREFERRED_TRAINING_STYLE_VALUES,
|
|
173
195
|
PROFILE_BIO_MAX_LENGTH,
|
|
@@ -178,6 +200,9 @@ var PROGRESS_TIMELINE_EVENT_TYPES = [
|
|
|
178
200
|
PROFILE_VISIBILITY_VALUES,
|
|
179
201
|
PROGRESSION_SCHEMES,
|
|
180
202
|
PROGRESS_TIMELINE_EVENT_TYPES,
|
|
203
|
+
RELATIONSHIP_LIST_DEFAULT_LIMIT,
|
|
204
|
+
RELATIONSHIP_LIST_KINDS,
|
|
205
|
+
RELATIONSHIP_LIST_MAX_LIMIT,
|
|
181
206
|
REP_TYPES,
|
|
182
207
|
RESERVED_USERNAMES,
|
|
183
208
|
SEXES,
|
package/dist/index.d.cts
CHANGED
|
@@ -688,6 +688,48 @@ interface UserSearchResponse {
|
|
|
688
688
|
lastName?: string | null;
|
|
689
689
|
avatarUrl?: string | null;
|
|
690
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* `followers` and `following` are the profile's own relations. `mutuals` is
|
|
693
|
+
* relative to the viewer: accounts that follow the profile and that the viewer
|
|
694
|
+
* follows. On the viewer's own profile that is the set of mutual follows.
|
|
695
|
+
*/
|
|
696
|
+
declare const RELATIONSHIP_LIST_KINDS: readonly ["followers", "following", "mutuals"];
|
|
697
|
+
type RelationshipListKind = (typeof RELATIONSHIP_LIST_KINDS)[number];
|
|
698
|
+
declare const RELATIONSHIP_LIST_DEFAULT_LIMIT = 20;
|
|
699
|
+
declare const RELATIONSHIP_LIST_MAX_LIMIT = 50;
|
|
700
|
+
declare const FOLLOW_SUGGESTIONS_DEFAULT_LIMIT = 10;
|
|
701
|
+
declare const FOLLOW_SUGGESTIONS_MAX_LIMIT = 20;
|
|
702
|
+
/** A member as seen by the signed-in viewer. Never carries email. */
|
|
703
|
+
interface RelationshipMember extends UserSearchResponse {
|
|
704
|
+
isFollowedByMe: boolean;
|
|
705
|
+
followsMe: boolean;
|
|
706
|
+
}
|
|
707
|
+
interface RelationshipListQuery {
|
|
708
|
+
/** Opaque value returned as `nextCursor` by the previous page. */
|
|
709
|
+
cursor?: string;
|
|
710
|
+
limit?: number;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Stable successful response of GET /users/:identifier/followers, /following
|
|
714
|
+
* and /mutuals. Items are ordered by the date the relation was created, newest
|
|
715
|
+
* first.
|
|
716
|
+
*/
|
|
717
|
+
interface RelationshipListResponse {
|
|
718
|
+
kind: RelationshipListKind;
|
|
719
|
+
items: RelationshipMember[];
|
|
720
|
+
nextCursor?: string;
|
|
721
|
+
}
|
|
722
|
+
declare const FOLLOW_SUGGESTION_REASONS: readonly ["FOLLOWS_YOU", "FOLLOWED_BY_PEOPLE_YOU_FOLLOW"];
|
|
723
|
+
type FollowSuggestionReason = (typeof FOLLOW_SUGGESTION_REASONS)[number];
|
|
724
|
+
interface FollowSuggestion extends RelationshipMember {
|
|
725
|
+
reason: FollowSuggestionReason;
|
|
726
|
+
/** How many accounts the viewer follows also follow this member. */
|
|
727
|
+
mutualCount: number;
|
|
728
|
+
}
|
|
729
|
+
/** Stable successful response of GET /users/me/suggestions. */
|
|
730
|
+
interface FollowSuggestionsResponse {
|
|
731
|
+
items: FollowSuggestion[];
|
|
732
|
+
}
|
|
691
733
|
|
|
692
734
|
interface SupabaseAuthUser {
|
|
693
735
|
id: string;
|
|
@@ -783,4 +825,4 @@ interface CreateRoutineRequest {
|
|
|
783
825
|
}
|
|
784
826
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
785
827
|
|
|
786
|
-
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, 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 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, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RepType, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, 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 };
|
|
828
|
+
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, 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, MUSCLE_GROUPS, 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 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 ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, 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
|
@@ -688,6 +688,48 @@ interface UserSearchResponse {
|
|
|
688
688
|
lastName?: string | null;
|
|
689
689
|
avatarUrl?: string | null;
|
|
690
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* `followers` and `following` are the profile's own relations. `mutuals` is
|
|
693
|
+
* relative to the viewer: accounts that follow the profile and that the viewer
|
|
694
|
+
* follows. On the viewer's own profile that is the set of mutual follows.
|
|
695
|
+
*/
|
|
696
|
+
declare const RELATIONSHIP_LIST_KINDS: readonly ["followers", "following", "mutuals"];
|
|
697
|
+
type RelationshipListKind = (typeof RELATIONSHIP_LIST_KINDS)[number];
|
|
698
|
+
declare const RELATIONSHIP_LIST_DEFAULT_LIMIT = 20;
|
|
699
|
+
declare const RELATIONSHIP_LIST_MAX_LIMIT = 50;
|
|
700
|
+
declare const FOLLOW_SUGGESTIONS_DEFAULT_LIMIT = 10;
|
|
701
|
+
declare const FOLLOW_SUGGESTIONS_MAX_LIMIT = 20;
|
|
702
|
+
/** A member as seen by the signed-in viewer. Never carries email. */
|
|
703
|
+
interface RelationshipMember extends UserSearchResponse {
|
|
704
|
+
isFollowedByMe: boolean;
|
|
705
|
+
followsMe: boolean;
|
|
706
|
+
}
|
|
707
|
+
interface RelationshipListQuery {
|
|
708
|
+
/** Opaque value returned as `nextCursor` by the previous page. */
|
|
709
|
+
cursor?: string;
|
|
710
|
+
limit?: number;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Stable successful response of GET /users/:identifier/followers, /following
|
|
714
|
+
* and /mutuals. Items are ordered by the date the relation was created, newest
|
|
715
|
+
* first.
|
|
716
|
+
*/
|
|
717
|
+
interface RelationshipListResponse {
|
|
718
|
+
kind: RelationshipListKind;
|
|
719
|
+
items: RelationshipMember[];
|
|
720
|
+
nextCursor?: string;
|
|
721
|
+
}
|
|
722
|
+
declare const FOLLOW_SUGGESTION_REASONS: readonly ["FOLLOWS_YOU", "FOLLOWED_BY_PEOPLE_YOU_FOLLOW"];
|
|
723
|
+
type FollowSuggestionReason = (typeof FOLLOW_SUGGESTION_REASONS)[number];
|
|
724
|
+
interface FollowSuggestion extends RelationshipMember {
|
|
725
|
+
reason: FollowSuggestionReason;
|
|
726
|
+
/** How many accounts the viewer follows also follow this member. */
|
|
727
|
+
mutualCount: number;
|
|
728
|
+
}
|
|
729
|
+
/** Stable successful response of GET /users/me/suggestions. */
|
|
730
|
+
interface FollowSuggestionsResponse {
|
|
731
|
+
items: FollowSuggestion[];
|
|
732
|
+
}
|
|
691
733
|
|
|
692
734
|
interface SupabaseAuthUser {
|
|
693
735
|
id: string;
|
|
@@ -783,4 +825,4 @@ interface CreateRoutineRequest {
|
|
|
783
825
|
}
|
|
784
826
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
|
785
827
|
|
|
786
|
-
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, type ExercisePerformanceHistoryQuery, type ExercisePerformanceHistoryResponse, type ExercisePerformancePrescription, type ExercisePerformancePrescriptionSet, type ExercisePerformanceSession, type ExercisePerformanceSet, type ExercisePerformanceSummary, type ExerciseStrengthSummary, type ExerciseStrengthTrendPoint, type ExerciseStrengthTrendQuery, type ExerciseStrengthTrendResponse, type FinishStatus, type FinishWorkoutRequest, type FinishWorkoutResponse, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, 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 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, REP_TYPES, RESERVED_USERNAMES, type RecentActivityEntry, type RepType, type ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, 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 };
|
|
828
|
+
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type EarnedPersonalRecord, type Exercise, type ExerciseId, 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, MUSCLE_GROUPS, 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 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 ReplaceTrainingLocationsRequest, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SessionComparisonExercise, type SessionComparisonQuery, type SessionComparisonResponse, type SessionComparisonRoutineDay, type SessionComparisonSession, type SessionComparisonSet, type SessionRecapRecord, type SetAccountTimeZoneRequest, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, 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
|
@@ -108,6 +108,19 @@ var PREFERRED_TRAINING_STYLE_VALUES = [
|
|
|
108
108
|
"BODY_PART_SPLIT",
|
|
109
109
|
"CIRCUIT"
|
|
110
110
|
];
|
|
111
|
+
var RELATIONSHIP_LIST_KINDS = [
|
|
112
|
+
"followers",
|
|
113
|
+
"following",
|
|
114
|
+
"mutuals"
|
|
115
|
+
];
|
|
116
|
+
var RELATIONSHIP_LIST_DEFAULT_LIMIT = 20;
|
|
117
|
+
var RELATIONSHIP_LIST_MAX_LIMIT = 50;
|
|
118
|
+
var FOLLOW_SUGGESTIONS_DEFAULT_LIMIT = 10;
|
|
119
|
+
var FOLLOW_SUGGESTIONS_MAX_LIMIT = 20;
|
|
120
|
+
var FOLLOW_SUGGESTION_REASONS = [
|
|
121
|
+
"FOLLOWS_YOU",
|
|
122
|
+
"FOLLOWED_BY_PEOPLE_YOU_FOLLOW"
|
|
123
|
+
];
|
|
111
124
|
|
|
112
125
|
// src/analytics.ts
|
|
113
126
|
var TRAINING_EVENT_TYPES = [
|
|
@@ -120,6 +133,9 @@ var PROGRESS_TIMELINE_EVENT_TYPES = [
|
|
|
120
133
|
"PROGRESSION_CHANGED"
|
|
121
134
|
];
|
|
122
135
|
export {
|
|
136
|
+
FOLLOW_SUGGESTIONS_DEFAULT_LIMIT,
|
|
137
|
+
FOLLOW_SUGGESTIONS_MAX_LIMIT,
|
|
138
|
+
FOLLOW_SUGGESTION_REASONS,
|
|
123
139
|
MUSCLE_GROUPS,
|
|
124
140
|
PREFERRED_TRAINING_STYLE_VALUES,
|
|
125
141
|
PROFILE_BIO_MAX_LENGTH,
|
|
@@ -130,6 +146,9 @@ export {
|
|
|
130
146
|
PROFILE_VISIBILITY_VALUES,
|
|
131
147
|
PROGRESSION_SCHEMES,
|
|
132
148
|
PROGRESS_TIMELINE_EVENT_TYPES,
|
|
149
|
+
RELATIONSHIP_LIST_DEFAULT_LIMIT,
|
|
150
|
+
RELATIONSHIP_LIST_KINDS,
|
|
151
|
+
RELATIONSHIP_LIST_MAX_LIMIT,
|
|
133
152
|
REP_TYPES,
|
|
134
153
|
RESERVED_USERNAMES,
|
|
135
154
|
SEXES,
|
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.24.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
|
+
}
|