You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/api/v2/src/ee/bookings/2024-08-13/controllers/bookings.controller.ts
+48-14Lines changed: 48 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ import {
87
87
@DocsTags("Bookings")
88
88
@ApiHeader({
89
89
name: "cal-api-version",
90
-
description: `Must be set to ${VERSION_2024_08_13}`,
90
+
description: `Must be set to ${VERSION_2024_08_13}. If not set to this value, the endpoint will default to an older version.`,
91
91
example: VERSION_2024_08_13,
92
92
required: true,
93
93
schema: {
@@ -133,6 +133,8 @@ export class BookingsController_2024_08_13 {
133
133
134
134
If you are creating a seated booking for an event type with 'show attendees' disabled, then to retrieve attendees in the response either set 'show attendees' to true on event type level or
135
135
you have to provide an authentication method of event type owner, host, team admin or owner or org admin or owner.
136
+
137
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
136
138
`,
137
139
})
138
140
@ApiBody({
@@ -188,6 +190,8 @@ export class BookingsController_2024_08_13 {
188
190
189
191
If you are fetching a seated booking for an event type with 'show attendees' disabled, then to retrieve attendees in the response either set 'show attendees' to true on event type level or
190
192
you have to provide an authentication method of event type owner, host, team admin or owner or org admin or owner.
193
+
194
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
191
195
`,
192
196
})
193
197
asyncgetBooking(
@@ -206,7 +210,10 @@ export class BookingsController_2024_08_13 {
206
210
@UseGuards(BookingUidGuard)
207
211
@ApiOperation({
208
212
summary: "Get all the recordings for the booking",
209
-
description: `Fetches all the recordings for the booking \`:bookingUid\``,
213
+
description: `Fetches all the recordings for the booking \`:bookingUid\`
214
+
215
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
@@ -221,7 +228,10 @@ export class BookingsController_2024_08_13 {
221
228
@UseGuards(BookingUidGuard)
222
229
@ApiOperation({
223
230
summary: "Get all the transcripts download links for the booking",
224
-
description: `Fetches all the transcripts download links for the booking \`:bookingUid\``,
231
+
description: `Fetches all the transcripts download links for the booking \`:bookingUid\`
232
+
233
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
@@ -236,7 +246,10 @@ export class BookingsController_2024_08_13 {
236
246
@UseGuards(ApiAuthGuard)
237
247
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
238
248
@Permissions([BOOKING_READ])
239
-
@ApiOperation({summary: "Get all bookings"})
249
+
@ApiOperation({
250
+
summary: "Get all bookings",
251
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
252
+
})
240
253
asyncgetBookings(
241
254
@Query()queryParams: GetBookingsInput_2024_08_13,
242
255
@GetUser()user: ApiAuthGuardUser
@@ -263,7 +276,10 @@ export class BookingsController_2024_08_13 {
description: "Reschedule a booking or seated booking",
279
+
description: `Reschedule a booking or seated booking
280
+
281
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
282
+
`,
267
283
})
268
284
@ApiBody({
269
285
schema: {
@@ -315,6 +331,8 @@ export class BookingsController_2024_08_13 {
315
331
316
332
If you are cancelling a seated booking for an event type with 'show attendees' disabled, then to retrieve attendees in the response either set 'show attendees' to true on event type level or
317
333
you have to provide an authentication method of event type owner, host, team admin or owner or org admin or owner.
334
+
335
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
318
336
`,
319
337
})
320
338
@ApiBody({
@@ -350,7 +368,10 @@ export class BookingsController_2024_08_13 {
350
368
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
351
369
@ApiOperation({
352
370
summary: "Mark a booking absence",
353
-
description: "The provided authorization header refers to the owner of the booking.",
371
+
description: `The provided authorization header refers to the owner of the booking.
372
+
373
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
374
+
`,
354
375
})
355
376
asyncmarkNoShow(
356
377
@Param("bookingUid")bookingUid: string,
@@ -372,8 +393,10 @@ export class BookingsController_2024_08_13 {
372
393
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
373
394
@ApiOperation({
374
395
summary: "Reassign a booking to auto-selected host",
375
-
description:
376
-
"Currently only supports reassigning host for round robin bookings. The provided authorization header refers to the owner of the booking.",
396
+
description: `Currently only supports reassigning host for round robin bookings. The provided authorization header refers to the owner of the booking.
397
+
398
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
399
+
`,
377
400
})
378
401
asyncreassignBooking(
379
402
@Param("bookingUid")bookingUid: string,
@@ -394,8 +417,10 @@ export class BookingsController_2024_08_13 {
394
417
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
395
418
@ApiOperation({
396
419
summary: "Reassign a booking to a specific host",
397
-
description:
398
-
"Currently only supports reassigning host for round robin bookings. The provided authorization header refers to the owner of the booking.",
420
+
description: `Currently only supports reassigning host for round robin bookings. The provided authorization header refers to the owner of the booking.
421
+
422
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
423
+
`,
399
424
})
400
425
asyncreassignBookingToUser(
401
426
@Param("bookingUid")bookingUid: string,
@@ -423,7 +448,10 @@ export class BookingsController_2024_08_13 {
423
448
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
424
449
@ApiOperation({
425
450
summary: "Confirm a booking",
426
-
description: "The provided authorization header refers to the owner of the booking.",
451
+
description: `The provided authorization header refers to the owner of the booking.
452
+
453
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
454
+
`,
427
455
})
428
456
asyncconfirmBooking(
429
457
@Param("bookingUid")bookingUid: string,
@@ -444,7 +472,10 @@ export class BookingsController_2024_08_13 {
444
472
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
445
473
@ApiOperation({
446
474
summary: "Decline a booking",
447
-
description: "The provided authorization header refers to the owner of the booking.",
475
+
description: `The provided authorization header refers to the owner of the booking.
476
+
477
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
478
+
`,
448
479
})
449
480
asyncdeclineBooking(
450
481
@Param("bookingUid")bookingUid: string,
@@ -465,8 +496,10 @@ export class BookingsController_2024_08_13 {
465
496
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
466
497
@ApiOperation({
467
498
summary: "Get 'Add to Calendar' links for a booking",
468
-
description:
469
-
"Retrieve calendar links for a booking that can be used to add the event to various calendar services. Returns links for Google Calendar, Microsoft Office, Microsoft Outlook, and a downloadable ICS file.",
499
+
description: `Retrieve calendar links for a booking that can be used to add the event to various calendar services. Returns links for Google Calendar, Microsoft Office, Microsoft Outlook, and a downloadable ICS file.
500
+
501
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
@@ -485,6 +518,7 @@ export class BookingsController_2024_08_13 {
485
518
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
486
519
@ApiOperation({
487
520
summary: "Get booking references",
521
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
Copy file name to clipboardExpand all lines: apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.ts
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ import {
61
61
@DocsTags("Event Types")
62
62
@ApiHeader({
63
63
name: "cal-api-version",
64
-
description: `Must be set to ${VERSION_2024_06_14}`,
64
+
description: `Must be set to ${VERSION_2024_06_14}. If not set to this value, the endpoint will default to an older version.`,
65
65
example: VERSION_2024_06_14,
66
66
required: true,
67
67
schema: {
@@ -80,7 +80,10 @@ export class EventTypesController_2024_06_14 {
80
80
@Permissions([EVENT_TYPE_WRITE])
81
81
@UseGuards(ApiAuthGuard)
82
82
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
83
-
@ApiOperation({summary: "Create an event type"})
83
+
@ApiOperation({
84
+
summary: "Create an event type",
85
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
86
+
})
84
87
asynccreateEventType(
85
88
@Body()body: CreateEventTypeInput_2024_06_14,
86
89
@GetUser()user: UserWithProfile
@@ -102,7 +105,10 @@ export class EventTypesController_2024_06_14 {
102
105
@Permissions([EVENT_TYPE_READ])
103
106
@UseGuards(ApiAuthGuard)
104
107
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
105
-
@ApiOperation({summary: "Get an event type"})
108
+
@ApiOperation({
109
+
summary: "Get an event type",
110
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
111
+
})
106
112
asyncgetEventTypeById(
107
113
@Param("eventTypeId")eventTypeId: string,
108
114
@GetUser()user: UserWithProfile
@@ -122,8 +128,10 @@ export class EventTypesController_2024_06_14 {
122
128
@Get("/")
123
129
@ApiOperation({
124
130
summary: "Get all event types",
125
-
description:
126
-
"Hidden event types are returned only if authentication is provided and it belongs to the event type owner.",
131
+
description: `Hidden event types are returned only if authentication is provided and it belongs to the event type owner.
132
+
133
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
134
+
`,
127
135
})
128
136
@UseGuards(OptionalApiAuthGuard)
129
137
@ApiHeader(OPTIONAL_X_CAL_CLIENT_ID_HEADER)
@@ -149,7 +157,10 @@ export class EventTypesController_2024_06_14 {
149
157
@UseGuards(ApiAuthGuard)
150
158
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
151
159
@HttpCode(HttpStatus.OK)
152
-
@ApiOperation({summary: "Update an event type"})
160
+
@ApiOperation({
161
+
summary: "Update an event type",
162
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
@@ -173,7 +184,10 @@ export class EventTypesController_2024_06_14 {
173
184
@Permissions([EVENT_TYPE_WRITE])
174
185
@UseGuards(ApiAuthGuard)
175
186
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
176
-
@ApiOperation({summary: "Delete an event type"})
187
+
@ApiOperation({
188
+
summary: "Delete an event type",
189
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
Copy file name to clipboardExpand all lines: apps/api/v2/src/ee/schedules/schedules_2024_06_11/controllers/schedules.controller.ts
+23-6Lines changed: 23 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ import {
40
40
@DocsTags("Schedules")
41
41
@ApiHeader({
42
42
name: "cal-api-version",
43
-
description: `Must be set to ${VERSION_2024_06_11}`,
43
+
description: `Must be set to ${VERSION_2024_06_11}. If not set to this value, the endpoint will default to an older version.`,
44
44
example: VERSION_2024_06_11,
45
45
required: true,
46
46
schema: {
@@ -69,6 +69,8 @@ export class SchedulesController_2024_06_11 {
69
69
After creating a non-default schedule, you can update an event type to point to that schedule via the PATCH \`event-types/{eventTypeId}\` endpoint.
70
70
71
71
When specifying start time and end time for each day use the 24 hour format e.g. 08:00, 15:00 etc.
72
+
73
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
72
74
`,
73
75
})
74
76
asynccreateSchedule(
@@ -91,7 +93,10 @@ export class SchedulesController_2024_06_11 {
91
93
})
92
94
@ApiOperation({
93
95
summary: "Get default schedule",
94
-
description: "Get the default schedule of the authenticated user.",
96
+
description: `Get the default schedule of the authenticated user.
97
+
98
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
@@ -104,7 +109,10 @@ export class SchedulesController_2024_06_11 {
104
109
105
110
@Get("/:scheduleId")
106
111
@Permissions([SCHEDULE_READ])
107
-
@ApiOperation({summary: "Get a schedule"})
112
+
@ApiOperation({
113
+
summary: "Get a schedule",
114
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
115
+
})
108
116
asyncgetSchedule(
109
117
@GetUser()user: UserWithProfile,
110
118
@Param("scheduleId")scheduleId: number
@@ -121,7 +129,10 @@ export class SchedulesController_2024_06_11 {
121
129
@Permissions([SCHEDULE_READ])
122
130
@ApiOperation({
123
131
summary: "Get all schedules",
124
-
description: "Get all schedules of the authenticated user.",
132
+
description: `Get all schedules of the authenticated user.
133
+
134
+
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
@@ -134,7 +145,10 @@ export class SchedulesController_2024_06_11 {
134
145
135
146
@Patch("/:scheduleId")
136
147
@Permissions([SCHEDULE_WRITE])
137
-
@ApiOperation({summary: "Update a schedule"})
148
+
@ApiOperation({
149
+
summary: "Update a schedule",
150
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
@@ -155,7 +169,10 @@ export class SchedulesController_2024_06_11 {
155
169
@Delete("/:scheduleId")
156
170
@HttpCode(HttpStatus.OK)
157
171
@Permissions([SCHEDULE_WRITE])
158
-
@ApiOperation({summary: "Delete a schedule"})
172
+
@ApiOperation({
173
+
summary: "Delete a schedule",
174
+
description: `<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>`,
0 commit comments