feat: add option to disable sending transcription emails (#19065)
* feat: add option to disable sending transcription emails * fix: types and tests * fix: type error * fix: type err * fix: type err --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
17 files changed
+83
-30
No files matched your search
@@ -36,14 +36,15 @@ const getEventTypesWithHiddenFromDB = async (userId: number) => {
|
||||
SELECT data."id", data."title", data."description", data."length", data."schedulingType"::text,
|
||||
data."recurringEvent", data."slug", data."hidden", data."price", data."currency",
|
||||
data."lockTimeZoneToggleOnBookingPage", data."requiresConfirmation", data."requiresBookerEmailVerification",
|
||||
data."metadata"
|
||||
data."metadata", data."canSendCalVideoTranscriptionEmails"
|
||||
FROM (
|
||||
SELECT "EventType"."id", "EventType"."title", "EventType"."description",
|
||||
"EventType"."position", "EventType"."length", "EventType"."schedulingType"::text,
|
||||
"EventType"."recurringEvent", "EventType"."slug", "EventType"."hidden",
|
||||
"EventType"."price", "EventType"."currency",
|
||||
"EventType"."lockTimeZoneToggleOnBookingPage", "EventType"."requiresConfirmation",
|
||||
"EventType"."requiresBookerEmailVerification", "EventType"."metadata"
|
||||
"EventType"."requiresBookerEmailVerification", "EventType"."metadata",
|
||||
"EventType"."canSendCalVideoTranscriptionEmails"
|
||||
FROM "EventType"
|
||||
WHERE "EventType"."teamId" IS NULL AND "EventType"."userId" = ${userId}
|
||||
UNION
|
||||
@@ -52,7 +53,8 @@ const getEventTypesWithHiddenFromDB = async (userId: number) => {
|
||||
"EventType"."recurringEvent", "EventType"."slug", "EventType"."hidden",
|
||||
"EventType"."price", "EventType"."currency",
|
||||
"EventType"."lockTimeZoneToggleOnBookingPage", "EventType"."requiresConfirmation",
|
||||
"EventType"."requiresBookerEmailVerification", "EventType"."metadata"
|
||||
"EventType"."requiresBookerEmailVerification", "EventType"."metadata",
|
||||
"EventType"."canSendCalVideoTranscriptionEmails"
|
||||
FROM "EventType"
|
||||
WHERE "EventType"."teamId" IS NULL
|
||||
AND "EventType"."id" IN (
|
||||
|
||||
@@ -12,6 +12,7 @@ export const eventTypeSelect = Prisma.validator<Prisma.EventTypeSelect>()({
|
||||
length: true,
|
||||
title: true,
|
||||
requiresConfirmation: true,
|
||||
canSendCalVideoTranscriptionEmails: true,
|
||||
requiresConfirmationForFreeEmail: true,
|
||||
requiresConfirmationWillBlockSlot: true,
|
||||
autoTranslateDescriptionEnabled: true,
|
||||
|
||||
@@ -515,6 +515,7 @@ export class EventTypeRepository {
|
||||
lockTimeZoneToggleOnBookingPage: true,
|
||||
requiresConfirmation: true,
|
||||
requiresConfirmationForFreeEmail: true,
|
||||
canSendCalVideoTranscriptionEmails: true,
|
||||
requiresConfirmationWillBlockSlot: true,
|
||||
requiresBookerEmailVerification: true,
|
||||
autoTranslateDescriptionEnabled: true,
|
||||
|
||||
@@ -100,6 +100,7 @@ export const buildEventType = (eventType?: Partial<EventType>): EventType => {
|
||||
userId: null,
|
||||
teamId: null,
|
||||
requiresBookerEmailVerification: false,
|
||||
canSendCalVideoTranscriptionEmails: true,
|
||||
useEventTypeDestinationCalendarEmail: false,
|
||||
eventName: faker.lorem.words(),
|
||||
timeZone: null,
|
||||
|
||||
Reference in new issue
Block a user