feat: cal video settings (#21347)
* feat: cal video settings * fix: var names * feat: finish setting * chore: add enabled * chore: remove logs * feat: support redirect url on exit * feat: finish settings * refactor: improve UI * chore: remove logs * fix: type err * fix: finish redirect url * fix: add type * chore: change schema * fix: type error * chore: improvements * chore: remove index * feat: add organizer * chore: remove log * chore: use safe parse * fix: add nullable * refactor: hide toggles if platorm * chore: update description --------- Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: supalarry <[email protected]>
This commit is contained in:
16 files changed
+329
-23
No files matched your search
@@ -130,6 +130,7 @@ export const useEventTypeForm = ({
|
||||
includeNoShowInRRCalculation: eventType.includeNoShowInRRCalculation,
|
||||
useEventLevelSelectedCalendars: eventType.useEventLevelSelectedCalendars,
|
||||
customReplyToEmail: eventType.customReplyToEmail || null,
|
||||
calVideoSettings: eventType.calVideoSettings,
|
||||
};
|
||||
}, [eventType, periodDates]);
|
||||
|
||||
@@ -162,6 +163,14 @@ export const useEventTypeForm = ({
|
||||
offsetStart: z.union([z.string().transform((val) => +val), z.number()]).optional(),
|
||||
bookingFields: eventTypeBookingFieldsSchema,
|
||||
locations: locationsResolver(t),
|
||||
calVideoSettings: z
|
||||
.object({
|
||||
redirectUrlOnExit: z.string().url().nullish(),
|
||||
disableRecordingForOrganizer: z.boolean().nullable(),
|
||||
disableRecordingForGuests: z.boolean().nullable(),
|
||||
})
|
||||
.optional()
|
||||
.nullable(),
|
||||
})
|
||||
// TODO: Add schema for other fields later.
|
||||
.passthrough()
|
||||
|
||||
Reference in new issue
Block a user