Update changes
Dieser Commit ist enthalten in:
44
shared/index.d.ts
vendored
44
shared/index.d.ts
vendored
@ -12,6 +12,11 @@ export interface User {
|
||||
isActive: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
powerUnitId?: string | null
|
||||
powerUnitName?: string | null
|
||||
powerUnitType?: OrganizationalUnitType | null
|
||||
powerFunction?: PowerFunction | null
|
||||
canManageEmployees?: boolean
|
||||
}
|
||||
|
||||
export interface Skill {
|
||||
@ -39,6 +44,15 @@ export interface Clearance {
|
||||
issuedDate: Date
|
||||
}
|
||||
|
||||
export type PowerFunction = 'sachgebietsleitung' | 'stellvertretende_sachgebietsleitung' | 'ermittlungskommissionsleitung' | 'dezernatsleitung' | 'abteilungsleitung'
|
||||
|
||||
export interface PowerFunctionDefinition {
|
||||
id: PowerFunction
|
||||
label: string
|
||||
unitTypes: OrganizationalUnitType[]
|
||||
canManageEmployees: boolean
|
||||
}
|
||||
|
||||
export interface Employee {
|
||||
id: string
|
||||
firstName: string
|
||||
@ -48,6 +62,11 @@ export interface Employee {
|
||||
position: string
|
||||
officialTitle?: string | null
|
||||
department: string
|
||||
departmentDescription?: string | null
|
||||
departmentTasks?: string | null
|
||||
primaryUnitId?: string | null
|
||||
primaryUnitCode?: string | null
|
||||
primaryUnitName?: string | null
|
||||
email?: string | null
|
||||
phone?: string | null
|
||||
mobile?: string | null
|
||||
@ -57,12 +76,23 @@ export interface Employee {
|
||||
languages?: LanguageSkill[]
|
||||
clearance?: Clearance
|
||||
specializations?: string[]
|
||||
currentDeputies?: EmployeeDeputySummary[]
|
||||
represents?: EmployeeDeputySummary[]
|
||||
createdAt: Date | string
|
||||
updatedAt: Date | string
|
||||
createdBy?: string
|
||||
updatedBy?: string | null
|
||||
}
|
||||
|
||||
export interface EmployeeDeputySummary {
|
||||
id: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
availability?: string | null
|
||||
position?: string | null
|
||||
assignmentId?: string
|
||||
}
|
||||
|
||||
export interface SkillDefinition {
|
||||
id: string
|
||||
name: string
|
||||
@ -89,6 +119,8 @@ export interface LoginResponse {
|
||||
|
||||
export const ROLE_PERMISSIONS: Record<UserRole, string[]>
|
||||
|
||||
export const POWER_FUNCTIONS: PowerFunctionDefinition[]
|
||||
|
||||
export const DEFAULT_SKILLS: Record<string, string[]>
|
||||
export const LANGUAGE_LEVELS: string[]
|
||||
export interface SkillLevel { id: string; name: string; level?: string }
|
||||
@ -122,7 +154,7 @@ export interface WorkspaceFilter {
|
||||
}
|
||||
|
||||
// Organization
|
||||
export type OrganizationalUnitType = 'direktion' | 'abteilung' | 'dezernat' | 'sachgebiet' | 'teildezernat' | 'fuehrungsstelle' | 'stabsstelle' | 'sondereinheit'
|
||||
export type OrganizationalUnitType = 'direktion' | 'abteilung' | 'dezernat' | 'sachgebiet' | 'teildezernat' | 'fuehrungsstelle' | 'stabsstelle' | 'sondereinheit' | 'ermittlungskommission'
|
||||
export type EmployeeUnitRole = 'leiter' | 'stellvertreter' | 'mitarbeiter' | 'beauftragter'
|
||||
|
||||
export interface OrganizationalUnit {
|
||||
@ -216,3 +248,13 @@ export interface BookingRequest {
|
||||
endTime: string
|
||||
notes?: string
|
||||
}
|
||||
|
||||
declare const shared: {
|
||||
ROLE_PERMISSIONS: typeof ROLE_PERMISSIONS
|
||||
POWER_FUNCTIONS: typeof POWER_FUNCTIONS
|
||||
DEFAULT_SKILLS: typeof DEFAULT_SKILLS
|
||||
LANGUAGE_LEVELS: typeof LANGUAGE_LEVELS
|
||||
SKILL_HIERARCHY: typeof SKILL_HIERARCHY
|
||||
}
|
||||
|
||||
export default shared
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren