@sunsteel/contracts 0.3.0 → 0.5.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 CHANGED
@@ -21,18 +21,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  MUSCLE_GROUPS: () => MUSCLE_GROUPS,
24
- PROGRAM_STYLES: () => PROGRAM_STYLES,
25
24
  PROGRESSION_SCHEMES: () => PROGRESSION_SCHEMES,
26
25
  REP_TYPES: () => REP_TYPES,
27
26
  SEXES: () => SEXES,
28
- TM_ADJUSTMENT_CONSTANTS: () => TM_ADJUSTMENT_CONSTANTS,
29
27
  WEIGHT_UNITS: () => WEIGHT_UNITS,
30
28
  WORKOUT_SESSION_STATUSES: () => WORKOUT_SESSION_STATUSES
31
29
  });
32
30
  module.exports = __toCommonJS(index_exports);
33
31
 
34
32
  // src/shared.ts
35
- var PROGRAM_STYLES = ["STANDARD", "HYPERTROPHY"];
36
33
  var WORKOUT_SESSION_STATUSES = [
37
34
  "IN_PROGRESS",
38
35
  "COMPLETED",
@@ -44,9 +41,7 @@ var REP_TYPES = ["FIXED", "RANGE"];
44
41
  var PROGRESSION_SCHEMES = [
45
42
  "NONE",
46
43
  "DOUBLE_PROGRESSION",
47
- "DYNAMIC_DOUBLE_PROGRESSION",
48
- "PROGRAMMED_RTF",
49
- "PROGRAMMED_RTF_HYPERTROPHY"
44
+ "DYNAMIC_DOUBLE_PROGRESSION"
50
45
  ];
51
46
  var MUSCLE_GROUPS = [
52
47
  "PECTORAL",
@@ -67,23 +62,12 @@ var MUSCLE_GROUPS = [
67
62
  "CORE",
68
63
  "ADDUCTOR"
69
64
  ];
70
-
71
- // src/tm.ts
72
- var TM_ADJUSTMENT_CONSTANTS = {
73
- MAX_DELTA_KG: 15,
74
- MIN_DELTA_KG: -15,
75
- MIN_WEEK: 1,
76
- MAX_WEEK: 21,
77
- MAX_REASON_LENGTH: 160
78
- };
79
65
  // Annotate the CommonJS export names for ESM import in node:
80
66
  0 && (module.exports = {
81
67
  MUSCLE_GROUPS,
82
- PROGRAM_STYLES,
83
68
  PROGRESSION_SCHEMES,
84
69
  REP_TYPES,
85
70
  SEXES,
86
- TM_ADJUSTMENT_CONSTANTS,
87
71
  WEIGHT_UNITS,
88
72
  WORKOUT_SESSION_STATUSES
89
73
  });
package/dist/index.d.cts CHANGED
@@ -1,5 +1,3 @@
1
- declare const PROGRAM_STYLES: readonly ["STANDARD", "HYPERTROPHY"];
2
- type ProgramStyle = (typeof PROGRAM_STYLES)[number];
3
1
  declare const WORKOUT_SESSION_STATUSES: readonly ["IN_PROGRESS", "COMPLETED", "ABORTED"];
4
2
  type WorkoutSessionStatus = (typeof WORKOUT_SESSION_STATUSES)[number];
5
3
  declare const WEIGHT_UNITS: readonly ["KG", "LB"];
@@ -8,7 +6,7 @@ declare const SEXES: readonly ["MALE", "FEMALE"];
8
6
  type Sex = (typeof SEXES)[number];
9
7
  declare const REP_TYPES: readonly ["FIXED", "RANGE"];
10
8
  type RepType = (typeof REP_TYPES)[number];
11
- declare const PROGRESSION_SCHEMES: readonly ["NONE", "DOUBLE_PROGRESSION", "DYNAMIC_DOUBLE_PROGRESSION", "PROGRAMMED_RTF", "PROGRAMMED_RTF_HYPERTROPHY"];
9
+ declare const PROGRESSION_SCHEMES: readonly ["NONE", "DOUBLE_PROGRESSION", "DYNAMIC_DOUBLE_PROGRESSION"];
12
10
  type ProgressionScheme = (typeof PROGRESSION_SCHEMES)[number];
13
11
  declare const MUSCLE_GROUPS: readonly ["PECTORAL", "LATISSIMUS_DORSI", "TRAPEZIUS", "REAR_DELTOIDS", "ERECTOR_SPINAE", "TERES_MAJOR_MINOR", "ANTERIOR_DELTOIDS", "MEDIAL_DELTOIDS", "BICEPS", "TRICEPS", "FOREARMS", "QUADRICEPS", "HAMSTRINGS", "GLUTES", "CALVES", "CORE", "ADDUCTOR"];
14
12
  type MuscleGroup = (typeof MUSCLE_GROUPS)[number];
@@ -101,67 +99,6 @@ interface Exercise {
101
99
  updatedAt: IsoDateString;
102
100
  }
103
101
 
104
- type RtfVariant = ProgramStyle;
105
- interface RtfExerciseGoal {
106
- routineExerciseId: string;
107
- exerciseId: string;
108
- exerciseName: string;
109
- variant: RtfVariant;
110
- week: number;
111
- isDeload: boolean;
112
- intensity: number;
113
- fixedReps: number;
114
- setsPlanned: number;
115
- amrapTarget: number | null;
116
- amrapSetNumber: number | null;
117
- workingWeightKg?: number;
118
- trainingMaxKg?: number;
119
- }
120
- interface RtfWeekGoals {
121
- routineId: string;
122
- week: number;
123
- withDeloads: boolean;
124
- goals: RtfExerciseGoal[];
125
- version: number;
126
- _cache?: 'HIT' | 'MISS';
127
- }
128
- interface RtfTimelineEntry {
129
- week: number;
130
- isDeload: boolean;
131
- startDate: IsoDateString;
132
- endDate: IsoDateString;
133
- }
134
- interface RtfTimeline {
135
- routineId: string;
136
- totalWeeks: number;
137
- withDeloads: boolean;
138
- timeline: RtfTimelineEntry[];
139
- version: number;
140
- _cache?: 'HIT' | 'MISS';
141
- }
142
- interface RtfForecastData {
143
- intensity: number;
144
- fixedReps: number;
145
- amrapTarget: number;
146
- sets: number;
147
- amrapSet: number;
148
- isDeload?: boolean;
149
- }
150
- interface RtfForecastWeek {
151
- week: number;
152
- isDeload: boolean;
153
- standard?: RtfForecastData;
154
- hypertrophy?: RtfForecastData;
155
- }
156
- interface RtfForecast {
157
- routineId: string;
158
- weeks: number;
159
- version: number;
160
- withDeloads: boolean;
161
- forecast: RtfForecastWeek[];
162
- _cache?: 'HIT' | 'MISS';
163
- }
164
-
165
102
  interface RoutineSet {
166
103
  setNumber: number;
167
104
  repType: RepType;
@@ -178,9 +115,6 @@ interface RoutineExercise {
178
115
  note?: string | null;
179
116
  progressionScheme: ProgressionScheme;
180
117
  minWeightIncrement: number;
181
- programTMKg?: number;
182
- programRoundingKg?: number;
183
- programStyle?: ProgramStyle;
184
118
  exercise: {
185
119
  id: string;
186
120
  name: string;
@@ -196,9 +130,6 @@ interface CreateRoutineExerciseInput {
196
130
  note?: string;
197
131
  progressionScheme: ProgressionScheme;
198
132
  minWeightIncrement: number;
199
- programTMKg?: number;
200
- programRoundingKg?: number;
201
- programStyle?: ProgramStyle;
202
133
  sets: RoutineSet[];
203
134
  }
204
135
  interface RoutineDay {
@@ -220,14 +151,6 @@ interface Routine {
220
151
  isPeriodized: boolean;
221
152
  isFavorite: boolean;
222
153
  isCompleted: boolean;
223
- programStyle?: ProgramStyle;
224
- programWithDeloads?: boolean;
225
- programDurationWeeks?: number;
226
- programStartWeek?: number;
227
- programStartDate?: IsoDateString;
228
- programEndDate?: IsoDateString;
229
- programTimezone?: string;
230
- rtfGoals?: RtfWeekGoals;
231
154
  days: RoutineDay[];
232
155
  createdAt: IsoDateString;
233
156
  updatedAt: IsoDateString;
@@ -236,11 +159,6 @@ interface CreateRoutineRequest {
236
159
  name: string;
237
160
  description?: string;
238
161
  isPeriodized: boolean;
239
- programWithDeloads?: boolean;
240
- programStartDate?: IsoDateString;
241
- programTimezone?: string;
242
- programStartWeek?: number;
243
- programStyle?: ProgramStyle;
244
162
  days: CreateRoutineDayInput[];
245
163
  }
246
164
  type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
@@ -271,16 +189,6 @@ interface WorkoutSession {
271
189
  notes?: string | null;
272
190
  lastActivityAt?: IsoDateString | null;
273
191
  setLogs?: SetLog[];
274
- program?: {
275
- currentWeek: number;
276
- durationWeeks: number;
277
- withDeloads: boolean;
278
- isDeloadWeek: boolean;
279
- startDate: IsoDateString;
280
- endDate: IsoDateString;
281
- timeZone: string;
282
- };
283
- rtfPlans?: unknown[];
284
192
  reused?: boolean;
285
193
  routine?: {
286
194
  id: string;
@@ -330,8 +238,6 @@ interface StartWorkoutResponse {
330
238
  status: WorkoutSessionStatus;
331
239
  startedAt: IsoDateString;
332
240
  endedAt?: IsoDateString | null;
333
- program?: WorkoutSession['program'];
334
- rtfPlans?: WorkoutSession['rtfPlans'];
335
241
  reused: boolean;
336
242
  }
337
243
  type FinishStatus = Extract<WorkoutSessionStatus, 'COMPLETED' | 'ABORTED'>;
@@ -376,46 +282,4 @@ interface ListSessionsParams {
376
282
  }
377
283
  type WorkoutSessionListResponse = PaginatedResponse<WorkoutSessionSummary>;
378
284
 
379
- interface CreateTmEventRequest {
380
- exerciseId: string;
381
- weekNumber: number;
382
- deltaKg: number;
383
- preTmKg: number;
384
- postTmKg: number;
385
- reason?: string;
386
- }
387
- interface TmEventResponse {
388
- id: string;
389
- routineId: string;
390
- exerciseId: string;
391
- exerciseName: string;
392
- weekNumber: number;
393
- deltaKg: number;
394
- preTmKg: number;
395
- postTmKg: number;
396
- reason?: string;
397
- style: ProgramStyle | null;
398
- createdAt: IsoDateString;
399
- }
400
- interface TmEventSummary {
401
- exerciseId: string;
402
- exerciseName: string;
403
- totalDeltaKg: number;
404
- averageDeltaKg: number;
405
- adjustmentCount: number;
406
- lastAdjustmentDate: IsoDateString | null;
407
- }
408
- interface GetTmAdjustmentsParams {
409
- exerciseId?: string;
410
- minWeek?: number;
411
- maxWeek?: number;
412
- }
413
- declare const TM_ADJUSTMENT_CONSTANTS: {
414
- readonly MAX_DELTA_KG: 15;
415
- readonly MIN_DELTA_KG: -15;
416
- readonly MIN_WEEK: 1;
417
- readonly MAX_WEEK: 21;
418
- readonly MAX_REASON_LENGTH: 160;
419
- };
420
-
421
- export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateTmEventRequest, type Exercise, type ExerciseId, type FinishStatus, type FinishWorkoutRequest, type GetTmAdjustmentsParams, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, PROGRAM_STYLES, PROGRESSION_SCHEMES, type PaginatedResponse, type ProgramStyle, type ProgressionScheme, type PublicUserProfile, REP_TYPES, type RepType, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, type RtfExerciseGoal, type RtfForecast, type RtfForecastData, type RtfForecastWeek, type RtfTimeline, type RtfTimelineEntry, type RtfVariant, type RtfWeekGoals, SEXES, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TM_ADJUSTMENT_CONSTANTS, type TmEventResponse, type TmEventSummary, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionStatus, type WorkoutSessionSummary };
285
+ export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type Exercise, type ExerciseId, type FinishStatus, type FinishWorkoutRequest, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, PROGRESSION_SCHEMES, type PaginatedResponse, type ProgressionScheme, type PublicUserProfile, REP_TYPES, type RepType, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionStatus, type WorkoutSessionSummary };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- declare const PROGRAM_STYLES: readonly ["STANDARD", "HYPERTROPHY"];
2
- type ProgramStyle = (typeof PROGRAM_STYLES)[number];
3
1
  declare const WORKOUT_SESSION_STATUSES: readonly ["IN_PROGRESS", "COMPLETED", "ABORTED"];
4
2
  type WorkoutSessionStatus = (typeof WORKOUT_SESSION_STATUSES)[number];
5
3
  declare const WEIGHT_UNITS: readonly ["KG", "LB"];
@@ -8,7 +6,7 @@ declare const SEXES: readonly ["MALE", "FEMALE"];
8
6
  type Sex = (typeof SEXES)[number];
9
7
  declare const REP_TYPES: readonly ["FIXED", "RANGE"];
10
8
  type RepType = (typeof REP_TYPES)[number];
11
- declare const PROGRESSION_SCHEMES: readonly ["NONE", "DOUBLE_PROGRESSION", "DYNAMIC_DOUBLE_PROGRESSION", "PROGRAMMED_RTF", "PROGRAMMED_RTF_HYPERTROPHY"];
9
+ declare const PROGRESSION_SCHEMES: readonly ["NONE", "DOUBLE_PROGRESSION", "DYNAMIC_DOUBLE_PROGRESSION"];
12
10
  type ProgressionScheme = (typeof PROGRESSION_SCHEMES)[number];
13
11
  declare const MUSCLE_GROUPS: readonly ["PECTORAL", "LATISSIMUS_DORSI", "TRAPEZIUS", "REAR_DELTOIDS", "ERECTOR_SPINAE", "TERES_MAJOR_MINOR", "ANTERIOR_DELTOIDS", "MEDIAL_DELTOIDS", "BICEPS", "TRICEPS", "FOREARMS", "QUADRICEPS", "HAMSTRINGS", "GLUTES", "CALVES", "CORE", "ADDUCTOR"];
14
12
  type MuscleGroup = (typeof MUSCLE_GROUPS)[number];
@@ -101,67 +99,6 @@ interface Exercise {
101
99
  updatedAt: IsoDateString;
102
100
  }
103
101
 
104
- type RtfVariant = ProgramStyle;
105
- interface RtfExerciseGoal {
106
- routineExerciseId: string;
107
- exerciseId: string;
108
- exerciseName: string;
109
- variant: RtfVariant;
110
- week: number;
111
- isDeload: boolean;
112
- intensity: number;
113
- fixedReps: number;
114
- setsPlanned: number;
115
- amrapTarget: number | null;
116
- amrapSetNumber: number | null;
117
- workingWeightKg?: number;
118
- trainingMaxKg?: number;
119
- }
120
- interface RtfWeekGoals {
121
- routineId: string;
122
- week: number;
123
- withDeloads: boolean;
124
- goals: RtfExerciseGoal[];
125
- version: number;
126
- _cache?: 'HIT' | 'MISS';
127
- }
128
- interface RtfTimelineEntry {
129
- week: number;
130
- isDeload: boolean;
131
- startDate: IsoDateString;
132
- endDate: IsoDateString;
133
- }
134
- interface RtfTimeline {
135
- routineId: string;
136
- totalWeeks: number;
137
- withDeloads: boolean;
138
- timeline: RtfTimelineEntry[];
139
- version: number;
140
- _cache?: 'HIT' | 'MISS';
141
- }
142
- interface RtfForecastData {
143
- intensity: number;
144
- fixedReps: number;
145
- amrapTarget: number;
146
- sets: number;
147
- amrapSet: number;
148
- isDeload?: boolean;
149
- }
150
- interface RtfForecastWeek {
151
- week: number;
152
- isDeload: boolean;
153
- standard?: RtfForecastData;
154
- hypertrophy?: RtfForecastData;
155
- }
156
- interface RtfForecast {
157
- routineId: string;
158
- weeks: number;
159
- version: number;
160
- withDeloads: boolean;
161
- forecast: RtfForecastWeek[];
162
- _cache?: 'HIT' | 'MISS';
163
- }
164
-
165
102
  interface RoutineSet {
166
103
  setNumber: number;
167
104
  repType: RepType;
@@ -178,9 +115,6 @@ interface RoutineExercise {
178
115
  note?: string | null;
179
116
  progressionScheme: ProgressionScheme;
180
117
  minWeightIncrement: number;
181
- programTMKg?: number;
182
- programRoundingKg?: number;
183
- programStyle?: ProgramStyle;
184
118
  exercise: {
185
119
  id: string;
186
120
  name: string;
@@ -196,9 +130,6 @@ interface CreateRoutineExerciseInput {
196
130
  note?: string;
197
131
  progressionScheme: ProgressionScheme;
198
132
  minWeightIncrement: number;
199
- programTMKg?: number;
200
- programRoundingKg?: number;
201
- programStyle?: ProgramStyle;
202
133
  sets: RoutineSet[];
203
134
  }
204
135
  interface RoutineDay {
@@ -220,14 +151,6 @@ interface Routine {
220
151
  isPeriodized: boolean;
221
152
  isFavorite: boolean;
222
153
  isCompleted: boolean;
223
- programStyle?: ProgramStyle;
224
- programWithDeloads?: boolean;
225
- programDurationWeeks?: number;
226
- programStartWeek?: number;
227
- programStartDate?: IsoDateString;
228
- programEndDate?: IsoDateString;
229
- programTimezone?: string;
230
- rtfGoals?: RtfWeekGoals;
231
154
  days: RoutineDay[];
232
155
  createdAt: IsoDateString;
233
156
  updatedAt: IsoDateString;
@@ -236,11 +159,6 @@ interface CreateRoutineRequest {
236
159
  name: string;
237
160
  description?: string;
238
161
  isPeriodized: boolean;
239
- programWithDeloads?: boolean;
240
- programStartDate?: IsoDateString;
241
- programTimezone?: string;
242
- programStartWeek?: number;
243
- programStyle?: ProgramStyle;
244
162
  days: CreateRoutineDayInput[];
245
163
  }
246
164
  type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
@@ -271,16 +189,6 @@ interface WorkoutSession {
271
189
  notes?: string | null;
272
190
  lastActivityAt?: IsoDateString | null;
273
191
  setLogs?: SetLog[];
274
- program?: {
275
- currentWeek: number;
276
- durationWeeks: number;
277
- withDeloads: boolean;
278
- isDeloadWeek: boolean;
279
- startDate: IsoDateString;
280
- endDate: IsoDateString;
281
- timeZone: string;
282
- };
283
- rtfPlans?: unknown[];
284
192
  reused?: boolean;
285
193
  routine?: {
286
194
  id: string;
@@ -330,8 +238,6 @@ interface StartWorkoutResponse {
330
238
  status: WorkoutSessionStatus;
331
239
  startedAt: IsoDateString;
332
240
  endedAt?: IsoDateString | null;
333
- program?: WorkoutSession['program'];
334
- rtfPlans?: WorkoutSession['rtfPlans'];
335
241
  reused: boolean;
336
242
  }
337
243
  type FinishStatus = Extract<WorkoutSessionStatus, 'COMPLETED' | 'ABORTED'>;
@@ -376,46 +282,4 @@ interface ListSessionsParams {
376
282
  }
377
283
  type WorkoutSessionListResponse = PaginatedResponse<WorkoutSessionSummary>;
378
284
 
379
- interface CreateTmEventRequest {
380
- exerciseId: string;
381
- weekNumber: number;
382
- deltaKg: number;
383
- preTmKg: number;
384
- postTmKg: number;
385
- reason?: string;
386
- }
387
- interface TmEventResponse {
388
- id: string;
389
- routineId: string;
390
- exerciseId: string;
391
- exerciseName: string;
392
- weekNumber: number;
393
- deltaKg: number;
394
- preTmKg: number;
395
- postTmKg: number;
396
- reason?: string;
397
- style: ProgramStyle | null;
398
- createdAt: IsoDateString;
399
- }
400
- interface TmEventSummary {
401
- exerciseId: string;
402
- exerciseName: string;
403
- totalDeltaKg: number;
404
- averageDeltaKg: number;
405
- adjustmentCount: number;
406
- lastAdjustmentDate: IsoDateString | null;
407
- }
408
- interface GetTmAdjustmentsParams {
409
- exerciseId?: string;
410
- minWeek?: number;
411
- maxWeek?: number;
412
- }
413
- declare const TM_ADJUSTMENT_CONSTANTS: {
414
- readonly MAX_DELTA_KG: 15;
415
- readonly MIN_DELTA_KG: -15;
416
- readonly MIN_WEEK: 1;
417
- readonly MAX_WEEK: 21;
418
- readonly MAX_REASON_LENGTH: 160;
419
- };
420
-
421
- export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateTmEventRequest, type Exercise, type ExerciseId, type FinishStatus, type FinishWorkoutRequest, type GetTmAdjustmentsParams, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, PROGRAM_STYLES, PROGRESSION_SCHEMES, type PaginatedResponse, type ProgramStyle, type ProgressionScheme, type PublicUserProfile, REP_TYPES, type RepType, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, type RtfExerciseGoal, type RtfForecast, type RtfForecastData, type RtfForecastWeek, type RtfTimeline, type RtfTimelineEntry, type RtfVariant, type RtfWeekGoals, SEXES, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, TM_ADJUSTMENT_CONSTANTS, type TmEventResponse, type TmEventSummary, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionStatus, type WorkoutSessionSummary };
285
+ export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type Exercise, type ExerciseId, type FinishStatus, type FinishWorkoutRequest, type IsoDateString, type ListSessionsParams, MUSCLE_GROUPS, type MuscleGroup, PROGRESSION_SCHEMES, type PaginatedResponse, type ProgressionScheme, type PublicUserProfile, REP_TYPES, type RepType, type Routine, type RoutineDay, type RoutineDayId, type RoutineExercise, type RoutineId, type RoutineSet, SEXES, type SetLog, type Sex, type StartWorkoutRequest, type StartWorkoutResponse, type SupabaseAuthResponse, type SupabaseAuthUser, type SupabaseMigrationResponse, type UpdateProfileRequest, type UpdateRoutineRequest, type UpsertSetLogRequest, type UserId, type UserProfile, type UserSearchResponse, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionListResponse, type WorkoutSessionStatus, type WorkoutSessionSummary };
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  // src/shared.ts
2
- var PROGRAM_STYLES = ["STANDARD", "HYPERTROPHY"];
3
2
  var WORKOUT_SESSION_STATUSES = [
4
3
  "IN_PROGRESS",
5
4
  "COMPLETED",
@@ -11,9 +10,7 @@ var REP_TYPES = ["FIXED", "RANGE"];
11
10
  var PROGRESSION_SCHEMES = [
12
11
  "NONE",
13
12
  "DOUBLE_PROGRESSION",
14
- "DYNAMIC_DOUBLE_PROGRESSION",
15
- "PROGRAMMED_RTF",
16
- "PROGRAMMED_RTF_HYPERTROPHY"
13
+ "DYNAMIC_DOUBLE_PROGRESSION"
17
14
  ];
18
15
  var MUSCLE_GROUPS = [
19
16
  "PECTORAL",
@@ -34,22 +31,11 @@ var MUSCLE_GROUPS = [
34
31
  "CORE",
35
32
  "ADDUCTOR"
36
33
  ];
37
-
38
- // src/tm.ts
39
- var TM_ADJUSTMENT_CONSTANTS = {
40
- MAX_DELTA_KG: 15,
41
- MIN_DELTA_KG: -15,
42
- MIN_WEEK: 1,
43
- MAX_WEEK: 21,
44
- MAX_REASON_LENGTH: 160
45
- };
46
34
  export {
47
35
  MUSCLE_GROUPS,
48
- PROGRAM_STYLES,
49
36
  PROGRESSION_SCHEMES,
50
37
  REP_TYPES,
51
38
  SEXES,
52
- TM_ADJUSTMENT_CONSTANTS,
53
39
  WEIGHT_UNITS,
54
40
  WORKOUT_SESSION_STATUSES
55
41
  };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@sunsteel/contracts",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "git+https://github.com//sunsteel-contracts.git"
6
+ "url": "git+https://github.com/ezee969/sunsteel-contracts.git"
7
7
  },
8
8
  "private": false,
9
9
  "engines": {