mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 15:05:45 +01:00
added admin check for deletion and updates
This commit is contained in:
@@ -17,4 +17,21 @@
|
||||
* Automatically fixes data structure inconsistencies:
|
||||
- timeSlotId mapping (handles both naming conventions)
|
||||
- requiredEmployees fallback to 2 if missing
|
||||
- assignedEmployees fallback to empty array if missing
|
||||
- assignedEmployees fallback to empty array if missing
|
||||
|
||||
## Availability
|
||||
|
||||
### [UPDATE] availability
|
||||
* planId: required valid UUID
|
||||
* availabilities: required array with strict validation:
|
||||
- shiftId: valid UUID
|
||||
- preferenceLevel: 0 (unavailable), 1 (available), or 2 (preferred)
|
||||
- notes: optional, max 500 characters
|
||||
|
||||
## Scheduling
|
||||
|
||||
### [ACTION: generate schedule]
|
||||
* shiftPlan: required object with id (valid UUID)
|
||||
* employees: required array with at least one employee, each with valid UUID
|
||||
* availabilities: required array
|
||||
* constraints: optional array
|
||||
|
||||
Reference in New Issue
Block a user