@sunsteel/contracts 0.4.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,7 +21,6 @@ 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,
@@ -31,7 +30,6 @@ __export(index_exports, {
31
30
  module.exports = __toCommonJS(index_exports);
32
31
 
33
32
  // src/shared.ts
34
- var PROGRAM_STYLES = ["STANDARD", "HYPERTROPHY"];
35
33
  var WORKOUT_SESSION_STATUSES = [
36
34
  "IN_PROGRESS",
37
35
  "COMPLETED",
@@ -67,7 +65,6 @@ var MUSCLE_GROUPS = [
67
65
  // Annotate the CommonJS export names for ESM import in node:
68
66
  0 && (module.exports = {
69
67
  MUSCLE_GROUPS,
70
- PROGRAM_STYLES,
71
68
  PROGRESSION_SCHEMES,
72
69
  REP_TYPES,
73
70
  SEXES,
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"];
@@ -117,9 +115,6 @@ interface RoutineExercise {
117
115
  note?: string | null;
118
116
  progressionScheme: ProgressionScheme;
119
117
  minWeightIncrement: number;
120
- programTMKg?: number;
121
- programRoundingKg?: number;
122
- programStyle?: ProgramStyle;
123
118
  exercise: {
124
119
  id: string;
125
120
  name: string;
@@ -135,9 +130,6 @@ interface CreateRoutineExerciseInput {
135
130
  note?: string;
136
131
  progressionScheme: ProgressionScheme;
137
132
  minWeightIncrement: number;
138
- programTMKg?: number;
139
- programRoundingKg?: number;
140
- programStyle?: ProgramStyle;
141
133
  sets: RoutineSet[];
142
134
  }
143
135
  interface RoutineDay {
@@ -159,13 +151,6 @@ interface Routine {
159
151
  isPeriodized: boolean;
160
152
  isFavorite: boolean;
161
153
  isCompleted: boolean;
162
- programStyle?: ProgramStyle;
163
- programWithDeloads?: boolean;
164
- programDurationWeeks?: number;
165
- programStartWeek?: number;
166
- programStartDate?: IsoDateString;
167
- programEndDate?: IsoDateString;
168
- programTimezone?: string;
169
154
  days: RoutineDay[];
170
155
  createdAt: IsoDateString;
171
156
  updatedAt: IsoDateString;
@@ -174,11 +159,6 @@ interface CreateRoutineRequest {
174
159
  name: string;
175
160
  description?: string;
176
161
  isPeriodized: boolean;
177
- programWithDeloads?: boolean;
178
- programStartDate?: IsoDateString;
179
- programTimezone?: string;
180
- programStartWeek?: number;
181
- programStyle?: ProgramStyle;
182
162
  days: CreateRoutineDayInput[];
183
163
  }
184
164
  type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
@@ -302,4 +282,4 @@ interface ListSessionsParams {
302
282
  }
303
283
  type WorkoutSessionListResponse = PaginatedResponse<WorkoutSessionSummary>;
304
284
 
305
- 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, 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, 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 };
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"];
@@ -117,9 +115,6 @@ interface RoutineExercise {
117
115
  note?: string | null;
118
116
  progressionScheme: ProgressionScheme;
119
117
  minWeightIncrement: number;
120
- programTMKg?: number;
121
- programRoundingKg?: number;
122
- programStyle?: ProgramStyle;
123
118
  exercise: {
124
119
  id: string;
125
120
  name: string;
@@ -135,9 +130,6 @@ interface CreateRoutineExerciseInput {
135
130
  note?: string;
136
131
  progressionScheme: ProgressionScheme;
137
132
  minWeightIncrement: number;
138
- programTMKg?: number;
139
- programRoundingKg?: number;
140
- programStyle?: ProgramStyle;
141
133
  sets: RoutineSet[];
142
134
  }
143
135
  interface RoutineDay {
@@ -159,13 +151,6 @@ interface Routine {
159
151
  isPeriodized: boolean;
160
152
  isFavorite: boolean;
161
153
  isCompleted: boolean;
162
- programStyle?: ProgramStyle;
163
- programWithDeloads?: boolean;
164
- programDurationWeeks?: number;
165
- programStartWeek?: number;
166
- programStartDate?: IsoDateString;
167
- programEndDate?: IsoDateString;
168
- programTimezone?: string;
169
154
  days: RoutineDay[];
170
155
  createdAt: IsoDateString;
171
156
  updatedAt: IsoDateString;
@@ -174,11 +159,6 @@ interface CreateRoutineRequest {
174
159
  name: string;
175
160
  description?: string;
176
161
  isPeriodized: boolean;
177
- programWithDeloads?: boolean;
178
- programStartDate?: IsoDateString;
179
- programTimezone?: string;
180
- programStartWeek?: number;
181
- programStyle?: ProgramStyle;
182
162
  days: CreateRoutineDayInput[];
183
163
  }
184
164
  type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
@@ -302,4 +282,4 @@ interface ListSessionsParams {
302
282
  }
303
283
  type WorkoutSessionListResponse = PaginatedResponse<WorkoutSessionSummary>;
304
284
 
305
- 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, 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, 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 };
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",
@@ -34,7 +33,6 @@ var MUSCLE_GROUPS = [
34
33
  ];
35
34
  export {
36
35
  MUSCLE_GROUPS,
37
- PROGRAM_STYLES,
38
36
  PROGRESSION_SCHEMES,
39
37
  REP_TYPES,
40
38
  SEXES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunsteel/contracts",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ezee969/sunsteel-contracts.git"