Function: createMaxHoursDayRule()
Parameters
| Parameter | Type |
|---|---|
config | { dateRange?: { end: string; start: string; }; dayOfWeek?: ( | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[]; employeeIds?: string[]; hours: number; priority: "LOW" | "MEDIUM" | "HIGH" | "MANDATORY"; recurringPeriods?: { endDay: number; endMonth: number; name: string; startDay: number; startMonth: number; }[]; roleIds?: string[]; skillIds?: string[]; specificDates?: string[]; } |
config.dateRange? | { end: string; start: string; } |
config.dateRange.end | string |
config.dateRange.start | string |
config.dayOfWeek? | ( | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[] |
config.employeeIds? | string[] |
config.hours | number |
config.priority | "LOW" | "MEDIUM" | "HIGH" | "MANDATORY" |
config.recurringPeriods? | { endDay: number; endMonth: number; name: string; startDay: number; startMonth: number; }[] |
config.roleIds? | string[] |
config.skillIds? | string[] |
config.specificDates? | string[] |
Returns
CompilationRule