feat: Ability to set a locked timezone for event type (#20425)

* feat: ability to set locked timezone

* update

* Update update-event-type.input.ts

* Update get-event-type-public.output.ts

* Update documentation.json

* revert

* nit
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-05-01 11:09:57 +05:30
1 parent 7ee451ca02
commit 03240709dc
19 files changed
+65 -11

No files matched your search

@@ -59,6 +59,7 @@ type UserPageProps = {
| "length"
| "hidden"
| "lockTimeZoneToggleOnBookingPage"
| "lockedTimeZone"
| "requiresConfirmation"
| "canSendCalVideoTranscriptionEmails"
| "requiresBookerEmailVerification"
@@ -111,6 +111,7 @@ describe("handleChildrenEventTypes", () => {
timeZone,
requiresBookerEmailVerification,
lockTimeZoneToggleOnBookingPage,
lockedTimeZone,
useEventTypeDestinationCalendarEmail,
secondaryEmailId,
autoTranslateDescriptionEnabled,
@@ -136,6 +137,7 @@ describe("handleChildrenEventTypes", () => {
parentId: 1,
users: { connect: [{ id: 4 }] },
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
requiresBookerEmailVerification: false,
instantMeetingScheduleId: undefined,
bookingLimits: undefined,
@@ -168,6 +170,7 @@ describe("handleChildrenEventTypes", () => {
scheduleId,
requiresBookerEmailVerification,
lockTimeZoneToggleOnBookingPage,
lockedTimeZone,
useEventTypeDestinationCalendarEmail,
secondaryEmailId,
...evType
@@ -198,6 +201,7 @@ describe("handleChildrenEventTypes", () => {
locations: [],
scheduleId: null,
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
requiresBookerEmailVerification: false,
hashedLink: {
deleteMany: {},
@@ -272,6 +276,7 @@ describe("handleChildrenEventTypes", () => {
timeZone,
requiresBookerEmailVerification,
lockTimeZoneToggleOnBookingPage,
lockedTimeZone,
useEventTypeDestinationCalendarEmail,
secondaryEmailId,
autoTranslateDescriptionEnabled,
@@ -304,6 +309,7 @@ describe("handleChildrenEventTypes", () => {
customReplyToEmail: null,
instantMeetingScheduleId: undefined,
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
requiresBookerEmailVerification: false,
userId: 4,
workflows: undefined,
@@ -330,6 +336,7 @@ describe("handleChildrenEventTypes", () => {
userId,
requiresBookerEmailVerification,
lockTimeZoneToggleOnBookingPage,
lockedTimeZone,
useEventTypeDestinationCalendarEmail,
secondaryEmailId,
...evType
@@ -363,6 +370,7 @@ describe("handleChildrenEventTypes", () => {
deleteMany: {},
},
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
requiresBookerEmailVerification: false,
instantMeetingScheduleId: undefined,
},
@@ -393,6 +401,7 @@ describe("handleChildrenEventTypes", () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
requiresBookerEmailVerification,
lockTimeZoneToggleOnBookingPage,
lockedTimeZone,
useEventTypeDestinationCalendarEmail,
secondaryEmailId,
autoTranslateDescriptionEnabled,
@@ -418,6 +427,7 @@ describe("handleChildrenEventTypes", () => {
schedulingType: SchedulingType.MANAGED,
requiresBookerEmailVerification: false,
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
useEventTypeDestinationCalendarEmail: false,
workflows: [],
parentId: 1,
@@ -452,6 +462,7 @@ describe("handleChildrenEventTypes", () => {
instantMeetingScheduleId: undefined,
locations: [],
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
requiresBookerEmailVerification: false,
parentId: 1,
userId: 5,
@@ -478,6 +489,7 @@ describe("handleChildrenEventTypes", () => {
customReplyToEmail: null,
rrSegmentQueryValue: undefined,
lockTimeZoneToggleOnBookingPage: false,
lockedTimeZone: "Europe/London",
requiresBookerEmailVerification: false,
hashedLink: {
deleteMany: {},