Hierarchy

  • SpecialCalendars

Methods

create

  • Create a new calendar of exception days.

    Returns SpecialCalendar

getById

  • Get calendar of exception days by its ID.

    If the calendar cannot be found (for example, it has been deleted), the method returns undefined.

    Parameters

    • id: string

      ID of the celandar of exeption days.

    Returns Promise<SpecialCalendar | undefined>

list

  • list(size?: undefined | number, from?: undefined | number): Promise<SpecialCalendar[]>
  • Get a list of calendars of exception days of the company.

    When working with a large number of calendarrs, you can get them in portions and set the start of the selection dynamically.

    Parameters

    • Optional size: undefined | number

      Number of calendars to get. The default value is 10.

    • Optional from: undefined | number

      Number of entries to skip. The default value is 0.

    Returns Promise<SpecialCalendar[]>