Hierarchy
- WorkCalendar
Properties
Readonly default
Attribute showing that the calendar is being used as the default calendar.
Optional description
Description.
Optional Readonly id
Unique identifier (uuid).
name
Name.
Methods
delete
-
Deletes the calendar.
Returns Promise<void>
getDays
-
Returns calendar days for the specified year.
Parameters
Returns Promise<readonly Readonly<WorkCalendarDay>[]>
-
Returns calendar days for the specified year.
Parameters
-
year: number
-
Optional startAt: TDate
Returns Promise<readonly Readonly<WorkCalendarDay>[]>
-
getSchedule
-
Get working schedule (cycle).
Returns Readonly<WorkSchedule>
getSpecialCalendar
-
Get associated calendar of exception days.
Returns Promise<SpecialCalendar | undefined>
resetSpecialCalendar
-
Unbind the celandar of exeption days.
Returns void
save
-
Saves the changes made in the calendar.
Returns Promise<void>
setSchedule
-
Set working schedule (cycle).
Parameters
-
schedule: WorkSchedule
Returns void
-
setSpecialCalendar
-
Bind a calendar of exception days.
Parameters
-
calendar: SpecialCalendar
Returns void
-
Business calendar