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
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
995bf09dde
fix: eventType atom team availability tab ( #17158 )
...
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
2024-10-21 10:59:07 +03:00
Somay Chauhan and GitHub
9a5efd39ce
feat: event team Assignment tab atom ( #17145 )
...
* feat: event team Assignment tab atom
* Update event-types-atom.service.ts
* Update event-types-atom.service.ts
2024-10-17 17:33:59 +00:00
Morgan and GitHub
497b0804d3
feat: create event type atom ( #17142 )
...
* feat: create event type atom
* fixup! feat: create event type atom
* fixup! fixup! feat: create event type atom
* docs: base doc for create event type atom
2024-10-17 21:51:23 +05:30
Lauris Skraucis and GitHub
c2085c6be9
refactor: v2 recurring bookings allow specifying recurrence count ( #16989 )
...
* fix: CreateBookingInputPipe
* refactor: allow specifying recurrence count
* Update input.service.ts
2024-10-14 17:59:53 +03:00
Keith Williams and GitHub
11fc2a738a
fix: Docs build issue ( #17082 )
2024-10-12 16:53:43 +00:00
Morgan and GitHub
5594e5c713
feat: google meet conferencing api v2 ( #17023 )
...
* feat: google meet conferencing api v2
* feat: add set default google meet conferencing app
* fixup! feat: add set default google meet conferencing app
2024-10-10 09:28:53 +00:00
Keith Williams and GitHub
8d61b452b1
chore: Removed development only docs tags ( #17028 )
2024-10-09 11:58:58 -03:00
c4cdba1015
refactor: throttler rate limits for oauth client & access token ( #16962 )
...
Co-authored-by: Morgan Vernay <morgan@cal.com >
2024-10-08 17:34:41 +03:00
Lauris Skraucis and GitHub
a10d3599e2
refactor: platform bookings hooks & bookings API ( #16963 )
...
* chore: delete unused bookings hook
* refactor: group bookings hooks in folder
* refactor: rename useGetBooking, useGetBookings to useBooking, useBookings
* refactor: booking inputs and outputs
* chore: make bookings controller work with new inputs and outputs
* make examples app work
* refactor: deprecate fields instead of removing them
* readd eventtypeid
* swagger regenerate
* make recurring booking backwards compatible
* fix test
* update changelog
* swagger update
* fix import
* chore: update lock file
2024-10-08 14:05:28 +02:00
b5fa43f086
feat: checkbox to count managed events for team-wide limits ( #16923 )
...
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
2024-10-07 11:36:50 -04:00
Lauris Skraucis and GitHub
44f6f2e320
refactor: v2 throttler guard ( #16922 )
...
* chore: add logs
* refactor: replace deprecated redis.setex with redis.set
* chore: log response headers
2024-10-07 11:02:41 +00:00
Rajiv Sahal and GitHub
a02240b579
fix: add missing ApiOperation tag v2 ( #16947 )
...
* add missing api operation tag
* update openapi spec for docs
2024-10-06 20:04:25 -03:00
Lauris Skraucis and GitHub
bdea436f8b
docs: v2 refresh tokens and slots endpoints swagger ( #16788 )
...
* docs: oauth refresh endpoint
* docs: slots reserve and delete
* docs: get slots
* swagger
* fix: reserving slot
* Revert "fix: reserving slot"
This reverts commit 8a3ce8464d5dbf67e58da6d3b1aeb51df97240cb.
* Update oauth-flow.controller.ts
2024-10-02 08:44:05 +00:00
Lauris Skraucis and GitHub
e8dfa50119
fix: booker atom recurring event ( #16719 )
...
* fix: BookerEmbed prop type
* fix: booker atom not displaying recurring event
* fix: count interpolation in i18n
2024-10-01 14:00:04 +00:00
Lauris Skraucis and GitHub
4b6a389212
feat: v2 rate limiting ( #16882 )
...
* refactor: pass redis storage to throttler guard
* chore: upgrade throttler to latest
* feat: ApiKey RateLimit table
* chore: upgrade redis storage throttler
* feat: rate limit by api key
* refactor: on delete api key cascade rate limit
* fix: permissions guard work with oauth credentials
* chore: set rate limit in env
* tests: throttler
* feat: include rate limit name in response
* fix: correctly handle multiple rate limits
* chore: remove unused import
* delete migrations
* chore: prisma migration
* doc
* dummy
* fix: permissions guard unit test
* refactor: remove route specific @Throttles
* fix: permissions guard
2024-10-01 12:01:56 +00:00
5b5f7c1c48
fix: Fix conditional check for oAuth client id ( #16809 )
...
Co-authored-by: Rajiv Sahal <sahalrajiv-extc@atharvacoe.ac.in >
2024-09-30 18:56:17 -03:00
c88811aeee
feat: stripe connect atom ( #16190 )
...
* update stripe service
* init endpoints for stripe connect atom
* update stripe controller
* update stripe service
* add generic function to create app credential
* update stripe controller
* update stripe service
* add handler to construct redirectUrl
* restructure files for better readibility
* better naming
* replace STRIPE_PRIVATE_KEY with STRIPE_API_KEY
* fix naming
* remove unused query param
* frontend for stripe connect atom
* custom hooks for stripe connect atom
* abstract response schema into separate file
* fixup
* input dto for stripe controller
* update stripe module
* update endpoints module to include stripe module
* updatte stripe module
* fixups and add check endpoint to stripe controller
* add method to check stripe account
* add helper fn to get on error return value
* update stripe connect atom
* custom hook to check user stripe credentials
* add stripe connect to atom exports
* update stripe connect styling
* add qs stringify package
* translations for stripe connect atom
* updaet typing
* update output dtos for stripe endpoints
* add error message
* fix merge conflicts
* add stripe connect atom to atom exports
* add query param for error rediect link
* add handler for onCheck success and error redirect link
* update index value
* fix merge conflicts
* fixup
* resolve merge conflicts
* war with merge conflicts
* update examples app
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-09-30 19:56:22 +05:30
Rajiv Sahal and GitHub
26a1c749f7
chore: refactor billing service v2 ( #16805 )
2024-09-30 13:56:21 +03:00
ad347cb59f
feat: Event Type Atom base pr ( #16831 )
...
* feat: Event Type Atom base pr
* fixup! Merge branch 'main' into chore-event-type-atom-platform-wrapper-base-pr
* Update EventTypeWebWrapper.tsx
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
2024-09-30 13:44:11 +03:00
ae7fae7da4
feat: Add hideCalendarEventDetails option to event types ( #16817 )
...
* Add `hideCalendarEventDetails` to DB
Co-authored-by: Alex van Andel <emrysal@users.noreply.github.com >
* Add option to hide calendar event details
* Pass `hideCalendarEventDetails` to event object
* Add to API
* Add to CalendarEvent class
* Pass `hideCalendarEventDetails` to calendar services
* Adjust test
* fix: move `hideCalendarEventDetails` to `api/v2/event-types_2024_06_14` and remove from older versions
- Added `hideCalendarEventDetails` to `api/v2/event-types_2024_06_14`
- Removed `hideCalendarEventDetails` from `api/v1` and `api/v2/event-types_2024_04_15`
* fix: calEventRaw is undefined (use event instead)
* chore: Remove debug artifact
* fix: description id + update to copy
* fix: Attempt at fixing type error
* Add hideCalendarEventDetails to test builder
---------
Co-authored-by: Alex van Andel <emrysal@users.noreply.github.com >
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
Co-authored-by: Alex van Andel <me@alexvanandel.com >
2024-09-26 17:08:25 +00:00