Class CalendarsConnectorAbstract
Constructors
Properties
Protected
TABLES
TABLES: any = ...
Protected
dynamoDB
dynamoDB: any
Protected
token
token: string
Methods
Protected
batchGetPutHelper
- batchGetPutHelper(appointments, directPut?): Promise<void>
Parameters
- appointments: Appointment[]
Optional
directPut: boolean
Returns Promise<void>
Abstract
configure
- configure(calendarId, code, projectURL): Promise<void>
Parameters
- calendarId: string
- code: string
- projectURL: string
Returns Promise<void>
Abstract
deleteAppointment
- deleteAppointment(calendar, appointmentId): Promise<void>
Parameters
- calendar: Calendar
- appointmentId: string
Returns Promise<void>
Abstract
getAccessToken
- getAccessToken(calendar, force?): Promise<string>
Parameters
- calendar: Calendar
Optional
force: boolean
Returns Promise<string>
Abstract
getAppointment
- getAppointment(calendar, appointmentId): Promise<Appointment>
Parameters
- calendar: Calendar
- appointmentId: string
Returns Promise<Appointment>
Abstract
postAppointment
- postAppointment(calendar, appointment): Promise<Appointment>
Parameters
- calendar: Calendar
- appointment: Appointment
Returns Promise<Appointment>
Abstract
putAppointment
- putAppointment(calendar, appointment): Promise<void>
Parameters
- calendar: Calendar
- appointment: Appointment
Returns Promise<void>
Abstract
syncCalendar
- syncCalendar(calendar, firstSync?): Promise<boolean>
Parameters
- calendar: Calendar
Optional
firstSync: boolean
Returns Promise<boolean>
Abstract
updateAppointmentAttendance
- updateAppointmentAttendance(calendar, appointment, attendance): Promise<void>
Parameters
- calendar: Calendar
- appointment: Appointment
- attendance: AppointmentAttendance
Returns Promise<void>
Abstract
updateCalendarConfiguration
- updateCalendarConfiguration(calendar): Promise<Calendar>
Returns Promise<Calendar>
Initialise the connector with a dynamoDB instance to use and the prefix for RESPONSE_URI.