/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { Response, Headers, BaseApiCore, ErrorStrategyOptionType, PlatformImplementation } from '@managed-api/commons-core'; import { CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyOption } from './errorStrategy'; import { ErrorStrategyBuilder } from './builders/errorStrategy'; import { GetCalendarsFromCalendarListRequest, GetCalendarsFromCalendarListResponseOK } from './types/calendarList'; import { CreateEventRequest, CreateEventResponseOK, DeleteEventRequest, DeleteEventResponseOK, GetEventRequest, GetEventResponseOK, GetEventsRequest, GetEventsResponseOK, UpdateEventRequest, UpdateEventResponseOK } from './types/event'; export interface GoogleCalendarApiCoreOptions extends ErrorStrategyOption { } declare type GetGlobalErrorStrategy = () => ErrorStrategyOptionType | undefined; export declare abstract class GoogleCalendarApiCore extends BaseApiCore { private options?; All: AllGroup; CalendarList: CalendarListGroup; Event: EventGroup; constructor(options?: GoogleCalendarApiCoreOptions | undefined); setGlobalErrorStrategy(errorStrategy: ErrorStrategyOptionType): void; protected buildResponse(url: string, status: number, statusText: string, headers: Headers, body?: string | ArrayBuffer): Response; private getGlobalErrorStrategy; } declare class AllGroup { private CalendarList; private Event; constructor(CalendarList: CalendarListGroup, Event: EventGroup); /** * Returns the calendars on the user's calendar list. * Alternative usage: CalendarList.getCalendarsFromCalendarList * Documentation: https://developers.google.com/calendar/v3/reference/calendarList/list * @param options Request options. */ getCalendarsFromCalendarList(options?: GetCalendarsFromCalendarListRequest): Promise; /** * Deletes an event. * Alternative usage: Event.deleteEvent * Documentation: https://developers.google.com/calendar/v3/reference/events/delete * @param options Request options. */ deleteEvent(options: DeleteEventRequest): Promise; /** * Returns an event. * Alternative usage: Event.getEvent * Documentation: https://developers.google.com/calendar/v3/reference/events/get * @param options Request options. */ getEvent(options: GetEventRequest): Promise; /** * Creates an event. * Alternative usage: Event.createEvent * Documentation: https://developers.google.com/calendar/v3/reference/events/insert * @param options Request options. */ createEvent(options: CreateEventRequest): Promise; /** * Returns events on the specified calendar. * Alternative usage: Event.getEvents * Documentation: https://developers.google.com/calendar/v3/reference/events/list * @param options Request options. */ getEvents(options: GetEventsRequest): Promise; /** * Updates an event. * Alternative usage: Event.updateEvent * Documentation: https://developers.google.com/calendar/v3/reference/events/update * @param options Request options. */ updateEvent(options: UpdateEventRequest): Promise; } declare class CalendarListGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Returns the calendars on the user's calendar list. * Documentation: https://developers.google.com/calendar/v3/reference/calendarList/list * @param options Request options. */ getCalendarsFromCalendarList(options?: GetCalendarsFromCalendarListRequest): Promise; } declare class EventGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Deletes an event. * Documentation: https://developers.google.com/calendar/v3/reference/events/delete * @param options Request options. */ deleteEvent(options: DeleteEventRequest): Promise; /** * Returns an event. * Documentation: https://developers.google.com/calendar/v3/reference/events/get * @param options Request options. */ getEvent(options: GetEventRequest): Promise; /** * Creates an event. * Documentation: https://developers.google.com/calendar/v3/reference/events/insert * @param options Request options. */ createEvent(options: CreateEventRequest): Promise; /** * Returns events on the specified calendar. * Documentation: https://developers.google.com/calendar/v3/reference/events/list * @param options Request options. */ getEvents(options: GetEventsRequest): Promise; /** * Updates an event. * Documentation: https://developers.google.com/calendar/v3/reference/events/update * @param options Request options. */ updateEvent(options: UpdateEventRequest): Promise; } export {}; //# sourceMappingURL=index.d.ts.map