mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2026-01-21 18:39:41 +01:00
moved range to slot for shift planing
This commit is contained in:
@@ -13,24 +13,30 @@ export interface TemplateShiftSlot {
|
||||
id: string;
|
||||
templateId: string;
|
||||
dayOfWeek: number;
|
||||
timeRange: TemplateShiftTimeRange;
|
||||
timeSlot: TemplateShiftTimeSlot;
|
||||
requiredEmployees: number;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
export interface TemplateShiftTimeRange {
|
||||
export interface TemplateShiftTimeSlot {
|
||||
id: string;
|
||||
name: string; // e.g., "Frühschicht", "Spätschicht"
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
}
|
||||
|
||||
export const DEFAULT_TIME_SLOTS: TemplateShiftTimeSlot[] = [
|
||||
{ id: 'morning', name: 'Vormittag', startTime: '08:00', endTime: '12:00' },
|
||||
{ id: 'afternoon', name: 'Nachmittag', startTime: '11:30', endTime: '15:30' },
|
||||
];
|
||||
|
||||
|
||||
export interface CreateShiftTemplateRequest {
|
||||
name: string;
|
||||
description?: string;
|
||||
isDefault: boolean;
|
||||
shifts: Omit<TemplateShiftSlot, 'id' | 'templateId'>[];
|
||||
timeSlots: TemplateShiftTimeRange[];
|
||||
timeSlots: TemplateShiftTimeSlot[];
|
||||
}
|
||||
|
||||
export interface UpdateShiftTemplateRequest {
|
||||
@@ -38,5 +44,5 @@ export interface UpdateShiftTemplateRequest {
|
||||
description?: string;
|
||||
isDefault?: boolean;
|
||||
shifts?: Omit<TemplateShiftSlot, 'id' | 'templateId'>[];
|
||||
timeSlots?: TemplateShiftTimeRange[];
|
||||
timeSlots?: TemplateShiftTimeSlot[];
|
||||
}
|
||||
Reference in New Issue
Block a user