Initial commit – TimeMaster Zeiterfassung & HR-Tool
Stand: agent-06 (Audit-Log), agent-05 (Krankmeldung), agent-07 Phase 1 (Personalnummer), Busylight-Pull-Integration, TOTP/2FA, Abwesenheiten, Zeiterfassung, Kiosk-Grundgerüst. Migrations 0001–0023 deployed auf 192.168.1.137 + .164. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
from datetime import date, datetime
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class BusylightTokenStatus(BaseModel):
|
||||
configured: bool
|
||||
created_at: datetime | None = None
|
||||
|
||||
|
||||
class BusylightTokenRotated(BaseModel):
|
||||
token: str = Field(..., description="Klartext-Token, wird nur einmal angezeigt.")
|
||||
created_at: datetime
|
||||
|
||||
|
||||
class BusylightAbsenceItem(BaseModel):
|
||||
type: str
|
||||
category: str
|
||||
|
||||
|
||||
class BusylightUserItem(BaseModel):
|
||||
personnel_number: str
|
||||
full_name: str
|
||||
absences_today: list[BusylightAbsenceItem]
|
||||
|
||||
|
||||
class BusylightUsersResponse(BaseModel):
|
||||
date: date
|
||||
users: list[BusylightUserItem]
|
||||
Reference in New Issue
Block a user