Skip to content

Commit 63a3b70

Browse files
chore(release): v2.2.2
1 parent f5bd807 commit 63a3b70

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## v2.2.2 - 2025-11-07
2+
3+
### Specs changes
4+
5+
**Calendars**:
6+
7+
Added:
8+
- request body field `description` added in `createAppointment` method (optional)
9+
- response body nested field `event.description` added in `getAppointment` method (optional)
10+
- request body field `description` added in `editAppointment` method (optional)
11+
- response body array item field `events[].description` added in `getCalendarEvents` method (optional)
12+
- response body array item field `events[].description` added in `getBlockedSlots` method (optional)
13+
- response body field `additionalPhoneNumbers` added in `findEventNotification` method (optional)
14+
- response body field `additionalWhatsappNumbers` added in `findEventNotification` method (optional)
15+
- request body field `additionalPhoneNumbers` added in `updateEventNotification` method (optional)
16+
- request body field `fromNumber` added in `updateEventNotification` method (optional)
17+
18+
Removed:
19+
- response body `GetSlotsSuccessfulResponseDto` removed in `getSlots` method
20+
21+
### SDK changes
22+
23+
- fix: add return statements and await calls in webhook processing, pass raw body for oauth, remove unique key for tokens and create index for appId and resourceId (f5bd807)
24+
125
## v2.2.1 - 2025-10-07
226

327
### SDK changes

lib/code/calendars/calendars.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export class Calendars {
488488
userIds?: string[];
489489
},
490490
options?: AxiosRequestConfig
491-
): Promise<Models.GetSlotsSuccessfulResponseDto> {
491+
): Promise<any> {
492492
const paramDefs: Array<{name: string, in: string}> = [{name: 'calendarId', in: 'path'},{name: 'startDate', in: 'query'},{name: 'endDate', in: 'query'},{name: 'timezone', in: 'query'},{name: 'userId', in: 'query'},{name: 'userIds', in: 'query'}];
493493
const extracted = extractParams(params, paramDefs);
494494
const requirements: string[] = ["bearer"];
@@ -510,7 +510,7 @@ export class Calendars {
510510
config.headers = { ...config.headers, Authorization: authToken };
511511
}
512512

513-
const response: AxiosResponse<Models.GetSlotsSuccessfulResponseDto> = await this.client.request(config);
513+
const response: AxiosResponse<any> = await this.client.request(config);
514514
return response.data;
515515
}
516516

lib/code/calendars/models/calendars.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export interface AppointmentCreateSchema {
5555
overrideLocationConfig?: boolean;
5656
appointmentStatus?: string;
5757
assignedUserId?: string;
58+
description?: string;
5859
address?: string;
5960
ignoreDateRange?: boolean;
6061
toNotify?: boolean;
@@ -90,6 +91,7 @@ export interface AppointmentEditSchema {
9091
overrideLocationConfig?: boolean;
9192
appointmentStatus?: string;
9293
assignedUserId?: string;
94+
description?: string;
9395
address?: string;
9496
ignoreDateRange?: boolean;
9597
toNotify?: boolean;
@@ -117,6 +119,7 @@ export interface CalendarEventDTO {
117119
assignedUserId: string;
118120
users: string[];
119121
notes?: string;
122+
description?: string;
120123
isRecurring?: boolean;
121124
rrule?: string;
122125
startTime: any;
@@ -164,10 +167,6 @@ export interface SlotsSchema {
164167
slots: string[];
165168
}
166169

167-
export interface GetSlotsSuccessfulResponseDto {
168-
_dates_: SlotsSchema;
169-
}
170-
171170
export interface CalendarNotification {
172171
type?: string;
173172
shouldSendToContact: boolean;
@@ -527,9 +526,11 @@ export interface CalendarNotificationResponseDTO {
527526
_id?: string;
528527
receiverType?: string;
529528
additionalEmailIds?: string[];
529+
additionalPhoneNumbers?: string[];
530530
channel?: string;
531531
notificationType?: string;
532532
isActive?: boolean;
533+
additionalWhatsappNumbers?: string[];
533534
templateId?: string;
534535
body?: string;
535536
subject?: string;
@@ -550,14 +551,17 @@ export interface CreateCalendarNotificationDTO {
550551
afterTime?: SchedulesDTO[];
551552
beforeTime?: SchedulesDTO[];
552553
additionalEmailIds?: string[];
554+
additionalPhoneNumbers?: string[];
553555
selectedUsers?: string[];
554556
fromAddress?: string;
555557
fromName?: string;
558+
fromNumber?: string;
556559
}
557560

558561
export interface UpdateCalendarNotificationsDTO {
559562
receiverType?: string;
560563
additionalEmailIds?: string[];
564+
additionalPhoneNumbers?: string[];
561565
selectedUsers?: string[];
562566
channel?: string;
563567
notificationType?: string;
@@ -569,6 +573,7 @@ export interface UpdateCalendarNotificationsDTO {
569573
afterTime?: SchedulesDTO[];
570574
beforeTime?: SchedulesDTO[];
571575
fromAddress?: string;
576+
fromNumber?: string;
572577
fromName?: string;
573578
}
574579

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gohighlevel/api-client",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Official SDK for HighLevel Public APIs",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)