devin-ai-integration[bot] and morgan@cal.com
c316721051
refactor: convert BookingRepository to use dependency injection pattern ( #22389 )
...
* refactor: convert BookingRepository to use dependency injection pattern
- Add constructor injection for PrismaClient to BookingRepository
- Convert all static methods to instance methods using this.prismaClient
- Update all usage sites to use two-step instantiation pattern:
const bookingRepo = new BookingRepository(prisma); bookingRepo.method(...)
- Apply same dependency injection pattern as UserRepository, TeamRepository, and SelectedSlotsRepository
- Update test files to use correct prismaMock import paths
- Maintain all existing functionality and type safety
Files updated:
- BookingRepository class structure and all 15 static methods
- Video meeting pages and booking views
- Booking utilities and services (handleNewBooking, originalRescheduledBookingUtils)
- Round robin handlers and reassignment logic
- Interval limits and booking limits checking
- Test files with proper mocking setup
Co-Authored-By: morgan@cal.com <morgan@cal.com >
* chore: bump platform libs
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: morgan@cal.com <morgan@cal.com >
2025-07-10 18:06:57 +00:00
Alex van Andel
86912e0cbc
refactor: async constructor is an anti-pattern, use init instead ( #21785 )
2025-06-12 13:13:44 +00:00
e2938ac39a
refactor: v2 OAuth webhooks & workflows ( #17959 )
...
* refactor: handleMarkNoShow OAuth webhook handling
* refactor: confirm / decline booking OAuth webhook handling
* refactor: pass oauth client to calendar event
* refactor: pass oauth params
* fix import
* fix tests
* chore: bump libraries
* chore: bump libraries
* chore: republish platform libraries
* chore: republish platform libraries
* fix: use replexica key in v2 and unit test CI
* lock file
* fixup! Merge branch 'main' into lauris/cal-4807-platform-refactor-oauth-webhooks
* Revert "fix: use replexica key in v2 and unit test CI"
This reverts commit 0bd6c364535f9e11a4d1497a6bd8909885562080.
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
Co-authored-by: Morgan Vernay <morgan@cal.com >
2024-12-04 11:25:20 +01:00
Kartik Saini and Udit Takkar
ff2754f663
feat: allow marking no show after booking has started ( #17625 )
...
* feat: allow marking no show after booking has started
* fix
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-11-14 09:55:39 +00:00
Joe Au-Yeung
06f83e6d0d
feat: Send Attendee No Show Data To Salesforce ( #17423 )
2024-10-31 16:39:58 +00:00
f5c16f0d6b
feat: OOO webhook and zapier ( #15434 )
...
* zapier and webhook
* instructions for zapier
* Fix types
* fix types
* revert adding zap template
* Update packages/app-store/zapier/README.md
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
* Update packages/app-store/zapier/README.md
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
* Update packages/app-store/zapier/README.md
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
* Update packages/features/webhooks/lib/scheduleTrigger.ts
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
* wip
* Fixes from comments, no more sendPayloadNoBooking
* fix subscriberOptions teamIds param type
* types
* Update packages/features/webhooks/lib/sendPayload.ts
* Re add zapierPayload to don't break old zaps
* instead of metadata use oooEntry inside webhookPayload
* undo comment message
* Types
* reset changes on yarn.lock
* review changes
* fix types
* fix types
* tentative fix for types in webhook
* type improvements
* fix description + clean up
* revert yarn.lock changes
* allow custom template for ooo entry
* type fixes
* type fix
* fix donwloadLinks in payload
* simplify some types
* allow array or number for teamId
* same payload for test trigger
* code clean up
* fix no show e2e test
* translate text for webhook payload and fix conditional
* add test for ooo_created webhooks
* reset files
* merge fix
* fix test data test id
* remove unused variable
* only trigger for accepted memberships
* remove unused variable
---------
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Omar López <zomars@me.com >
2024-09-06 15:48:05 -04:00
Udit Takkar
e075dcdeaa
feat: create new markNoShow endpoint ( #15738 )
...
* feat: create new markNoShow endpoint
* chore: add schema
* chore: update name
* chore: save progress
* refactor: improve code and types
* fix: unit test
* chore: improvements
* chore: move query to booking repository
* fix: type error
2024-08-07 15:16:31 +05:30
8ee27d3997
feat: add POST end point to mark calls as no-shows ( #15690 )
...
* feat: add POST end point to mark calls as no-shows
* fix: type
* feat: add v2 endpoint
* wip
* chore: type err
* chore: add permission
* chore: remove packae
* chore: remove v1 API endpoint
* fix: endpoint
* feat: add new version
* chore: change route
* chore: error msg
* fix: message
* fix: type err
* chore: output
* fix: type err
* chore: bump libraries to 0.0.17
* chore: add noShowHost
---------
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
Co-authored-by: Morgan Vernay <morgan@cal.com >
2024-07-10 13:01:10 +00:00