chore: [Booking flow refactor - 2] Integrate Booking services (#23156)

* Integrate booking services

* Fix imports

---------

Co-authored-by: Volnei Munhoz <[email protected]>
This commit is contained in:
Hariom BalharaandVolnei Munhoz authored and GitHub committed 2025-10-09 18:21:55 -03:00
1 parent 2a23911a5b
commit 3bcce02b92
42 files changed
+569 -653

No files matched your search

+7
View File
@@ -1,3 +1,10 @@
export { LuckyUserService } from "@calcom/features/bookings/lib/getLuckyUser";
export { CheckBookingLimitsService } from "@calcom/lib/intervalLimits/server/checkBookingLimits";
export { CheckBookingAndDurationLimitsService } from "@calcom/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits";
export { RegularBookingService } from "@calcom/features/bookings/lib/handleNewBooking";
export { RecurringBookingService } from "@calcom/features/bookings/lib/handleNewRecurringBooking";
export { InstantBookingCreateService } from "@calcom/features/instant-meeting/handleInstantMeeting";
export type {
InstantBookingCreateResult,
RegularBookingCreateResult,
} from "@calcom/features/bookings/lib/dto/types";
-9
View File
@@ -2,7 +2,6 @@ import { getBookingForReschedule } from "@calcom/features/bookings/lib/get-booki
import { getBookingFieldsWithSystemFields } from "@calcom/features/bookings/lib/getBookingFields";
import getBookingInfo from "@calcom/features/bookings/lib/getBookingInfo";
import handleCancelBooking from "@calcom/features/bookings/lib/handleCancelBooking";
import * as newBookingMethods from "@calcom/features/bookings/lib/handleNewBooking";
import { getClientSecretFromPayment } from "@calcom/features/ee/payments/pages/getClientSecretFromPayment";
import { getTeamMemberEmailForResponseOrContactUsingUrlQuery } from "@calcom/features/ee/teams/lib/getTeamMemberEmailFromCrm";
import {
@@ -11,7 +10,6 @@ import {
} from "@calcom/features/ee/workflows/lib/reminders/verifyPhoneNumber";
import { handleCreatePhoneCall } from "@calcom/features/handleCreatePhoneCall";
import handleMarkNoShow from "@calcom/features/handleMarkNoShow";
import * as instantMeetingMethods from "@calcom/features/instant-meeting/handleInstantMeeting";
import { getRoutedUrl } from "@calcom/features/routing-forms/lib/getRoutedUrl";
import getAllUserBookings from "@calcom/lib/bookings/getAllUserBookings";
import { symmetricEncrypt, symmetricDecrypt } from "@calcom/lib/crypto";
@@ -41,16 +39,9 @@ export {
export { getUsernameList } from "@calcom/features/eventtypes/lib/defaultEvents";
const handleNewBooking = newBookingMethods.default;
export { handleNewBooking };
const handleInstantMeeting = instantMeetingMethods.default;
export { handleInstantMeeting };
export { handleMarkNoShow };
export { handleCreatePhoneCall };
export { handleNewRecurringBooking } from "@calcom/features/bookings/lib/handleNewRecurringBooking";
export { getConnectedDestinationCalendarsAndEnsureDefaultsInDb } from "@calcom/features/calendars/lib/getConnectedDestinationCalendars";
export { getBusyCalendarTimes } from "@calcom/features/calendars/lib/CalendarManager";