Commit Graph

775 Commits (9654677664afba717116a8388263adedde257cb5)

Author SHA1 Message Date
zomars 9654677664 Removed embeds from API as they trigger unused build scripts 2023-04-13 11:11:56 -07:00
Syed Ali Shahbaz fab5eb948c
Update /booking _post.ts to have eventTypeId as required (#254)
Update` /booking` `_post.ts` to have 
- eventTypeId as a required field
- example for request body
- Updated schema that represents actual usage
2023-04-12 17:16:19 +02:00
Syed Ali Shahbaz 386ad87e64
Event type swagger update for location type (#252)
Updates Location Type documentation in swagger for event type _post and
_patch
2023-03-21 10:32:48 -07:00
zomars 8aa004c34a Syncs with monorepo 2023-03-17 16:57:23 -07:00
Nafees Nazik 945ab355a5
feat: return cal link in event-types query (#244)
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
2023-03-17 13:57:18 +05:30
Alex van Andel cb54ab670e
Added 'hosts' to POST call, PATCH needs a db migration on web (#239)
Complete, but bit of a WIP due to _patch
2023-03-15 16:43:00 -07:00
zomars 2b9af8457c Updates yarn 2023-03-15 15:31:39 -07:00
Alex van Andel cb08bba351
Add GET /teams/{id}/event-types endpoint (#251)
Allows fetching team event types - GET /event-types only lists the user
event types - currently fetching the team event types isn't possible.
2023-03-13 12:24:10 +00:00
Syed Ali Shahbaz 870b2df538
hotfixes swagger delete path (#250)
a quick hotfix 🙏
2023-03-13 09:57:00 +00:00
zomars 464c283e0c Reverts oopsie 2023-03-10 12:01:46 -07:00
Syed Ali Shahbaz 4e24b6f7c0
Swagger/multiple fixes (#248)
This PR adds

- Swagger fixes for Teams endpoint
- Removes unintended remnant from custom input
- Swagger fixes for Payments endpoint
2023-03-10 22:34:14 +05:30
Syed Ali Shahbaz 8fc4eedf5f
Adds swagger for schedules (#247)
This PR updates swagger documentation for the Schedules endpoint
2023-03-10 22:33:41 +05:30
Syed Ali Shahbaz 2da8784865
swagger docs update for selected calendars (#246)
Adds swagger doc update for selected calendars API endpoint
2023-03-10 22:33:27 +05:30
Syed Ali Shahbaz ccf93190d7
Swagger docs for webhooks (#245)
This PR updates and adds to the swagger documentation for /webhooks
endpoint
2023-03-10 22:33:09 +05:30
Syed Ali Shahbaz e54e1aa72e
Updates Availability and Attendees swagger docs, hotfixes Booking API doc (#241)
- Adds swagger definition and swagger fixes to /availability and
/attendees
- Also fixes Booking API endpoint definition (startTime -> start,
endTime -> end)
2023-03-10 19:29:24 +05:30
Alex van Andel 59c25d41fd Removed next-transpile-modules 2023-03-06 12:45:04 +00:00
zomars d65d08a3a1 Type fix 2023-03-03 13:20:27 -07:00
zomars d8d875cc01 Upgrades next 2023-02-28 15:01:11 -07:00
Syed Ali Shahbaz 2a5688f2a6
Adds the ability to confirm a booking using API (#243)
Simply adds the ability to update the status of a booking (meant for
confirming a booking) using the API
Fixes: https://github.com/calcom/cal.com/issues/7121
2023-02-23 15:04:48 -07:00
Syed Ali Shahbaz d47fa578b7
Fixes _patch swagger paramters 2023-02-23 20:46:55 +05:30
Syed Ali Shahbaz a4f82fa6fa
Adds swagger definition to Event Types (#242)
This PR adds swagger definition to Event Types endpoint with request
body examples for POST and PATCH requests
2023-02-23 13:54:10 +01:00
zomars 42eb7041d4 New linting rules 2023-02-16 14:01:40 -07:00
Syed Ali Shahbaz f02cfc9990
Swagger definition general fixes (#237)
This PR addresses definition errors currently residing within our
swagger doc.
 
~DISCLAIMER: There is still an error for our DELETE booking call, as
open API standard doesn't expect the DELETE call to contain a request
body, but we are requiring it in the way it currently works. Perhaps we
should move those to Query Parameters instead. Thoughts @zomars @emrysal
?~

It was taken care of by @leog and the docs are now updated as per the
endpoint

<img width="247" alt="image"
src="https://user-images.githubusercontent.com/52925846/217799706-21b7c21d-696b-4e20-a682-c8a949694b61.png">
<img width="629" alt="image"
src="https://user-images.githubusercontent.com/52925846/217799842-c903c23a-0b0d-4208-a3e9-01a682eeff97.png">

---------

Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: Omar López <zomars@me.com>
2023-02-13 12:52:11 +00:00
zomars fdb45e3745 More tests 2023-02-08 19:56:41 -07:00
zomars 317e05511b Shared insntances test fix 2023-02-08 19:33:23 -07:00
zomars 0389ebfed5 Testing disconnect 2023-02-08 19:30:03 -07:00
Syed Ali Shahbaz 2248d7069f
Improves Destination Calendar docs in swagger (#235)
Adds swagger definition to `destination-calendar` endpoint
2023-02-08 17:16:32 -07:00
Syed Ali Shahbaz f170f17f2c
Improves custom inputs docs in swagger (#233)
Adds swagger definition to `custom-inputs` endpoint
2023-02-08 14:38:04 -07:00
zomars dc0a6eaa32 Export for typecheck 2023-02-08 10:56:00 -07:00
zomars 0b2724124a Updated checkLicense 2023-02-08 10:56:00 -07:00
Syed Ali Shahbaz 3ebab100ce
Fixes invalid availability schema (#236)
Hotfix attempt to fix fix invalid availability _post schema in swagger
2023-02-08 15:52:08 +01:00
Omar López 992bdc0b54
Fixes paginated endpoints (#234)
- Passing an invalid number or 0 was causing trouble
2023-02-07 17:20:21 -07:00
Syed Ali Shahbaz 279c3da21f
Improves Booking docs in swagger (#219)
Adds definition to booking swagger definition, and fixes user _post
definition example
2023-02-07 08:41:08 -07:00
Omar López 3517ef6adc
Upgrades typescript to 4.9.4 (#230)
https://github.com/calcom/cal.com/pull/6747
2023-01-26 18:51:06 -07:00
zomars 0af9e11360 Revert "Upgrades typescript"
This reverts commit 944a50bd29.
2023-01-26 14:28:41 -07:00
zomars 944a50bd29 Upgrades typescript 2023-01-25 18:37:51 -07:00
zomars 9af022b663 Fix for multi-tenant users 2023-01-25 14:14:43 -07:00
zomars a4a6660421 Fix deploy script 2023-01-23 17:24:47 -07:00
Leo Giovanetti 6cec8620cb
Pagination issue fixed, total added (#227)
Fixes #217.
2023-01-18 12:49:31 -07:00
Udit Takkar 7aebdb8c96
fix: use schema from zod-utils (#225)
fixes:- https://secure.helpscout.net/conversation/2117165409/2395

How to test? 
Create an event type with custom inputs 
GET Request on /event-types end point


After:- 
<img width="1440" alt="Screenshot 2023-01-07 at 4 57 39 PM"
src="https://user-images.githubusercontent.com/53316345/211147930-1154f1ad-5309-4e9c-b2e0-164169717d47.png">

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
2023-01-07 08:56:13 -07:00
zomars 2808b798df Upgrades next 2023-01-05 18:02:06 -07:00
Hariom Balhara 9c23a8e5ab
Security Fixes (#224)
Fixes - 2,3,4 security vulnerabilities reported in this message.
https://calendso.slack.com/archives/C03127U5S5Q/p1671922033089329

More Fixes
- Dont't allow a user to add a random attendee to a booking not owned by
him
- Don't allow a user to add a random cal user as an organizer of the
booking.
- Membership deletion should be as per the Privileges of
Owner,Admin,Member
2023-01-04 15:17:47 -07:00
zomars 604d937661 Linting 2022-12-20 11:58:30 -07:00
Carina Wollendorfer c3e0852541
Only allow team admin and owner to create team event types (#220)
Currently, anybody can create an event type for any team. With this PR
we only allow team ADMIN and OWNER to create event types for the team.

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
2022-12-20 10:50:46 -07:00
Carina Wollendorfer 161ebacfef
Don't allow team admins to give owner permissions (#221)
Throw an error if a user of a team with ADMIN permission tries to change
permission to OWNER (Bug#3)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
2022-12-20 10:45:24 -07:00
zomars 12f19ff7c0 Upgrades zod 2022-12-15 15:56:23 -07:00
Joe Au-Yeung 5d892df019
Allow seatsPerTimeSlot and seatsShowAttendees in event type calls (#216)
This PR allows `seatsPerTimeSlot` and `seatsShowAttendees` in event type
POST and PATCH calls
2022-12-15 15:36:09 -07:00
zomars c129586336 Linting 2022-12-08 16:34:09 -07:00
zomars f3c5f9bc0c Import fixes 2022-12-08 16:28:28 -07:00
zomars 8b74f463f4 Needed for console 2022-12-08 15:00:06 -07:00