Hierarchy

  • SpecialCalendar

Properties

Optional description

description: undefined | string

Calendar description.

Optional Readonly id

id: undefined | string

Unique identifier of the calendar.

name

name: string

Calendar name.

Methods

delete

  • delete(): Promise<void>
  • Delete calendar.

    Returns Promise<void>

deleteDays

  • deleteDays(dates: TDate[]): Promise<void>
  • deleteDays(year: number): Promise<void>
  • Delete all the calendar days for the passed year.

    Parameters

    • dates: TDate[]

      Dates of the deleted days.

    Returns Promise<void>

  • Delete all the calendar days for the passed year.

    Parameters

    • year: number

      Year with days to delete.

    Returns Promise<void>

getDays

  • getDays(from: TDate, to: TDate): Promise<readonly Readonly<SpecialCalendarDay>[]>
  • getDays(year: number): Promise<readonly Readonly<SpecialCalendarDay>[]>
  • Returns calendar days for the specified year.

    Parameters

    Returns Promise<readonly Readonly<SpecialCalendarDay>[]>

  • Returns calendar days for the specified year.

    Parameters

    • year: number

    Returns Promise<readonly Readonly<SpecialCalendarDay>[]>

save

  • save(): Promise<void>
  • Save calendar.

    Returns Promise<void>

saveDays

  • Create or change days in a calendar.

    Parameters

    Returns Promise<void>