feat: support updating cal video settings in API v2 (#21784)

* feat: support updating cal video settings in API v2

* chore: update descriptio

* feat: support create event type

* test: add test for updating event type

* test: add test for create event type

* chore: undo openapi

* chore: bump libraries

* Revert "chore: bump libraries"

This reverts commit bdf36d09b021fc531497a7b7ea66ab9c52b7d136.

* chore: bump libraries

---------

Co-authored-by: Lauris Skraucis <[email protected]>
Co-authored-by: supalarry <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-06-13 12:05:29 +03:00
1 parent 8de4897042
commit ba8a71bf3a
15 files changed
+669 -2443

No files matched your search

@@ -124,6 +124,29 @@ export const CREATE_EVENT_SLUG_EXAMPLE = "learn-the-secrets-of-masterchief";
RescheduleReasonDefaultFieldInput_2024_06_14,
InputOrganizersDefaultApp_2024_06_14
)
export class CalVideoSettings {
@IsOptional()
@IsBoolean()
@DocsPropertyOptional({
description: "If true, the organizer will not be able to record the meeting",
})
disableRecordingForOrganizer?: boolean;
@IsOptional()
@IsBoolean()
@DocsPropertyOptional({
description: "If true, the guests will not be able to record the meeting",
})
disableRecordingForGuests?: boolean;
@IsOptional()
@IsUrl()
@DocsPropertyOptional({
description: "URL to which participants are redirected when they exit the call",
})
redirectUrlOnExit?: string | null;
}
class BaseCreateEventTypeInput {
@IsInt()
@Min(1)
@@ -369,9 +392,9 @@ class BaseCreateEventTypeInput {
@IsOptional()
@IsString()
@DocsPropertyOptional({
description: `Customizable event name with valid variables:
{Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name},
{Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION},
description: `Customizable event name with valid variables:
{Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name},
{Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION},
{HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}`,
example: "{Event type title} between {Organiser} and {Scheduler}",
})
@@ -407,6 +430,15 @@ class BaseCreateEventTypeInput {
"Boolean to Hide organizer's email address from the booking screen, email notifications, and calendar events",
})
hideOrganizerEmail?: boolean;
@IsOptional()
@ValidateNested()
@Type(() => CalVideoSettings)
@DocsPropertyOptional({
description: "Cal video settings for the event type",
type: CalVideoSettings,
})
calVideoSettings?: CalVideoSettings;
}
export class CreateEventTypeInput_2024_06_14 extends BaseCreateEventTypeInput {
@IsOptional()
@@ -457,6 +489,7 @@ export class Host {
@DocsPropertyOptional({ enum: HostPriority })
priority?: keyof typeof HostPriority = "medium";
}
export class CreateTeamEventTypeInput_2024_06_14 extends BaseCreateEventTypeInput {
@Transform(({ value }) => {
if (value === "collective") {
@@ -63,6 +63,7 @@ import {
CREATE_EVENT_SLUG_EXAMPLE,
CREATE_EVENT_TITLE_EXAMPLE,
Host,
CalVideoSettings,
} from "./create-event-type.input";
import { DestinationCalendar_2024_06_14 } from "./destination-calendar.input";
import { Disabled_2024_06_14 } from "./disabled.input";
@@ -404,6 +405,15 @@ class BaseUpdateEventTypeInput {
"Boolean to Hide organizer's email address from the booking screen, email notifications, and calendar events",
})
hideOrganizerEmail?: boolean;
@IsOptional()
@ValidateNested()
@Type(() => CalVideoSettings)
@DocsPropertyOptional({
description: "Cal video settings for the event type",
type: CalVideoSettings,
})
calVideoSettings?: CalVideoSettings;
}
export class UpdateEventTypeInput_2024_06_14 extends BaseUpdateEventTypeInput {
@IsOptional()
@@ -27,6 +27,7 @@ import {
BusinessDaysWindow_2024_06_14,
CalendarDaysWindow_2024_06_14,
RangeWindow_2024_06_14,
CalVideoSettings,
} from "../inputs";
import { Recurrence_2024_06_14 } from "../inputs";
import { BookerLayouts_2024_06_14 } from "../inputs/booker-layouts.input";
@@ -429,6 +430,15 @@ class BaseEventTypeOutput_2024_06_14 {
"Boolean to Hide organizer's email address from the booking screen, email notifications, and calendar events",
})
hideOrganizerEmail?: boolean;
@IsOptional()
@ValidateNested()
@Type(() => CalVideoSettings)
@ApiPropertyOptional({
description: "Cal video settings for the event type",
type: CalVideoSettings,
})
calVideoSettings?: CalVideoSettings | null;
}
export class TeamEventTypeResponseHost extends TeamEventTypeHostInput {