Morgan and GitHub
eaff9e8c89
fix: disable mandatory reminder for platform ( #17998 )
...
* fix: disable mandatory reminder for platform
* bump libraries version
* fixup! bump libraries version
2024-12-04 12:33:53 +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
Somay Chauhan and GitHub
3015c5a15e
fix: trying to update the timeFormat throws error ( #17991 )
...
* timeFormat should be an intiger
2024-12-04 09:29:51 +01:00
3222be9171
docs: v2 rolling window and authentication ( #17825 )
...
* docs: booking window rolling description
* docs: v2 auth and navigating endpoints
* Update apps/api/v2/swagger/documentation.json
* Update docs/api-reference/v2/introduction.mdx
* Update docs/api-reference/v2/introduction.mdx
* Update docs/api-reference/v2/introduction.mdx
* docs: refresh and force-refresh endpoints
* docs: booking fields and toasts guides
* fix docs
* fix: bookings docs
* docs: booking-redirects usebooking
* Update booking-fields.mdx
* Update booking-fields.mdx
* Update booking-fields.mdx
* Update booking-window.input.ts
* Update replacing-toasts.mdx
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-12-03 17:53:14 +01:00
Lauris Skraucis and GitHub
131b3d0984
refactor: v2 validate booking fields ( #17878 )
...
* refactor: v2 validate booking fields
* test
2024-11-28 10:37:42 +02:00
Lauris Skraucis and GitHub
999019c6f0
refactor: v2 return host username ( #17880 )
...
* fix: v2 return booking with host username
* auto gen docs
* auto gen docs
2024-11-27 15:15:12 +00:00
Lauris Skraucis and GitHub
240ab60c5f
fix: v2 return booking with split name attendee ( #17877 )
2024-11-27 16:22:58 +02:00
Morgan and GitHub
471f5bd7eb
chore: add Free to platform plan guard ( #17862 )
2024-11-27 01:40:39 +00:00
Morgan and GitHub
d4afa1436d
chore: make throttler logs verbose ( #17845 )
2024-11-26 09:42:27 +00:00
Morgan and GitHub
88efa0a2b2
fix: oauth client users controller permissions ( #17822 )
...
* fix: oauth client users controller permissions
* fixup! fix: oauth client users controller permissions
* fixup! fixup! fix: oauth client users controller permissions
* fixup! fixup! fixup! fix: oauth client users controller permissions
2024-11-26 09:41:03 +00:00
Morgan and GitHub
c1112ab2ab
fix: extract clientId header manually apiv2 (Revert) ( #17832 )
...
This reverts commit b0bf87f3ed .
2024-11-25 15:59:39 +00:00
Morgan and GitHub
34d4c3d775
fix: api v2 webhook issue ( #17831 )
2024-11-25 15:52:00 +00:00
Lauris Skraucis and GitHub
8b9693ea60
fix: v2 booking location ( #17817 )
...
* fix: create-booking.input dont require location to be url
* fix: return video call url for booking location
* try to debug test
* remove test file
2024-11-25 07:34:59 +00:00
Lauris Skraucis and GitHub
9fa73aca86
fix: v2 booking confirmation emails not sent ( #17764 )
...
* fix: round robin recurring don't send email if noEmail
* fix: noEmail: false for non platform requests
* fix: booking e2e tests
* refactor: move bookings e2e tests in folder and uniform name
* test: emails
* test: team emails
* reschedule and cancel emails with api key
* test: round robin reassign emails
* test: confirm and decline emails
* test: confirm and decline emails
* fix tests
* test: recurring booking emails
* remove unused imports and spies
* fix test
* remove log
* chore: bump libraries
* try to fix ci tests
2024-11-22 18:19:56 +02:00
Anwar Sadath and GitHub
1cf84a270c
feat: Expose booking created at in v2 API response ( #17452 )
...
* feat: Expose booking created at in booking detailed view and v2 API response
* Fix tests
* Fix spacing
* Add API v2 tests to verify createdAt is present while creating a booking and fetching a booking
* Add test to validate createdAt after rescheduling a booking
2024-11-22 13:50:11 +05:30
Morgan and GitHub
b0bf87f3ed
fix: extract clientId header manually apiv2 ( #17783 )
2024-11-21 22:46:13 +00:00
Lauris Skraucis and GitHub
58cac84f4a
feat: v2 expose booking metadata ( #17708 )
...
* feat: accept metadata and store it in database
* feat: accept metadata and store it in database
* feat: add BookingSeat.metadata column
* feat: handleNewBooking: store booking seat metadata when first time seated booking
* feat: handleSeats, createNewSeat store metadata when 2nd+ seated booking
* feat: return booking metadata in output
* tests: metadata
* test: seated bookings
* swagger
* fix: reassign bookings test
* test: use different metadata in recurring
* fix: test
* test invalid metadata
* refactor: output service
* readd new line
* chore: bump platform libraries
* refactor: metadata doc
2024-11-20 15:15:49 +02:00
Anwar Sadath and GitHub
ff18b9a733
chore: Add support for new docker compose command to run V2 API ( #17744 )
2024-11-20 08:47:37 +00:00
Lauris Skraucis and GitHub
2b1041460c
feat: v2 subsequent recurring booking cancellation ( #17645 )
...
* refactor: cancelling all remaining seated recurring bookings not possible
* chore: document cancel booking endpoint
* chore: remove unused imports
* feat: cancel subsequent bookigns
* fix: flaky test
* refactor: getCanceledSubsequentBookings
* refactor: after cancellation return whole recurrence sequence
2024-11-18 08:17:48 +00:00
Keith Williams and GitHub
815065d67c
feat: Add API v2 logs to axiom ( #17595 )
...
## What does this PR do?
Adds ability to send API v2 logs to Axiom.
## Mandatory Tasks (DO NOT REMOVE)
- [x] I have self-reviewed the code (A decent size PR without self-review might be rejected).
- [x] N/A - I have updated the developer docs in /docs if this PR makes changes that would require a [documentation change](https://cal.com/docs ). If N/A, write N/A here and check the checkbox.
- [x] I confirm automated tests are in place that prove my fix is effective or that my feature works.
## How should this be tested?
- Add the AXIOM_DATASET and AXIOM_TOKEN variables and run the API locally. Ensure the logs flow through to Axiom.
2024-11-13 13:18:53 -07:00
74b4d7a94a
chore: Automated API v2 OpenAPI spec generation ( #17046 )
...
* chore: Automated API v2 OpenAPI spec generation
* chore: update docs
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
Co-authored-by: Morgan Vernay <morgan@cal.com >
2024-11-13 15:28:25 +00:00
Lauris Skraucis and GitHub
1aac70f643
feat: v2 confirm / decline booking endpoints ( #17578 )
...
* feat: v2 confirm / decline booking endpoints
* chore: bump platform libraries
* fix: type export
* tests: accepting and declining a booking
* refactor: sent emails abstract renderEmail with getHtml that is mocked in test
2024-11-13 11:20:43 +02:00
Lauris Skraucis and GitHub
0dde8c1db9
feat: v2 multiple length event types and their bookings ( #17598 )
...
* feat: input lengthInMinutesOptions
* Revert "feat: input lengthInMinutesOptions"
This reverts commit f23fd8a3861097f0972cc6210b47f25511d85183.
* feat: handle lengthInMinutesOptions input
* feat: handle lengthInMinutesOptions event output
* fix: remove it.only
* feat: variable length bookings
2024-11-13 11:13:11 +02:00
Morgan and GitHub
82901fee94
fix: apiv2 updateNewTeamMemberEventTypes silently ( #17555 )
...
* fix: apiv2 updateNewTeamMemberEventTypes silently
* fixup! fix: apiv2 updateNewTeamMemberEventTypes silently
2024-11-12 09:32:21 -03:00
Morgan and GitHub
6889592d4f
feat: add free platform plan ( #17581 )
...
* feat: add free platform plan
* chore: handle payment success / fail overdue
* chore: refactor and add tests
2024-11-12 11:14:51 +02:00
25d39b4273
feat: api v2 reassign ( #17460 )
...
* adding input types and method to controller/service
* add output types
* add outputs and inputs
* feat: reassign automatically
* feat: reassign to user
* e2e test for reassign
* update platform libraries + experimental modules for jest
* fix test
---------
Co-authored-by: supalarry <laurisskraucis@gmail.com >
Co-authored-by: Lauris Skraucis <lauris.skraucis@gmail.com >
2024-11-08 12:42:59 +00:00
Morgan and GitHub
79f0754bf7
chore: add sentry performance tracking api-v2 ( #17519 )
...
* chore: add sentry performance tracking api-v2
* fixup! chore: add sentry performance tracking api-v2
2024-11-07 09:38:05 -03:00
Morgan and GitHub
e675ad0c6c
fix: assign/remove team members to team event-types ( #17483 )
...
* fix: assign/remove team members to team event-types
* fixup! fix: assign/remove team members to team event-types
* fixup! fixup! fix: assign/remove team members to team event-types
* fixup! fixup! fixup! fix: assign/remove team members to team event-types
2024-11-05 17:19:43 +02:00
Lauris Skraucis and GitHub
f868b86e6c
fix: creating recurring seated bookings for same timeslot ( #17482 )
...
* fix: creating multiple seated bookings for same timeslot
* add test
2024-11-05 15:38:21 +02:00
Morgan and GitHub
5646229cd4
fix: cancelling invalid booking seat apiv2 ( #17484 )
2024-11-05 12:30:38 +01:00
fee3b73bda
feat: payment card atom ( #17203 )
...
* init stripe payment card atom
* cleanup
* update platform libraries
* fix import paths
* add function to get user payment info
* fixup
* resolve merge conflicts
* fixup fixup
* resolve merge conflicts
* fixup
* update payments page
* add props for event payment success and failure
* update props and fixup
* bump platform libraries
* fixup! bump platform libraries
* fixup! fixup! bump platform libraries
* resolve merge conflicts
* fix: add isActive to paymentsTab
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
Co-authored-by: Morgan Vernay <morgan@cal.com >
2024-10-31 11:21:13 +02:00
c3f03c8000
fix: stripe connect atom for teams ( #17294 )
...
* add teamId
* add team app credentials method
* add handler to get all user admin teams
* update stripe logic to handle teams
* enable teamId for stripe connect
* update stripe module
* implement PR feedback
* update stripe module
* add method to get credential by team id
* handle check for teamId
* abstract team and individual stripe connection checks into two separate parts
* hide badge for platform user
* update typing
* add logic to handle team stripe integration
* bump platform libraries
* bump platform libraries
---------
Co-authored-by: Morgan Vernay <morgan@cal.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-10-30 15:28:26 +02:00
Morgan and GitHub
2784564427
Revert "chore: ensure idempotency cancel booking api v2" ( #17407 )
...
This reverts commit 85246f0754 .
2024-10-30 11:37:17 +00:00
Morgan and GitHub
b82b39d12d
chore: add logs api-v2 booking controllers ( #17389 )
...
* chore: add logs apiv2 booking controller
* chore: add logs apiv2 booking controller
2024-10-29 12:02:22 +00:00
Morgan and GitHub
85246f0754
chore: ensure idempotency cancel booking api v2 ( #17385 )
2024-10-29 12:20:42 +02:00
Morgan and GitHub
9868926ec1
chore: webhooks meeting started / ended with oauthClientId ( #17324 )
...
* chore: oauth webhooks meeting started / ended
* fixup! Merge branch 'main' into chore-webhooks-platform-meeting-started-ended
2024-10-25 13:28:49 +00:00
Lauris Skraucis and GitHub
69ca57e45a
fix: v2 event types booking fields & enable booker atom google-meet location ( #17321 )
...
* fix: v2 phone system booking field
* feat: atom support google-meet
* feat: unknown booking field return type
* tests
* bump platform libraries
* driveby: improve create-booking-input
2024-10-25 15:55:29 +03:00
Lauris Skraucis and GitHub
c629d08a9c
fix: v2 event type locations ( #17288 )
...
* refactor: split internal locations in separate file
* refactor: rename TransformedLocationsSchema to InternalLocationsSchema
* feat: add missing locations in internal schema
* refactor: explicit input locations only for input
* refactor: explicit output locations only for output
* fix: v2
* fix: atoms
* test: internal to api locations transformation
* e2e tests
* upgrade platform libraries
2024-10-24 17:21:17 +00:00
Morgan and GitHub
077f29305d
fix: default booking status filter booking.controller ( #17282 )
2024-10-24 09:02:37 +00:00
Lauris Skraucis and GitHub
058d58a6f3
revert chore: make rate limit logs verbose api-v2 ( #17273 )
...
This reverts commit e2c54b1fc4 .
2024-10-23 14:17:54 +00:00
Morgan and GitHub
23d1a21e23
chore: remove json stringify from requestId logs api-v2 ( #17263 )
2024-10-23 07:05:31 +00:00
Morgan and GitHub
e2c54b1fc4
chore: make rate limit logs verbose api-v2 ( #17262 )
2024-10-23 06:53:51 +00:00
Lauris Skraucis and GitHub
bd4a949a7c
fix: v2 seated bookings ( #17045 )
...
* fix: rely on booking uid instead of id from handleNewBooking
* docs: managed user create input timeZone
* fix: make bookingResponsesSchema nullable
* Revert "fix: make bookingResponsesSchema nullable"
This reverts commit f3127b31dd259d23cae520c994d8e712fc0fa17e.
* refactor: define inputs
* refactor: define outputs
* refactor: bookings controller
* test: first seated event test
* test: recurring seated event booking
* test: multiple bookings for seated event
* test: fetching individual seated bookings
* test: fetch all bookings
* test: make reschedule seated work and test it
* wip: cancel seated booking
* test: cancel seated booking
* refactor: dont return attendee email in seat booking responses
* refactor: order of properties in response
* refactor: test cleanup
* refactor: simplify output booking service
* refactor: flaky test
* refactor: try to fix test by splitting them
* try to fix test
* try to fix tests
2024-10-22 13:31:59 +00:00
Lauris Skraucis and GitHub
b768cc5b44
feat: v2 and atoms attendee defined meeting locations ( #17224 )
...
* request: allow saving attendee address, location and custom location
* response: return new event type locations
* atoms: make elsewhere location work
* update swagger
* chore: update and use platform libraries
* fix schema
* republish libraries
* update lock file
* fix: make somewhereElse optional in response location
* fix: tests
2024-10-22 13:24:16 +00:00
Lauris Skraucis and GitHub
de80ca2aaa
fix: reset v2 & AvailabilitySettings atom availabilities and overrides ( #17236 )
2024-10-22 13:19:36 +00:00
Lauris Skraucis and GitHub
4afbe26506
refactor: v2 response in case of duplicate managed user ( #17214 )
2024-10-22 13:17:12 +00:00
Morgan and GitHub
c2662638a5
fix: booking.controller clone req to avoid side effect apiv2 ( #17239 )
2024-10-22 08:44:09 +00:00
5f6032131b
feat: payments tab for event types atom ( #16892 )
...
* update translations
* add payments tab to event types platform
* payments tab for event types platform wrapper
* update event types props
* fix icon
* add stripe form
* update event type platform wrapper
* testing EventTypeAppCard component
* update atoms module
* add endpoint to get app integration based on slug
* input dtos for atoms app integration endpoint
* update platform libraries
* add queries for app integration endpoint
* chore: fixup
* custom hook to get app integration
* export TeamsQuery type to use for platform
* update props for stripe atom
* update payments tab
* update platform libraries in local (temperory)
* fix merge conflicts
* fixup
* resolve merge conflicts
* fixup
* Update package.json
* update platform libraries
* fix imports
* resolve merge conflicts
* more import paths fixes
* fixup
* cleanup comments
* include payments tab
* resolve merge conflicts
* fixup
* Update package.json
* revert yarn.lock
* Update yarn.lock
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-10-21 18:49:35 +05:30
Lauris Skraucis and GitHub
4e90b65884
refactor: v2 and booker atom booking fields ( #17168 )
...
* handle storing disableOnPrefill
* feat: allow overriding properties of default name and email fields
* feat: allow overriding properties of default name and email fields
* feat: output booking fields
* fix: event type test
* refactor: booker atom booking fields handling
* tests
* fix: boolean booking field
* update platform libraries
* fix: unit tests
2024-10-21 13:45:30 +03:00
Morgan and GitHub
3999f84eff
chore: better request/response logging apiv2 ( #17210 )
...
* chore: better request/response logging apiv2
* fixup! chore: better request/response logging apiv2
2024-10-21 08:19:31 +00:00