Scheduling infrastructure for absolutely everyone.
feat: v2 toggle transcription settings (#23836)
Lauris Skraucis18bac4a063b5
diff --git a/apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts b/apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.tsindex b639a1489a5..ddc9ba7a67c 100644--- a/apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts+++ b/apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts@@ -1141,6 +1141,9 @@ describe("Event types Endpoints", () => {disableRecordingForGuests: true,disableRecordingForOrganizer: true,enableAutomaticRecordingForOrganizer: true,+ enableAutomaticTranscription: true,+ disableTranscriptionForGuests: true,+ disableTranscriptionForOrganizer: true,},bookingFields: [nameBookingField,@@ -1274,6 +1277,15 @@ describe("Event types Endpoints", () => {expect(updatedEventType.calVideoSettings?.enableAutomaticRecordingForOrganizer).toEqual(body.calVideoSettings?.enableAutomaticRecordingForOrganizer);+ expect(updatedEventType.calVideoSettings?.enableAutomaticTranscription).toEqual(+ body.calVideoSettings?.enableAutomaticTranscription+ );+ expect(updatedEventType.calVideoSettings?.disableTranscriptionForGuests).toEqual(+ body.calVideoSettings?.disableTranscriptionForGuests+ );+ expect(updatedEventType.calVideoSettings?.disableTranscriptionForOrganizer).toEqual(+ body.calVideoSettings?.disableTranscriptionForOrganizer+ );eventType.title = newTitle;eventType.scheduleId = secondSchedule.id;diff --git a/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts b/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.tsindex 5ea2b2e49de..d6c9f3ff6c1 100644--- a/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts+++ b/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts@@ -152,6 +152,27 @@ export class CalVideoSettings {description: "If true, enables the automatic recording for the event when organizer joins the call",})enableAutomaticRecordingForOrganizer?: boolean;++ @IsOptional()+ @IsBoolean()+ @DocsPropertyOptional({+ description: "If true, enables the automatic transcription for the event whenever someone joins the call",+ })+ enableAutomaticTranscription?: boolean;++ @IsOptional()+ @IsBoolean()+ @DocsPropertyOptional({+ description: "If true, the guests will not be able to receive transcription of the meeting",+ })+ disableTranscriptionForGuests?: boolean;++ @IsOptional()+ @IsBoolean()+ @DocsPropertyOptional({+ description: "If true, the organizer will not be able to receive transcription of the meeting",+ })+ disableTranscriptionForOrganizer?: boolean;}class BaseCreateEventTypeInput {