Class CalendarsConnectorAbstract

Hierarchy (view full)

Constructors

Properties

TABLES: any = ...

The dynamoDB tables involved.

dynamoDB: any
token: string

The access token used to perform API requests.

Methods

  • Get/put for each appointment (one by one) to avoid erasing the linked objects; no error checking.

    Parameters

    • appointments: Appointment[]
    • OptionaldirectPut: boolean

    Returns Promise<void>

  • Connect the calendar with its external link.

    Parameters

    • calendarId: string
    • code: string
    • projectURL: string

    Returns Promise<void>

  • Delete an appointment from the external calendar.

    Parameters

    • calendar: Calendar
    • appointmentId: string

    Returns Promise<void>

  • Get an access token for the service.

    Parameters

    • calendar: Calendar
    • Optionalforce: boolean

    Returns Promise<string>

  • Get an appointment from the external calendar.

    Parameters

    • calendar: Calendar
    • appointmentId: string

    Returns Promise<Appointment>

  • Add an appointment in the external calendar and return it updated with external information.

    Parameters

    • calendar: Calendar
    • appointment: Appointment

    Returns Promise<Appointment>

  • Edit an appointment in the external calendar.

    Parameters

    • calendar: Calendar
    • appointment: Appointment

    Returns Promise<void>

  • Synchronise the given calendar with its linked one.

    Parameters

    • calendar: Calendar
    • OptionalfirstSync: boolean

    Returns Promise<boolean>

  • Update the attendance status of an appointment.

    Parameters

    • calendar: Calendar
    • appointment: Appointment
    • attendance: AppointmentAttendance

    Returns Promise<void>

  • Update the configuration of the calendar with external data.

    Parameters

    • calendar: Calendar

    Returns Promise<Calendar>