Preparing search index...
The search index is not available
GHL SDK - v1.1.6
GHL SDK
CalendarsClient
Class CalendarsClient
Hierarchy
GhlClient
CalendarsClient
Index
Constructors
constructor
Methods
find
find
By
Id
create
update
remove
find
Free
Slots
find
Groups
create
Group
validate
Group
Slug
remove
Group
update
Group
update
Group
Status
find
Events
find
Blocked
Slots
find
Appointment
By
Id
update
Appointment
create
Appointment
create
Block
Slot
update
Block
Slot
remove
Event
find
Appointment
Notes
create
Appointment
Note
update
Appointment
Note
remove
Appointment
Note
find
Resource
By
Id
update
Resource
delete
Resource
find
Resources
By
Type
create
Calendar
Resource
find
Notifications
create
Notifications
find
Notification
By
Id
update
Notification
remove
Notification
Constructors
constructor
new
CalendarsClient
(
accessToken
:
string
)
:
CalendarsClient
Parameters
accessToken
:
string
Returns
CalendarsClient
Methods
find
find
(
params
:
CalendarSearchParams
)
:
Promise
<
ListCalendarsResponse
>
Parameters
params
:
CalendarSearchParams
Returns
Promise
<
ListCalendarsResponse
>
find
By
Id
findById
(
id
:
string
)
:
Promise
<
GetCalendarResponse
>
Parameters
id
:
string
Returns
Promise
<
GetCalendarResponse
>
create
create
(
dto
:
CreateCalendarDto
)
:
Promise
<
GetCalendarResponse
>
Parameters
dto
:
CreateCalendarDto
Returns
Promise
<
GetCalendarResponse
>
update
update
(
id
:
string
,
dto
:
UpdateCalendarDto
)
:
Promise
<
GetCalendarResponse
>
Parameters
id
:
string
dto
:
UpdateCalendarDto
Returns
Promise
<
GetCalendarResponse
>
remove
remove
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
find
Free
Slots
findFreeSlots
(
calendarId
:
string
)
:
Promise
<
GetCalendarSlotsResponse
>
Parameters
calendarId
:
string
Returns
Promise
<
GetCalendarSlotsResponse
>
find
Groups
findGroups
(
calendarId
:
string
)
:
Promise
<
ListCalendarGroupsResponse
>
Parameters
calendarId
:
string
Returns
Promise
<
ListCalendarGroupsResponse
>
create
Group
createGroup
(
dto
:
CreateCalendarGroupDto
,
)
:
Promise
<
CreateUpdateCalendarGroupResponse
>
Parameters
dto
:
CreateCalendarGroupDto
Returns
Promise
<
CreateUpdateCalendarGroupResponse
>
validate
Group
Slug
validateGroupSlug
(
dto
:
ValidateCalendarGroupSlugDto
,
)
:
Promise
<
ValidateCalendarGroupSlugResponse
>
Parameters
dto
:
ValidateCalendarGroupSlugDto
Returns
Promise
<
ValidateCalendarGroupSlugResponse
>
remove
Group
removeGroup
(
groupId
:
string
)
:
Promise
<
SuccessDeleteResponse
>
Parameters
groupId
:
string
Returns
Promise
<
SuccessDeleteResponse
>
update
Group
updateGroup
(
groupId
:
string
,
dto
:
UpdateCalendarGroupDto
,
)
:
Promise
<
CreateUpdateCalendarGroupResponse
>
Parameters
groupId
:
string
dto
:
UpdateCalendarGroupDto
Returns
Promise
<
CreateUpdateCalendarGroupResponse
>
update
Group
Status
updateGroupStatus
(
groupId
:
string
,
isActive
:
boolean
,
)
:
Promise
<
UpdateCalendarGroupStatusResponse
>
Parameters
groupId
:
string
isActive
:
boolean
Returns
Promise
<
UpdateCalendarGroupStatusResponse
>
find
Events
findEvents
(
params
:
CalendarEventSearchParams
,
)
:
Promise
<
ListCalendarEventsResponse
>
Parameters
params
:
CalendarEventSearchParams
Returns
Promise
<
ListCalendarEventsResponse
>
find
Blocked
Slots
findBlockedSlots
(
params
:
CalendarEventSearchParams
,
)
:
Promise
<
ListCalendarEventsResponse
>
Parameters
params
:
CalendarEventSearchParams
Returns
Promise
<
ListCalendarEventsResponse
>
find
Appointment
By
Id
findAppointmentById
(
eventId
:
string
)
:
Promise
<
GetCalendarEventResponse
>
Parameters
eventId
:
string
Returns
Promise
<
GetCalendarEventResponse
>
update
Appointment
updateAppointment
(
eventId
:
string
,
dto
:
AppointmentCreateUpdateDto
,
)
:
Promise
<
AppointmentCreateUpdateResponse
>
Parameters
eventId
:
string
dto
:
AppointmentCreateUpdateDto
Returns
Promise
<
AppointmentCreateUpdateResponse
>
create
Appointment
createAppointment
(
dto
:
AppointmentCreateUpdateDto
,
)
:
Promise
<
AppointmentCreateUpdateResponse
>
Parameters
dto
:
AppointmentCreateUpdateDto
Returns
Promise
<
AppointmentCreateUpdateResponse
>
create
Block
Slot
createBlockSlot
(
dto
:
CreateBlockSlotDto
)
:
Promise
<
BlockSlotCreateUpdateResponse
>
Parameters
dto
:
CreateBlockSlotDto
Returns
Promise
<
BlockSlotCreateUpdateResponse
>
update
Block
Slot
updateBlockSlot
(
eventId
:
string
,
dto
:
UpdateBlockSlotDto
,
)
:
Promise
<
BlockSlotCreateUpdateResponse
>
Parameters
eventId
:
string
dto
:
UpdateBlockSlotDto
Returns
Promise
<
BlockSlotCreateUpdateResponse
>
remove
Event
removeEvent
(
eventId
:
string
)
:
Promise
<
SuccededDeleteResponse
>
Parameters
eventId
:
string
Returns
Promise
<
SuccededDeleteResponse
>
find
Appointment
Notes
findAppointmentNotes
(
appointmentId
:
string
,
)
:
Promise
<
ListAppointmentNotesResponse
>
Parameters
appointmentId
:
string
Returns
Promise
<
ListAppointmentNotesResponse
>
create
Appointment
Note
createAppointmentNote
(
appointmentId
:
string
,
dto
:
AppointmentNoteDto
,
)
:
Promise
<
AppointmentNoteResponse
>
Parameters
appointmentId
:
string
dto
:
AppointmentNoteDto
Returns
Promise
<
AppointmentNoteResponse
>
update
Appointment
Note
updateAppointmentNote
(
appointmentId
:
string
,
noteId
:
string
,
dto
:
AppointmentNoteDto
,
)
:
Promise
<
AppointmentNoteResponse
>
Parameters
appointmentId
:
string
noteId
:
string
dto
:
AppointmentNoteDto
Returns
Promise
<
AppointmentNoteResponse
>
remove
Appointment
Note
removeAppointmentNote
(
appointmentId
:
string
,
noteId
:
string
,
)
:
Promise
<
SuccessDeleteResponse
>
Parameters
appointmentId
:
string
noteId
:
string
Returns
Promise
<
SuccessDeleteResponse
>
find
Resource
By
Id
findResourceById
(
resourceId
:
string
,
resourceType
:
CalendarResourceType
,
)
:
Promise
<
CalendarResourceResponse
>
Parameters
resourceId
:
string
resourceType
:
CalendarResourceType
Returns
Promise
<
CalendarResourceResponse
>
update
Resource
updateResource
(
resourceId
:
string
,
resourceType
:
CalendarResourceType
,
dto
:
UpdateCalendarResourceDto
,
)
:
Promise
<
CalendarResourceResponse
>
Parameters
resourceId
:
string
resourceType
:
CalendarResourceType
dto
:
UpdateCalendarResourceDto
Returns
Promise
<
CalendarResourceResponse
>
delete
Resource
deleteResource
(
resourceId
:
string
,
resourceType
:
CalendarResourceType
,
)
:
Promise
<
SuccessDeleteResponse
>
Parameters
resourceId
:
string
resourceType
:
CalendarResourceType
Returns
Promise
<
SuccessDeleteResponse
>
find
Resources
By
Type
findResourcesByType
(
resourceType
:
CalendarResourceType
,
params
:
CalendarResourceSearchParams
,
)
:
Promise
<
CalendarResourceResponse
[]
>
Parameters
resourceType
:
CalendarResourceType
params
:
CalendarResourceSearchParams
Returns
Promise
<
CalendarResourceResponse
[]
>
create
Calendar
Resource
createCalendarResource
(
resourceType
:
CalendarResourceType
,
dto
:
CreateCalendarResourceDto
,
)
:
Promise
<
CalendarResourceResponse
>
Parameters
resourceType
:
CalendarResourceType
dto
:
CreateCalendarResourceDto
Returns
Promise
<
CalendarResourceResponse
>
find
Notifications
findNotifications
(
calendarId
:
string
,
params
:
CalendarNotificationSearchParams
,
)
:
Promise
<
CalendarNotificationDetails
[]
>
Parameters
calendarId
:
string
params
:
CalendarNotificationSearchParams
Returns
Promise
<
CalendarNotificationDetails
[]
>
create
Notifications
createNotifications
(
calendarId
:
string
,
dto
:
CalendarNotificationDto
[]
,
)
:
Promise
<
CalendarNotificationDetails
[]
>
Parameters
calendarId
:
string
dto
:
CalendarNotificationDto
[]
Returns
Promise
<
CalendarNotificationDetails
[]
>
find
Notification
By
Id
findNotificationById
(
calendarId
:
string
,
notificationId
:
string
,
)
:
Promise
<
CalendarNotificationDetails
>
Parameters
calendarId
:
string
notificationId
:
string
Returns
Promise
<
CalendarNotificationDetails
>
update
Notification
updateNotification
(
calendarId
:
string
,
notificationId
:
string
,
dto
:
CalendarNotificationDto
,
)
:
Promise
<
CalendarNotificationOperationResponse
>
Parameters
calendarId
:
string
notificationId
:
string
dto
:
CalendarNotificationDto
Returns
Promise
<
CalendarNotificationOperationResponse
>
remove
Notification
removeNotification
(
calendarId
:
string
,
notificationId
:
string
,
)
:
Promise
<
CalendarNotificationOperationResponse
>
Parameters
calendarId
:
string
notificationId
:
string
Returns
Promise
<
CalendarNotificationOperationResponse
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
find
find
By
Id
create
update
remove
find
Free
Slots
find
Groups
create
Group
validate
Group
Slug
remove
Group
update
Group
update
Group
Status
find
Events
find
Blocked
Slots
find
Appointment
By
Id
update
Appointment
create
Appointment
create
Block
Slot
update
Block
Slot
remove
Event
find
Appointment
Notes
create
Appointment
Note
update
Appointment
Note
remove
Appointment
Note
find
Resource
By
Id
update
Resource
delete
Resource
find
Resources
By
Type
create
Calendar
Resource
find
Notifications
create
Notifications
find
Notification
By
Id
update
Notification
remove
Notification
GHL SDK - v1.1.6
Loading...