Akarsh Jain
f84c8239e7
feat(bookings): implement Booking UID filter for bookings data table. ( #21380 )
...
Fixes : #21357
2025-05-21 11:51:50 -04:00
Morgan and Keith Williams
d4a3894a9e
chore: get bookings with kysely ( #21084 )
...
* chore: get bookings with kysely
* fixup! chore: get bookings with kysely
* replace left joins with inner joins
* add missing filter and count with kysely
* main query done
* kysely use connection string
* fix attendee emails operator
* fix immutability and add attendee email filter
* chore: everything working but date filters
* limit offset
* chore: bump platform libraries
* fix bookingseat / attendee user email filter
* refactor, clean, and subquery updatedAt/createdAt
* fix import kysely types path
* fix missing references and payments fields
* create kysely module in apiv2
* fix before created at filter
* fix types
* update yarn.lock
* update yarn.lock
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2025-05-05 17:21:15 -07:00
Morgan and Eunjae Lee
da853958f7
feat: get org bookings endpoint api-v2 ( #20462 )
...
* feat: get org bookings endpoint api-v2
* fix userId filter transform
* fix: update getBookings to take filter.userIds in account
* refactor: getBooking where clause
* fixup! refactor: getBooking where clause
* feat: enable org owners to see org member bookings as attendees
* update flaky e2e tests
* fixup! feat: enable org owners to see org member bookings as attendees
* fixup! fixup! feat: enable org owners to see org member bookings as attendees
* chore: differentiate between org/team owner/admin
* chore: throw error with invalid userIds filter
* chore: clearly ensure non team orgs when orgId is not specified
* bump libraries and add comments
* bump libraries
* chore: give main profile orgId to getAllUserBookings
---------
Co-authored-by: Eunjae Lee <hey@eunjae.dev >
2025-04-03 17:36:10 -04:00
367e2666c6
fix: apply standard pagination to /bookings ( #19973 )
...
* fix: apply standard pagination to /bookings
* rename params
* fix type error
---------
Co-authored-by: Benny Joo <sldisek783@gmail.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2025-03-13 12:32:07 +00:00
Eunjae Lee
7a797490c8
feat: support attendee name and email filter on /bookings ( #19565 )
...
* feat: support attendee name and email filter on /bookings
* remove console log
* change label
2025-02-26 18:48:36 +01:00
Lauris Skraucis
08bcc77e2c
feat: v2 GET bookings updated at filters and sort ( #19133 )
...
* fix: make Booking.updatedAt update automatically
* feat: return updatedAt by bookings endpoints
* feat: GET bookings beforeUpdatedAt, afterUpdatedAt, sortUpdated params
* docs: api
* chore: bump platform-libraries
* refactor: sortUpdated -> sortUpdatedAt query param
* chore: delete wrong migration
2025-02-11 08:39:50 +00:00
0eabe7f28b
refactor: v2 bookings ( #16200 )
...
* chore: version existing bookings as 2024-04-15
* feat: initialize bookings version 2024-08-13
* feat: Create and reschedule booking inputs logic
* feat: create booking
* refactor: create booking response
* feat: reschedule booking
* chore: update language input
* feat: recurring booking
* refactor: add booking status in response
* refactor: recurring bookings
* feat: get booking by uid
* wip: get event types
* feat: fetch by multiple status filters and sort
* feat: fetch by teamId, teamIds, eventTypeId, eventTypeIds
* wip: filter by attendee email
* feat: filter by attendee email
* feat: filter by attendee name
* feat: date range filter
* chore: format get bookings output
* chore: finish main merge
* feat: handle instant bookings
* refactor: separate reschedule endpoint
* feat: cancel endpoint
* feat: mark absent host or attendees
* chore: dont expose metadata for now
* chore: add hostId to response
* fix: metadata
* feat: bill bookings
* feat: cancellationReason
* feat: rescheduling reason
* handle already busy booking error
* test: create new booking
* fix: handleNewRecurringBooking ignoring noEmail
* test: recurring bookings
* test: get individual bookings
* fix: cancel email sent if arePlatformEmailsEnabled=false but platformClientId is undefined
* tests: cancel, reschedule, mark absent
* fix: generateIcsFile null pointer exception
* cancel test
* error msg improve
* tests: team event type creation and teamId, teamIds filters
* test: cancel recurring booking
* refactor: make hosts and attendees an array
* sort by asc start
* simplify
* refactor: absent
* fix: make work with api key
* test
* ts remove any
* feat: BookingUidGuard
* fix: recurring booking no email
* fix: legacy bookings recurring noEmail
* add swagger
* retrigger build
* fix: atom booker work with v2
* docs: exclude old controller from docs
* refactor: make eventTypeIds and teamIds getBookings query params comma separated string
* docs: swagger for get bookings query
* swagger docs
* swagger docs
* docs: document authorization header
* refactor: remove unused attendee variable
* refactor: remove unused check
* refactor: remove unused attendee variable
* refactor: spelling
* use published platform libraries
* fix: ci
* fix: ci
* fix: ci
* fix: ci
* cleanup script platform types
* fix: use libraries from npm
* chore: set test env vapid keys
* fix: event type tests
* fix: remove location from system fields
* fix legacy event types
* Revert "fix legacy event types"
This reverts commit e64b473b73f7ef0fe88942cd87277d29a512b946.
* Revert "fix: remove location from system fields"
This reverts commit bee9a15cb27cd34705f34c427b6b50d51e3b7ee7.
* Revert "fix: event type tests"
This reverts commit fab1cb0f5eeb65e4f542bfbeb83849ceed7ba428.
* update libraries
* fix: increase node space for ci runner
* fix: increase node space for ci runner
* fix: increase node space for ci runner
* readd swagger
* ci
* ci
* refactor: increase idle worker memory jest e2e
* fixup! refactor: increase idle worker memory jest e2e
* fixup! fixup! refactor: increase idle worker memory jest e2e
* refactor: split bookings e2e into smaller e2e files
* fixup! refactor: split bookings e2e into smaller e2e files
* fixup! fixup! refactor: split bookings e2e into smaller e2e files
* fixup! fixup! fixup! refactor: split bookings e2e into smaller e2e files
* fixup! Merge branch 'main' into v2-refactor-bookings
* revert event types service
* fix: remove resetModule, maxWorker 2 jest e2e config
---------
Co-authored-by: Morgan Vernay <morgan@cal.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-09-23 16:19:25 +03:00
cc2164657c
feat: platform endpoints to fetch/cancel/reschedule bookings and hooks ( #14164 )
...
* init bookings endpoint
* abstracting functions
* e2e tests for bookings
* hooks for bookings endpoint
* bookings respository fixtures
* typings for booking input
* fixup
* abstract booking info code and use it as handler
* import handlers for bookings endpoint
* add cancel booking input
* add handleCancelBooking handler in platform libraries
* cancel booking endpoint
* abstract call into its own separate fn
* cancel booking hook
* e2e test for cancel booking endpoint
* fix import
* export getBookings function
* move getAllUserBookings into lib
* add bookings folder to package exports
* use getAllUserBookings from lib
* fix import path
* fix: hooks, endpoint and example for cancel / reschedule / list / booking success page
* fix: unit test mock classNames import from lib
* fix: unit test mock classNames import from lib
---------
Co-authored-by: Morgan Vernay <morgan@cal.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-03-27 12:34:54 +00:00