@sunsteel/contracts 0.2.3 → 0.2.4
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 +3 -0
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +2 -0
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
PROGRAM_STYLES: () => PROGRAM_STYLES,
|
|
25
25
|
PROGRESSION_SCHEMES: () => PROGRESSION_SCHEMES,
|
|
26
26
|
REP_TYPES: () => REP_TYPES,
|
|
27
|
+
SEXES: () => SEXES,
|
|
27
28
|
TM_ADJUSTMENT_CONSTANTS: () => TM_ADJUSTMENT_CONSTANTS,
|
|
28
29
|
WEIGHT_UNITS: () => WEIGHT_UNITS,
|
|
29
30
|
WORKOUT_SESSION_STATUSES: () => WORKOUT_SESSION_STATUSES
|
|
@@ -36,6 +37,7 @@ var WORKOUT_SESSION_STATUSES = [
|
|
|
36
37
|
"ABORTED"
|
|
37
38
|
];
|
|
38
39
|
var WEIGHT_UNITS = ["KG", "LB"];
|
|
40
|
+
var SEXES = ["MALE", "FEMALE"];
|
|
39
41
|
var REP_TYPES = ["FIXED", "RANGE"];
|
|
40
42
|
var PROGRESSION_SCHEMES = [
|
|
41
43
|
"NONE",
|
|
@@ -73,6 +75,7 @@ var TM_ADJUSTMENT_CONSTANTS = {
|
|
|
73
75
|
PROGRAM_STYLES,
|
|
74
76
|
PROGRESSION_SCHEMES,
|
|
75
77
|
REP_TYPES,
|
|
78
|
+
SEXES,
|
|
76
79
|
TM_ADJUSTMENT_CONSTANTS,
|
|
77
80
|
WEIGHT_UNITS,
|
|
78
81
|
WORKOUT_SESSION_STATUSES
|
package/dist/index.d.cts
CHANGED
|
@@ -4,6 +4,8 @@ declare const WORKOUT_SESSION_STATUSES: readonly ["IN_PROGRESS", "COMPLETED", "A
|
|
|
4
4
|
type WorkoutSessionStatus = (typeof WORKOUT_SESSION_STATUSES)[number];
|
|
5
5
|
declare const WEIGHT_UNITS: readonly ["KG", "LB"];
|
|
6
6
|
type WeightUnit = (typeof WEIGHT_UNITS)[number];
|
|
7
|
+
declare const SEXES: readonly ["MALE", "FEMALE"];
|
|
8
|
+
type Sex = (typeof SEXES)[number];
|
|
7
9
|
declare const REP_TYPES: readonly ["FIXED", "RANGE"];
|
|
8
10
|
type RepType = (typeof REP_TYPES)[number];
|
|
9
11
|
declare const PROGRESSION_SCHEMES: readonly ["NONE", "DOUBLE_PROGRESSION", "DYNAMIC_DOUBLE_PROGRESSION", "PROGRAMMED_RTF", "PROGRAMMED_RTF_HYPERTROPHY"];
|
|
@@ -19,6 +21,30 @@ type RoutineId = Brand<string, 'RoutineId'>;
|
|
|
19
21
|
type RoutineDayId = Brand<string, 'RoutineDayId'>;
|
|
20
22
|
type WorkoutSessionId = Brand<string, 'WorkoutSessionId'>;
|
|
21
23
|
type ExerciseId = Brand<string, 'ExerciseId'>;
|
|
24
|
+
interface UserProfile {
|
|
25
|
+
id: string;
|
|
26
|
+
email: string;
|
|
27
|
+
name: string;
|
|
28
|
+
lastName?: string | null;
|
|
29
|
+
avatarUrl?: string | null;
|
|
30
|
+
age?: number | null;
|
|
31
|
+
sex?: Sex | null;
|
|
32
|
+
weight?: number | null;
|
|
33
|
+
height?: number | null;
|
|
34
|
+
weightUnit: WeightUnit;
|
|
35
|
+
createdAt: IsoDateString;
|
|
36
|
+
updatedAt: IsoDateString;
|
|
37
|
+
}
|
|
38
|
+
interface UpdateProfileRequest {
|
|
39
|
+
name?: string;
|
|
40
|
+
lastName?: string | null;
|
|
41
|
+
avatarUrl?: string | null;
|
|
42
|
+
age?: number | null;
|
|
43
|
+
sex?: Sex | null;
|
|
44
|
+
weight?: number | null;
|
|
45
|
+
height?: number | null;
|
|
46
|
+
weightUnit?: WeightUnit;
|
|
47
|
+
}
|
|
22
48
|
interface RoutineSet {
|
|
23
49
|
setNumber: number;
|
|
24
50
|
repType: RepType;
|
|
@@ -335,4 +361,4 @@ declare const TM_ADJUSTMENT_CONSTANTS: {
|
|
|
335
361
|
readonly MAX_REASON_LENGTH: 160;
|
|
336
362
|
};
|
|
337
363
|
|
|
338
|
-
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateTmEventRequest, 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, 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, type SetLog, type StartWorkoutRequest, type StartWorkoutResponse, TM_ADJUSTMENT_CONSTANTS, type TmEventResponse, type TmEventSummary, type UpsertSetLogRequest, type UserId, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionStatus, type WorkoutSessionSummary };
|
|
364
|
+
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateTmEventRequest, 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, 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, TM_ADJUSTMENT_CONSTANTS, type TmEventResponse, type TmEventSummary, type UpdateProfileRequest, type UpsertSetLogRequest, type UserId, type UserProfile, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionStatus, type WorkoutSessionSummary };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ declare const WORKOUT_SESSION_STATUSES: readonly ["IN_PROGRESS", "COMPLETED", "A
|
|
|
4
4
|
type WorkoutSessionStatus = (typeof WORKOUT_SESSION_STATUSES)[number];
|
|
5
5
|
declare const WEIGHT_UNITS: readonly ["KG", "LB"];
|
|
6
6
|
type WeightUnit = (typeof WEIGHT_UNITS)[number];
|
|
7
|
+
declare const SEXES: readonly ["MALE", "FEMALE"];
|
|
8
|
+
type Sex = (typeof SEXES)[number];
|
|
7
9
|
declare const REP_TYPES: readonly ["FIXED", "RANGE"];
|
|
8
10
|
type RepType = (typeof REP_TYPES)[number];
|
|
9
11
|
declare const PROGRESSION_SCHEMES: readonly ["NONE", "DOUBLE_PROGRESSION", "DYNAMIC_DOUBLE_PROGRESSION", "PROGRAMMED_RTF", "PROGRAMMED_RTF_HYPERTROPHY"];
|
|
@@ -19,6 +21,30 @@ type RoutineId = Brand<string, 'RoutineId'>;
|
|
|
19
21
|
type RoutineDayId = Brand<string, 'RoutineDayId'>;
|
|
20
22
|
type WorkoutSessionId = Brand<string, 'WorkoutSessionId'>;
|
|
21
23
|
type ExerciseId = Brand<string, 'ExerciseId'>;
|
|
24
|
+
interface UserProfile {
|
|
25
|
+
id: string;
|
|
26
|
+
email: string;
|
|
27
|
+
name: string;
|
|
28
|
+
lastName?: string | null;
|
|
29
|
+
avatarUrl?: string | null;
|
|
30
|
+
age?: number | null;
|
|
31
|
+
sex?: Sex | null;
|
|
32
|
+
weight?: number | null;
|
|
33
|
+
height?: number | null;
|
|
34
|
+
weightUnit: WeightUnit;
|
|
35
|
+
createdAt: IsoDateString;
|
|
36
|
+
updatedAt: IsoDateString;
|
|
37
|
+
}
|
|
38
|
+
interface UpdateProfileRequest {
|
|
39
|
+
name?: string;
|
|
40
|
+
lastName?: string | null;
|
|
41
|
+
avatarUrl?: string | null;
|
|
42
|
+
age?: number | null;
|
|
43
|
+
sex?: Sex | null;
|
|
44
|
+
weight?: number | null;
|
|
45
|
+
height?: number | null;
|
|
46
|
+
weightUnit?: WeightUnit;
|
|
47
|
+
}
|
|
22
48
|
interface RoutineSet {
|
|
23
49
|
setNumber: number;
|
|
24
50
|
repType: RepType;
|
|
@@ -335,4 +361,4 @@ declare const TM_ADJUSTMENT_CONSTANTS: {
|
|
|
335
361
|
readonly MAX_REASON_LENGTH: 160;
|
|
336
362
|
};
|
|
337
363
|
|
|
338
|
-
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateTmEventRequest, 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, 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, type SetLog, type StartWorkoutRequest, type StartWorkoutResponse, TM_ADJUSTMENT_CONSTANTS, type TmEventResponse, type TmEventSummary, type UpsertSetLogRequest, type UserId, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionStatus, type WorkoutSessionSummary };
|
|
364
|
+
export { type Brand, type CreateRoutineDayInput, type CreateRoutineExerciseInput, type CreateRoutineRequest, type CreateTmEventRequest, 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, 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, TM_ADJUSTMENT_CONSTANTS, type TmEventResponse, type TmEventSummary, type UpdateProfileRequest, type UpsertSetLogRequest, type UserId, type UserProfile, WEIGHT_UNITS, WORKOUT_SESSION_STATUSES, type WeightUnit, type WorkoutSession, type WorkoutSessionId, type WorkoutSessionStatus, type WorkoutSessionSummary };
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var WORKOUT_SESSION_STATUSES = [
|
|
|
6
6
|
"ABORTED"
|
|
7
7
|
];
|
|
8
8
|
var WEIGHT_UNITS = ["KG", "LB"];
|
|
9
|
+
var SEXES = ["MALE", "FEMALE"];
|
|
9
10
|
var REP_TYPES = ["FIXED", "RANGE"];
|
|
10
11
|
var PROGRESSION_SCHEMES = [
|
|
11
12
|
"NONE",
|
|
@@ -42,6 +43,7 @@ export {
|
|
|
42
43
|
PROGRAM_STYLES,
|
|
43
44
|
PROGRESSION_SCHEMES,
|
|
44
45
|
REP_TYPES,
|
|
46
|
+
SEXES,
|
|
45
47
|
TM_ADJUSTMENT_CONSTANTS,
|
|
46
48
|
WEIGHT_UNITS,
|
|
47
49
|
WORKOUT_SESSION_STATUSES
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunsteel/contracts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com//sunsteel-contracts.git"
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
26
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch"
|
|
26
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
27
|
+
"prepublishOnly": "npm run build"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"tsup": "^8.3.5",
|
|
30
31
|
"typescript": "^5.7.3"
|
|
31
32
|
}
|
|
32
|
-
}
|
|
33
|
+
}
|