Tiempo y asistencia
Tiempo de trabajo, permisos, horarios y días festivos — registra y lee asistencia programáticamente.
Tiempo de Trabajo
Endpoints
| GET | /employee-working-hours | Recupera la colección de recursos WorkTime. |
| POST | /employee-working-hours | Crea un recurso WorkTime. |
| GET | /employee-working-hours/{id} | Recupera un recurso WorkTime. |
| PATCH | /employee-working-hours/{id} | Actualiza el recurso WorkTime. |
| DELETE | /employee-working-hours/{id} | Elimina el recurso WorkTime. |
| GET | /work-times | Recupera la colección de recursos WorkTime. |
| POST | /work-times | Crea un recurso WorkTime. |
| GET | /work-times/{id} | Recupera un recurso WorkTime. |
| PATCH | /work-times/{id} | Actualiza el recurso WorkTime. |
| DELETE | /work-times/{id} | Elimina el recurso WorkTime. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | integer | |
| employee* | string (iri-reference) | |
| project* | string (iri-reference) | |
| date* | string (date-time) | |
| seconds* | integer | |
| description | stringnull | |
| projectTask | string,null (iri-reference) | Optional link to a {@see ProjectTask}. Nullable; existing rows have no link. Set by the Surface 1 picker chip and by Surface 2's close-and-log panel. The validator {@see \App\Validator\WorkTime\WorkTimeProjectTaskConsistencyConstraint} enforces that projectTask.project === workTime.project when this FK is set. On ProjectTask deletion the column is SET NULL — the time logged is preserved, the link is forgotten. |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| deletedAt | string,null (date-time) | |
| deleted | boolean | Check if the entity has been soft deleted. |
Día Festivo
Endpoints
| GET | /holidays | Recupera la colección de recursos Holiday. |
| POST | /holidays | Crea un recurso Holiday. |
| GET | /holidays/{id} | Recupera un recurso Holiday. |
| PATCH | /holidays/{id} | Actualiza el recurso Holiday. |
| DELETE | /holidays/{id} | Elimina el recurso Holiday. |
| GET | /holidays/active | Recupera la colección de recursos Holiday. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | integer | |
| type | string | |
| employee* | string (iri-reference) | |
| manager | string (iri-reference) | |
| description | stringnull | |
| dateFrom | string (date-time) | |
| dateTo | string (date-time) | |
| seconds | integernull | |
| requestedSeconds | integernull | |
| holidayRequests | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| deletedAt | string,null (date-time) | |
| employeeFullname | string | |
| employeeReversedFullname | string | |
| relatedEmployee | string,null (iri-reference) | |
| deleted | boolean | Check if the entity has been soft deleted. |
Horario
Endpoints
| GET | /schedules | Recupera la colección de recursos Schedule. |
| POST | /schedules | Crea un recurso Schedule. |
| GET | /schedules/{id} | Recupera un recurso Schedule. |
| PATCH | /schedules/{id} | Actualiza el recurso Schedule. |
| GET | /schedules/plan/{date} | Recupera la colección de recursos Schedule. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| name | string | |
| description | stringnull | |
| numberOfDays | integer | |
| regular | boolean | |
| overwriteBankHolidays | boolean | |
| scheduleRanges | array | |
| scheduleEmployees | array |
Festivo Nacional
Endpoints
| GET | /bank-holidays | Recupera la colección de recursos BankHoliday. |
| POST | /bank-holidays | Crea un recurso BankHoliday. |
| GET | /bank-holidays/{id} | Recupera un recurso BankHoliday. |
| PATCH | /bank-holidays/{id} | Actualiza el recurso BankHoliday. |
| DELETE | /bank-holidays/{id} | Elimina el recurso BankHoliday. |
| GET | /holiday-days-frees | Recupera la colección de recursos BankHoliday. |
| POST | /holiday-days-frees | Crea un recurso BankHoliday. |
| GET | /holiday-days-frees/{id} | Recupera un recurso BankHoliday. |
| PATCH | /holiday-days-frees/{id} | Actualiza el recurso BankHoliday. |
| DELETE | /holiday-days-frees/{id} | Elimina el recurso BankHoliday. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| date* | string | |
| publicNotes | stringnull | |
| yearFrom | integernull | |
| yearTo | integernull |
Solicitud de Vacaciones
Endpoints
| GET | /holiday-requests | Recupera la colección de recursos HolidayRequest. |
| POST | /holiday-requests | Crea un recurso HolidayRequest. |
| GET | /holiday-requests/{id} | Recupera un recurso HolidayRequest. |
| PATCH | /holiday-requests/{id} | Actualiza el recurso HolidayRequest. |
| DELETE | /holiday-requests/{id} | Elimina el recurso HolidayRequest. |
| POST | /holiday-requests/{id}/approve | Crea un recurso HolidayRequest. |
| POST | /holiday-requests/{id}/reject | Crea un recurso HolidayRequest. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | integer | |
| status | string | |
| employee | string (iri-reference) | |
| holiday | string,null (iri-reference) | |
| type* | string | |
| description | stringnull | |
| dateFrom | string (date-time) | |
| dateTo | string (date-time) | |
| seconds | integernull | |
| requestedSeconds | integernull | |
| holidayRequestLogs | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| requestedAt | datetime |
Tipo de Vacaciones
Endpoints
| GET | /holiday-types | Recupera la colección de recursos HolidayType. |
| POST | /holiday-types | Crea un recurso HolidayType. |
| GET | /holiday-types/{id} | Recupera un recurso HolidayType. |
| PATCH | /holiday-types/{id} | Actualiza el recurso HolidayType. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| status | string | |
| name* | string | |
| color | string | |
| descriptionRequired | boolean | |
| icon | stringnull |
Límite de Días de Vacaciones
Endpoints
| GET | /holiday-days-limits | Recupera la colección de recursos HolidayDaysLimit. |
| POST | /holiday-days-limits | Crea un recurso HolidayDaysLimit. |
| GET | /holiday-days-limits/{id} | Recupera un recurso HolidayDaysLimit. |
| PATCH | /holiday-days-limits/{id} | Actualiza el recurso HolidayDaysLimit. |
| DELETE | /holiday-days-limits/{id} | Elimina el recurso HolidayDaysLimit. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | integer | |
| employee* | string (iri-reference) | |
| days* | integer | |
| holidayType | string,null (iri-reference) | |
| variant* | string | |
| allowRequestWhenUsed | boolean | |
| dateFrom | string (date-time) | |
| notes | stringnull | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| relatedEmployee | string,null (iri-reference) |
Límite de Días de Vacaciones por Defecto
Endpoints
| GET | /holiday-days-limit-defaults | Recupera la colección de recursos HolidayDaysLimitDefault. |
| POST | /holiday-days-limit-defaults | Crea un recurso HolidayDaysLimitDefault. |
| GET | /holiday-days-limit-defaults/{id} | Recupera un recurso HolidayDaysLimitDefault. |
| PATCH | /holiday-days-limit-defaults/{id} | Actualiza el recurso HolidayDaysLimitDefault. |
| DELETE | /holiday-days-limit-defaults/{id} | Elimina el recurso HolidayDaysLimitDefault. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | string | |
| holidayType | string (iri-reference) | |
| days* | integer | |
| variant* | string | |
| allowRequestWhenUsed | boolean | |
| dateFrom | string (date-time) | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Empleado del Horario
Endpoints
| GET | /schedule-employees | Recupera la colección de recursos ScheduleEmployee. |
| POST | /schedule-employees | Crea un recurso ScheduleEmployee. |
| GET | /schedule-employees/{id} | Recupera un recurso ScheduleEmployee. |
| PATCH | /schedule-employees/{id} | Actualiza el recurso ScheduleEmployee. |
| DELETE | /schedule-employees/{id} | Elimina el recurso ScheduleEmployee. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| employee | string (iri-reference) | |
| schedule | string (iri-reference) | |
| dateFrom | string (date-time) | |
| dateTo | string,null (date-time) | |
| type | string | |
| notifiedAt | string,null (date-time) |
Rango del Horario
Endpoints
| GET | /schedule-ranges | Recupera la colección de recursos ScheduleRange. |
| POST | /schedule-ranges | Crea un recurso ScheduleRange. |
| GET | /schedule-ranges/{id} | Recupera un recurso ScheduleRange. |
| PATCH | /schedule-ranges/{id} | Actualiza el recurso ScheduleRange. |
| DELETE | /schedule-ranges/{id} | Elimina el recurso ScheduleRange. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | string | |
| schedule | object | |
| day | integer | |
| timeFrom | integer | |
| timeTo | integer | |
| name | stringnull |