import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/calendars'; /** * Calendars Service * Documentation for Calendars API */ export declare class Calendars { private client; constructor(httpClient: AxiosInstance); /** * Get Groups * Get all calendar groups in a location. */ getGroups(params: { locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Create Calendar Group * Create Calendar Group */ createCalendarGroup(requestBody: Models.GroupCreateDTO, options?: AxiosRequestConfig): Promise; /** * Validate group slug * Validate if group slug is available or not. */ validateGroupsSlug(requestBody: Models.ValidateGroupSlugPostBody, options?: AxiosRequestConfig): Promise; /** * Delete Group * Delete Group */ deleteGroup(params: { groupId: string; }, options?: AxiosRequestConfig): Promise; /** * Update Group * Update Group by group ID */ editGroup(params: { groupId: string; }, requestBody: Models.GroupUpdateDTO, options?: AxiosRequestConfig): Promise; /** * Disable Group * Disable Group */ disableGroup(params: { groupId: string; }, requestBody: Models.GroupStatusUpdateParams, options?: AxiosRequestConfig): Promise; /** * Create appointment * Create appointment */ createAppointment(requestBody: Models.AppointmentCreateSchema, options?: AxiosRequestConfig): Promise; /** * Update Appointment * Update appointment */ editAppointment(params: { eventId: string; }, requestBody: Models.AppointmentEditSchema, options?: AxiosRequestConfig): Promise; /** * Get Appointment * Get appointment by ID */ getAppointment(params: { eventId: string; }, options?: AxiosRequestConfig): Promise; /** * Get Calendar Events * Get Calendar Events */ getCalendarEvents(params: { locationId: string; userId?: string; calendarId?: string; groupId?: string; startTime: string; endTime: string; }, options?: AxiosRequestConfig): Promise; /** * Get Blocked Slots * Get Blocked Slots */ getBlockedSlots(params: { locationId: string; userId?: string; calendarId?: string; groupId?: string; startTime: string; endTime: string; }, options?: AxiosRequestConfig): Promise; /** * Create Block Slot * Create block slot */ createBlockSlot(requestBody: Models.BlockSlotCreateRequestDTO, options?: AxiosRequestConfig): Promise; /** * Update Block Slot * Update block slot by ID */ editBlockSlot(params: { eventId: string; }, requestBody: Models.BlockSlotEditRequestDTO, options?: AxiosRequestConfig): Promise; /** * Get Free Slots * Get free slots for a calendar between a date range. Optionally a consumer can also request free slots in a particular timezone and also for a particular user. */ getSlots(params: { calendarId: string; startDate: number; endDate: number; timezone?: string; userId?: string; userIds?: string[]; }, options?: AxiosRequestConfig): Promise; /** * Update Calendar * Update calendar by ID. */ updateCalendar(params: { calendarId: string; }, requestBody: Models.CalendarUpdateDTO, options?: AxiosRequestConfig): Promise; /** * Get Calendar * Get calendar by ID */ getCalendar(params: { calendarId: string; }, options?: AxiosRequestConfig): Promise; /** * Delete Calendar * Delete calendar by ID */ deleteCalendar(params: { calendarId: string; }, options?: AxiosRequestConfig): Promise; /** * Delete Event * Delete event by ID */ deleteEvent(params: { eventId: string; }, requestBody: Models.DeleteAppointmentSchema, options?: AxiosRequestConfig): Promise; /** * Get Notes * Get Appointment Notes */ getAppointmentNotes(params: { limit: number; offset: number; appointmentId: string; }, options?: AxiosRequestConfig): Promise; /** * Create Note * Create Note */ createAppointmentNote(params: { appointmentId: string; }, requestBody: Models.NotesDTO, options?: AxiosRequestConfig): Promise; /** * Update Note * Update Note */ updateAppointmentNote(params: { noteId: string; appointmentId: string; }, requestBody: Models.NotesDTO, options?: AxiosRequestConfig): Promise; /** * Delete Note * Delete Note */ deleteAppointmentNote(params: { noteId: string; appointmentId: string; }, options?: AxiosRequestConfig): Promise; /** * Get Calendar Resource * Get calendar resource by ID */ getCalendarResource(params: { resourceType: string; id: string; }, options?: AxiosRequestConfig): Promise; /** * Update Calendar Resource * Update calendar resource by ID */ updateCalendarResource(params: { resourceType: string; id: string; }, requestBody: Models.UpdateCalendarResourceDTO, options?: AxiosRequestConfig): Promise; /** * Delete Calendar Resource * Delete calendar resource by ID */ deleteCalendarResource(params: { resourceType: string; id: string; }, options?: AxiosRequestConfig): Promise; /** * List Calendar Resources * List calendar resources by resource type and location ID */ fetchCalendarResources(params: { resourceType: string; locationId: string; limit: number; skip: number; }, options?: AxiosRequestConfig): Promise; /** * Create Calendar Resource * Create calendar resource by resource type */ createCalendarResource(params: { resourceType: string; }, requestBody: Models.CreateCalendarResourceDTO, options?: AxiosRequestConfig): Promise; /** * Get notifications * Get calendar notifications based on query */ getEventNotification(params: { calendarId: string; isActive?: boolean; deleted?: boolean; limit?: number; skip?: number; }, options?: AxiosRequestConfig): Promise; /** * Create notification * Create Calendar notifications, either one or multiple. All notification settings must be for single calendar only */ createEventNotification(params: { calendarId: string; }, requestBody: Models.CreateCalendarNotificationDTO[], options?: AxiosRequestConfig): Promise; /** * Get notification * Find Event notification by notificationId */ findEventNotification(params: { calendarId: string; notificationId: string; }, options?: AxiosRequestConfig): Promise; /** * Update notification * Update Event notification by id */ updateEventNotification(params: { calendarId: string; notificationId: string; }, requestBody: Models.UpdateCalendarNotificationsDTO, options?: AxiosRequestConfig): Promise; /** * Delete Notification * Delete notification */ deleteEventNotification(params: { calendarId: string; notificationId: string; }, options?: AxiosRequestConfig): Promise; /** * List user availability schedule * Retrieve user availability schedules based on various filters including location, calendar, and user. Supports pagination. */ getAllSchedules(params: { locationId: string; userId: string; calendarId?: string; skip?: number; limit?: number; }, options?: AxiosRequestConfig): Promise; /** * Get user availability schedule * Retrieve a specific schedule by its unique identifier. Returns detailed information including rules, timezone, and associated calendars/users. */ getScheduleById(params: { id: string; }, options?: AxiosRequestConfig): Promise; /** * Update user availability schedule * Modify an existing schedule by updating its rules, timezone, and name All fields are optional - only provided fields will be updated. */ updateSchedule(params: { id: string; }, requestBody: Models.UpdateScheduleDTO, options?: AxiosRequestConfig): Promise; /** * Delete user availability schedule * Permanently remove a schedule and all its associated rules. This action cannot be undone. */ deleteSchedule(params: { id: string; }, options?: AxiosRequestConfig): Promise; /** * Create user availability schedule * Create new schedule with specified rules, timezone, location, user and calendar associations. */ createSchedule(requestBody: Models.CreateScheduleDTO, options?: AxiosRequestConfig): Promise; /** * Apply user availability schedule to a calendar * Associates a calendar with the given schedule by adding the calendarId to a schedule */ addCalendarToSchedule(params: { id: string; calendarId: string; }, options?: AxiosRequestConfig): Promise; /** * Remove user availability schedule from a calendar * Removes the association between a team calendar and the given schedule by removing the calendarId from the schedule */ removeCalendarFromSchedule(params: { id: string; calendarId: string; }, options?: AxiosRequestConfig): Promise; /** * Get Calendars * Get all calendars in a location. */ getCalendars(params: { locationId: string; groupId?: string; showDrafted?: boolean; }, options?: AxiosRequestConfig): Promise; /** * Create Calendar * Create calendar in a location. */ createCalendar(requestBody: Models.CalendarCreateDTO, options?: AxiosRequestConfig): Promise; } export default Calendars; //# sourceMappingURL=calendars.d.ts.map