* refactor: make dateFrom and dateTo required
* refactor: make dateFrom and dateTo required
* refactor: useCalendarsBusyTimes enabled only if dateFrom & dateTo passed
* refactor: ApiAuthStrategy return isSystemAdmin and define returned type
* refactor: use ApiAuthGuardUser instead of GetUserReturnType
* regenerate docs
* feat: v2 teams event-types endpoints
* refactor: rely on teams event types service and repository
* finish mergin main into this branch
* test: teams event types
* refactor: move teams event types output from org to teams folder
* refactor: move teams event types output from org to teams folder
* chore: finish merge main
* refactor: logger name and unused import
* chore: finish main merge
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
* feat: teams endpoints
* refactor: organization teams reuse team types
* refactor: move team specific functions out of organizations-teams.repository
* supporting files
* regenerate docs
* feat: stripe service to generate team creation checkout
* refactor: request payment when creating a team
* fix: tests
* fix env
* driveby: event type name and email booking fields
* finish merge main
* feat: added office 365 video to conferencing atoms
* added documentation for conferencing atoms
* added props table to the documentation
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
* chore: add successRedirectUrl to event-types api v2
* chore: add successRedirectUrl to event-types api v2 patch
* chore: add successRedirectUrl to event-types api v2 patch
* refactor: store default booking fields when creating event
* Revert "refactor: store default booking fields when creating event"
This reverts commit 78b7c4eda2be61420b4410bc80a3d77b5557a967.
* refactor: v2 return default booking fields if they are null
* test: v2 returning default booking fields if they are null
* chore: platform-libraries export getBookingFieldsWithSystemFields
* added api/v2 for zoom connect
* Update conferencing.controller.ts
* fix: added api for ConferencingAppsViewPlatformWrapper
* type fixes
* added getBulkEventTypes api for bulk-update default location
* added bulk-update-to-default-location
* fix:bulk-update-to-default-location
* invalidated
* fixed returnTo and onErrorReturnTo
* make logos work for conferencing atoms
* smalll improvements
* fixup
* share common types
* type fix, and fixed a typo
* fix: type-error
* fix: json.parse(json.parse())
* fix: invalidate query
* fix: removing app throws error in the main app
* undo platform-libraries-1.2.3
* update platform-libraries version
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
* feat: Add formatAsStartAndEndTime query parameter to slots API V2 endpoint to return start and end time of a slot
* Update apps/api/v2/src/modules/slots/controllers/slots.controller.ts
Co-authored-by: Praash <99237795+Praashh@users.noreply.github.com>
* Fix duration was allowed to be any number
* Refactor code
* Show slotFormat property as optional in swagger doc
---------
Co-authored-by: Praash <99237795+Praashh@users.noreply.github.com>
* lock users on signup if their email is in blacklist
* add to turbo env list
* prevent locked user or blocked email domain from using API
* Refactored to only run 1 query to find the user
* Fixing tests
* WIP
* WIP
* WIP
* Discard changes to turbo.json
* Fixed tests
* Update isLockedOrBlocked.test.ts
* Update isAdmin.integration-test.ts
* Update tsconfig.json
* chore: rename to watchlist
Signed-off-by: Omar López <zomars@me.com>
---------
Signed-off-by: Omar López <zomars@me.com>
Co-authored-by: sean-brydon <sean@cal.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
* 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
* 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
* seed to org
* more org+routing form seed improvments
* add routing responses
* check if attributes already exist to prevent crash
* remove files not for PR
* fix type error
* fix connection
* assign manually
* fix seed
* update to match integration tests
* fix integration test to new user count
## 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.