@sunsteel/contracts 0.36.0 → 0.37.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.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1191,6 +1191,11 @@ interface Routine {
|
|
|
1191
1191
|
* aborted session does not advance it), or the first day before any.
|
|
1192
1192
|
*/
|
|
1193
1193
|
nextRotationDayId: string | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* SCHED-07: weekdays (0=Sun..6=Sat) this weekly routine rests on by plan,
|
|
1196
|
+
* never one of its training weekdays; always empty on a ROTATION routine.
|
|
1197
|
+
*/
|
|
1198
|
+
restDays: number[];
|
|
1194
1199
|
days: RoutineDay[];
|
|
1195
1200
|
createdAt: IsoDateString;
|
|
1196
1201
|
updatedAt: IsoDateString;
|
|
@@ -1201,6 +1206,11 @@ interface CreateRoutineRequest {
|
|
|
1201
1206
|
isPeriodized: boolean;
|
|
1202
1207
|
/** Defaults to WEEKLY. Changing it on update requires `days`. */
|
|
1203
1208
|
scheduleMode?: RoutineScheduleMode;
|
|
1209
|
+
/**
|
|
1210
|
+
* Weekly routines only. Omitted on update keeps the stored rest days, minus
|
|
1211
|
+
* any that became training weekdays.
|
|
1212
|
+
*/
|
|
1213
|
+
restDays?: number[];
|
|
1204
1214
|
days: CreateRoutineDayInput[];
|
|
1205
1215
|
}
|
|
1206
1216
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1191,6 +1191,11 @@ interface Routine {
|
|
|
1191
1191
|
* aborted session does not advance it), or the first day before any.
|
|
1192
1192
|
*/
|
|
1193
1193
|
nextRotationDayId: string | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* SCHED-07: weekdays (0=Sun..6=Sat) this weekly routine rests on by plan,
|
|
1196
|
+
* never one of its training weekdays; always empty on a ROTATION routine.
|
|
1197
|
+
*/
|
|
1198
|
+
restDays: number[];
|
|
1194
1199
|
days: RoutineDay[];
|
|
1195
1200
|
createdAt: IsoDateString;
|
|
1196
1201
|
updatedAt: IsoDateString;
|
|
@@ -1201,6 +1206,11 @@ interface CreateRoutineRequest {
|
|
|
1201
1206
|
isPeriodized: boolean;
|
|
1202
1207
|
/** Defaults to WEEKLY. Changing it on update requires `days`. */
|
|
1203
1208
|
scheduleMode?: RoutineScheduleMode;
|
|
1209
|
+
/**
|
|
1210
|
+
* Weekly routines only. Omitted on update keeps the stored rest days, minus
|
|
1211
|
+
* any that became training weekdays.
|
|
1212
|
+
*/
|
|
1213
|
+
restDays?: number[];
|
|
1204
1214
|
days: CreateRoutineDayInput[];
|
|
1205
1215
|
}
|
|
1206
1216
|
type UpdateRoutineRequest = Partial<CreateRoutineRequest>;
|