Rollback - PDF Import funzt so semi
Dieser Commit ist enthalten in:
97
shared/index.d.ts
vendored
97
shared/index.d.ts
vendored
@ -87,6 +87,7 @@ export interface LoginResponse {
|
||||
}
|
||||
|
||||
export const ROLE_PERMISSIONS: Record<UserRole, string[]>
|
||||
|
||||
export const DEFAULT_SKILLS: Record<string, string[]>
|
||||
export const LANGUAGE_LEVELS: string[]
|
||||
export interface SkillLevel { id: string; name: string; level?: string }
|
||||
@ -118,3 +119,99 @@ export interface WorkspaceFilter {
|
||||
building?: string
|
||||
min_capacity?: number
|
||||
}
|
||||
|
||||
// Organization
|
||||
export type OrganizationalUnitType = 'direktion' | 'abteilung' | 'dezernat' | 'sachgebiet' | 'teildezernat' | 'fuehrungsstelle' | 'stabsstelle' | 'sondereinheit'
|
||||
export type EmployeeUnitRole = 'leiter' | 'stellvertreter' | 'mitarbeiter' | 'beauftragter'
|
||||
|
||||
export interface OrganizationalUnit {
|
||||
id: string
|
||||
code: string
|
||||
name: string
|
||||
type: OrganizationalUnitType
|
||||
level: number
|
||||
parentId?: string | null
|
||||
positionX?: number | null
|
||||
positionY?: number | null
|
||||
color?: string | null
|
||||
orderIndex?: number
|
||||
description?: string | null
|
||||
hasFuehrungsstelle?: boolean
|
||||
fuehrungsstelleName?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: string
|
||||
updatedAt?: string
|
||||
children?: OrganizationalUnit[]
|
||||
employees?: any[]
|
||||
}
|
||||
|
||||
export interface EmployeeUnitAssignment {
|
||||
id: string
|
||||
employeeId: string
|
||||
unitId: string
|
||||
role: EmployeeUnitRole
|
||||
startDate: string
|
||||
endDate?: string | null
|
||||
isPrimary: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export interface SpecialPosition {
|
||||
id: string
|
||||
employeeId: string
|
||||
positionType: string
|
||||
unitId?: string | null
|
||||
startDate: string
|
||||
endDate?: string | null
|
||||
isActive: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export interface DeputyAssignment {
|
||||
id: string
|
||||
principalId: string
|
||||
deputyId: string
|
||||
unitId?: string | null
|
||||
validFrom: string
|
||||
validUntil: string
|
||||
reason?: string | null
|
||||
canDelegate: boolean
|
||||
createdBy: string
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export interface DeputyDelegation {
|
||||
id: string
|
||||
originalAssignmentId: string
|
||||
fromDeputyId: string
|
||||
toDeputyId: string
|
||||
reason?: string | null
|
||||
delegatedAt: string
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
// Bookings (for workspace management)
|
||||
export interface Booking {
|
||||
id: string
|
||||
workspaceId: string
|
||||
userId: string
|
||||
employeeId: string
|
||||
startTime: string
|
||||
endTime: string
|
||||
status: 'confirmed' | 'cancelled' | 'completed' | 'no_show'
|
||||
checkInTime?: string | null
|
||||
checkOutTime?: string | null
|
||||
notes?: string | null
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export interface BookingRequest {
|
||||
workspaceId: string
|
||||
startTime: string
|
||||
endTime: string
|
||||
notes?: string
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren