Skip to content

Commit 18bac4a

Browse files
authored
feat: v2 toggle transcription settings (calcom#23836)
1 parent 0332118 commit 18bac4a

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,9 @@ describe("Event types Endpoints", () => {
11411141
disableRecordingForGuests: true,
11421142
disableRecordingForOrganizer: true,
11431143
enableAutomaticRecordingForOrganizer: true,
1144+
enableAutomaticTranscription: true,
1145+
disableTranscriptionForGuests: true,
1146+
disableTranscriptionForOrganizer: true,
11441147
},
11451148
bookingFields: [
11461149
nameBookingField,
@@ -1274,6 +1277,15 @@ describe("Event types Endpoints", () => {
12741277
expect(updatedEventType.calVideoSettings?.enableAutomaticRecordingForOrganizer).toEqual(
12751278
body.calVideoSettings?.enableAutomaticRecordingForOrganizer
12761279
);
1280+
expect(updatedEventType.calVideoSettings?.enableAutomaticTranscription).toEqual(
1281+
body.calVideoSettings?.enableAutomaticTranscription
1282+
);
1283+
expect(updatedEventType.calVideoSettings?.disableTranscriptionForGuests).toEqual(
1284+
body.calVideoSettings?.disableTranscriptionForGuests
1285+
);
1286+
expect(updatedEventType.calVideoSettings?.disableTranscriptionForOrganizer).toEqual(
1287+
body.calVideoSettings?.disableTranscriptionForOrganizer
1288+
);
12771289

12781290
eventType.title = newTitle;
12791291
eventType.scheduleId = secondSchedule.id;

packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,27 @@ export class CalVideoSettings {
152152
description: "If true, enables the automatic recording for the event when organizer joins the call",
153153
})
154154
enableAutomaticRecordingForOrganizer?: boolean;
155+
156+
@IsOptional()
157+
@IsBoolean()
158+
@DocsPropertyOptional({
159+
description: "If true, enables the automatic transcription for the event whenever someone joins the call",
160+
})
161+
enableAutomaticTranscription?: boolean;
162+
163+
@IsOptional()
164+
@IsBoolean()
165+
@DocsPropertyOptional({
166+
description: "If true, the guests will not be able to receive transcription of the meeting",
167+
})
168+
disableTranscriptionForGuests?: boolean;
169+
170+
@IsOptional()
171+
@IsBoolean()
172+
@DocsPropertyOptional({
173+
description: "If true, the organizer will not be able to receive transcription of the meeting",
174+
})
175+
disableTranscriptionForOrganizer?: boolean;
155176
}
156177

157178
class BaseCreateEventTypeInput {

0 commit comments

Comments
 (0)