cal/packages/features/bookings/lib
Joe Au-Yeung 8b24995d52
refactor: Abstract `createBooking` in `handleNewBooking` [CAL-2619] (#11959)
## What does this PR do?

<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->

In anticipation of refactoring `handleSeats` we need to abstract `createBooking` in order to get the return type. This PR is purposely aiming to do one thing so nothing is missed while refactoring `handleNewBooking`

Fixes # (issue)

<!-- Please provide a loom video for visual changes to speed up reviews
 Loom Video: https://www.loom.com/
-->

## Requirement/Documentation

<!-- Please provide all documents that are important to understand the reason of that PR. -->

- If there is a requirement document, please, share it here.
- If there is ab UI/UX design document, please, share it here.

## Type of change

<!-- Please delete bullets that are not relevant. -->

- [x] Chore (refactoring code, technical debt, workflow improvements)


## How should this be tested?

<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Write details that help to start the tests -->

- Are there environment variables that should be set?
- What are the minimal test data to have?
- What is expected (happy path) to have (input and output)?
- Any other important info that could help to test that PR

## Mandatory Tasks

- [ ] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

## Checklist

<!-- Please remove all the irrelevant bullets to your PR -->

- I haven't read the [contributing guide](https://github.com/calcom/cal.com/blob/main/CONTRIBUTING.md)
- My code doesn't follow the style guidelines of this project
- I haven't commented my code, particularly in hard-to-understand areas
- I haven't checked if my PR needs changes to the documentation
- I haven't checked if my changes generate no new warnings
- I haven't added tests that prove my fix is effective or that my feature works
- I haven't checked if new and existing unit tests pass locally with my changes
2023-11-29 08:11:09 -07:00
..
book-event-form fix: Single Use Private link does not regenerate after use (#11705) 2023-10-06 11:07:55 +01:00
handleNewBooking/test fix: rescheduling round robin events (emails and calendar events) (#12469) 2023-11-27 13:09:33 -05:00
create-booking.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
create-recurring-booking.ts fix: Improved recurring event booking speed (#9600) 2023-07-13 17:28:20 +05:30
doesBookingRequireConfirmation.ts fix: Handle payment flow webhooks in case of event requiring confirmation (#11458) 2023-09-30 10:22:32 +05:30
get-booking.ts fix: seated event type public id cancels/reschedule entire booking without auth (#11667) 2023-10-06 13:17:15 -03:00
getBookingDataSchema.ts refactor: Abstract `createBooking` in `handleNewBooking` [CAL-2619] (#11959) 2023-11-29 08:11:09 -07:00
getBookingFields.ts refactor: Use template literal instead of '+' operator (#11444) 2023-10-03 11:52:19 -07:00
getBookingResponsesSchema.test.ts fix: Prefill issue when name isn't present and add unit tests (#11418) 2023-09-26 16:16:31 +05:30
getBookingResponsesSchema.ts fix: Prefill issue when name isn't present and add unit tests (#11418) 2023-09-26 16:16:31 +05:30
getCalEventResponses.ts chore: Removes all traces of ".prisma/client" 2023-08-14 17:28:43 -07:00
getLocationOptionsForSelect.ts fix: link escaping in booking page (#10360) 2023-08-12 21:31:43 +00:00
getWebhookPayloadForBooking.ts fix: Handle payment flow webhooks in case of event requiring confirmation (#11458) 2023-09-30 10:22:32 +05:30
handleBookingRequested.ts chore: improve logs (#12467) 2023-11-29 19:39:25 +05:30
handleCancelBooking.ts fix: adds teamId to team events payload (#12417) 2023-11-22 14:54:18 -05:00
handleConfirmation.ts chore: improve logs (#12467) 2023-11-29 19:39:25 +05:30
handleNewBooking.ts refactor: Abstract `createBooking` in `handleNewBooking` [CAL-2619] (#11959) 2023-11-29 08:11:09 -07:00
handleWebhookTrigger.ts feat: Add new events to webhook BOOKING_CONFIRMED, BOOKING_REJECTED (#8884) 2023-05-30 15:35:05 +00:00
index.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
isEventTypeLoggingEnabled.ts test: Booking flow App failure and ics file tests and improved logging (#11646) 2023-10-02 16:21:04 +05:30
SystemField.ts perf: Booker bundle size optimization - Remove `sanitize-html` dependency on client (#10801) 2023-08-16 11:03:21 -07:00
timePreferences.ts fix: add a default timezone (#11475) 2023-09-25 15:08:41 +02:00
useCheckOverlapWithOverlay.tsx fix: re-render on booker (#12058) 2023-10-24 12:15:17 -07:00
useFilterQuery.tsx feat: Organizations (#8993) 2023-06-14 21:40:20 +00:00