forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extend api/v2/event-types (calcom#16128)
* feat: extended api/v2/event-types to add more attributes - additional attributes added * bookingLimits * onlyShowFirstAvailableSlot * durationLimits * offsetStart * bookingWindow * add swagger docs * type fix * extend api/v2/teams/[teamId]/event-types * added tests * extend api/v2/orgs/[orgId]/teams/[teamid]/event-types * update: added tests to get and update event-type as well * rename variables - bookingLimits -> bookingLimitsCount - durationLimits -> bookingLimitsDuration * refactor: rename bookingLimits and durationLimits, add descriptions - Renamed `bookingLimits` to `bookingLimitsCount` - Renamed `durationLimits` to `bookingLimitsDuration` - Added descriptions with examples to `bookingLimitsCount` and `bookingLimitsDuration` * feat: add unit tests for transformation logic in api-request and api-response - Added tests for `transformApiEventTypeIntervalLimits` - Added tests for `transformApiEventTypeFutureBookingLimits` * fix: type errors * feat: added custom validators for BookingLimitsCount and BookingLimitsDuration * fix: unit-tests * Update CHANGELOG.md * refactor: update imports to use platform-libraries from @calcom/platform-libraries-1.2.3 * fix: prevent double transformation of bookingWindow and bookingFields - resolving e2e test failures --------- Co-authored-by: Morgan <[email protected]>
- Loading branch information
1 parent
894c0fc
commit 8fbc76d
Showing
28 changed files
with
1,262 additions
and
5,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
}, | ||
"dependencies": { | ||
"@calcom/platform-constants": "*", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].27", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].28", | ||
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]", | ||
"@calcom/platform-types": "*", | ||
"@calcom/platform-utils": "*", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.