WorkScheduleDto
Backend-источник: feature.managertimetrackerservice/Feature.ManagerTimeTrackerService/Nuget.ManagerTimeTrackerApiClient/Dto/WorkSchedule/WorkScheduleDto.cs (feature.managertimetrackerservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
id | number | да | — | int |
userId | number | да | — | int |
validFrom | string | да | ISO YYYY-MM-DD | DateOnly |
validTo | string | null | да | ISO YYYY-MM-DD or null for an open-ended schedule. | DateOnly? |
isFullTime | boolean | да | — | bool |
employmentRate | number | да | Decimal between 0 and 1 (e.g. 0.5 = half-time). | decimal |
mondayStart | string | null | да | ISO HH:mm:ss; null if no shift on that weekday. | TimeOnly? |
mondayEnd | string | null | да | — | TimeOnly? |
tuesdayStart | string | null | да | — | TimeOnly? |
tuesdayEnd | string | null | да | — | TimeOnly? |
wednesdayStart | string | null | да | — | TimeOnly? |
wednesdayEnd | string | null | да | — | TimeOnly? |
thursdayStart | string | null | да | — | TimeOnly? |
thursdayEnd | string | null | да | — | TimeOnly? |
fridayStart | string | null | да | — | TimeOnly? |
fridayEnd | string | null | да | — | TimeOnly? |
saturdayStart | string | null | да | — | TimeOnly? |
saturdayEnd | string | null | да | — | TimeOnly? |
sundayStart | string | null | да | — | TimeOnly? |
sundayEnd | string | null | да | — | TimeOnly? |
lunchBreakMinutes | number | да | — | int |
annualVacationDays | number | да | — | int |
note | string | null | да | — | string? |
mondayMinutes | number | да | Computed: planned minutes per weekday (start-to-end minus lunch break). | int |
tuesdayMinutes | number | да | — | int |
wednesdayMinutes | number | да | — | int |
thursdayMinutes | number | да | — | int |
fridayMinutes | number | да | — | int |
saturdayMinutes | number | да | — | int |
sundayMinutes | number | да | — | int |
weeklyMinutes | number | да | Sum of the 7 weekday minutes. | int |
Пример
json
{
"id": 0,
"userId": 0,
"validFrom": "2026-05-05T08:00:00Z",
"validTo": "2026-05-05T08:00:00Z",
"isFullTime": false,
"employmentRate": 0,
"mondayStart": "string",
"mondayEnd": "string",
"tuesdayStart": "string",
"tuesdayEnd": "string",
"wednesdayStart": "string",
"wednesdayEnd": "string",
"thursdayStart": "string",
"thursdayEnd": "string",
"fridayStart": "string",
"fridayEnd": "string",
"saturdayStart": "string",
"saturdayEnd": "string",
"sundayStart": "string",
"sundayEnd": "string",
"lunchBreakMinutes": 0,
"annualVacationDays": 0,
"note": "string",
"mondayMinutes": 0,
"tuesdayMinutes": 0,
"wednesdayMinutes": 0,
"thursdayMinutes": 0,
"fridayMinutes": 0,
"saturdayMinutes": 0,
"sundayMinutes": 0,
"weeklyMinutes": 0
}