Commit Graph

75 Commits (992bdc0b543d2b305b293a8ae9dcc2f0ae8d132c)

Author SHA1 Message Date
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
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 055699f612 Various import and type fixes 2022-11-25 06:58:21 -07:00
zomars d93fd26a1e Removed unused methods middleware 2022-10-21 13:30:09 -06:00
Leo Giovanetti debc8dbafb
Using abstracted booking cancellation (#191)
Implemented `DELETE /booking/:uid` as well as `DELETE
/booking/:uid/cancel` based on abstracted cancellation logic from
webapp.

PR dependant on https://github.com/calcom/cal.com/pull/5105

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2022-10-21 00:49:57 +01:00
Alex van Andel 109377b65c
Returns bookings in response where user is attending (#196) 2022-10-20 18:27:24 +01:00
Alex van Andel ecd20d63c9
Added attendees & user (#192) 2022-10-19 19:35:34 +01:00
Alex van Andel ce2df7641f
Feature/additional fields (#189)
Added timeZone, attendees.(email, name, timeZone, locale), user.(email,
name, timeZone, locale) & metadata
2022-10-19 17:03:54 +01:00
Omar López 8c24c5c714
Refactor/booking logic (#183)
refs #175 

Reuses the same logic for creating bookings from the web app.

Co-authored-by: Leo Giovanetti <hello@leog.me>
2022-10-13 12:29:30 -06:00
zomars 4ba0395efa Permission fixes 2022-10-11 14:09:22 -06:00
zomars c03144c343 Fixed major flaw with authMiddleware
authMiddleware should not use defaultResponder directly as it will catch thrown error and we need those errors to prevent running the rest of the code.
2022-10-10 20:23:08 -06:00
Leo Giovanetti 70b9969fe3 Fixing en error case for invalid eventTypeId 2022-10-06 18:27:49 -03:00
Leo Giovanetti 2a05f15156
Recurring booking implementation (#167)
* Recurring booking implementation

* Tweaks to expected texts in tests

* Applied feedback

Co-authored-by: zomars <zomars@me.com>
2022-10-06 17:40:41 -03:00
zomars 308c192912 Splits booking/[id] endpoint
# Conflicts:
#	pages/api/bookings/[id].ts
2022-07-08 11:22:08 -06:00
Agusti Fernandez Pardo 6b09fb24ab fix: adds returns, no breaks 2022-07-08 17:23:06 +02:00
Agusti Fernandez Pardo 44ce77f814 fix: test return booking get 2022-07-06 01:17:59 +02:00
Agusti Fernandez Pardo 04b9b71310 fix: userId not, id remove templates stall 2022-06-24 00:09:23 +02:00
Agusti Fernandez Pardo 6e68671c2a fix: merge w main 2022-06-18 01:52:37 +02:00
Agusti Fernandez Pardo 1d2e5f07ef feat: admin endpoints for bookings 2022-06-15 21:10:19 +02:00
Agusti Fernandez Pardo ed1bc8015a feat: initial isAdmin work for events and attendees 2022-06-15 20:43:35 +02:00
Syed Ali Shahbaz b385d3547b
Adds debug console.log 2022-06-13 13:24:21 +05:30
Syed Ali Shahbaz ecce02ebbf debug logs added 2022-06-12 11:43:26 +05:30
Syed Ali Shahbaz 935473cfcd removed comment 2022-06-12 11:25:53 +05:30
Syed Ali Shahbaz bd88bec1d2 fix prettier 2022-06-12 11:24:38 +05:30
Syed Ali Shahbaz 470c43befe call webhook before sending booking response 2022-06-12 11:16:16 +05:30
Syed Ali Shahbaz 910a0f386a
Debug booking API 2022-06-11 22:39:03 +05:30
Syed Ali Shahbaz 719e21497b removed invalid response 2022-06-11 17:03:11 +05:30
Syed Ali Shahbaz 3c98c5cefc fixing id to uid in create body 2022-06-11 16:58:21 +05:30
Syed Ali Shahbaz 61e742ed5e uuid automate in booking API 2022-06-11 16:57:35 +05:30
Syed Ali Shahbaz 110edd7dcc removed 18next rel 2022-06-11 16:54:30 +05:30
Syed Ali Shahbaz 99e58c414c prettier fix -3 2022-06-10 16:36:28 +05:30
Syed Ali Shahbaz 301c132815 prettier fix attempt-2 2022-06-10 16:21:55 +05:30
Syed Ali Shahbaz 5453af6d6e prettier fix attempt 2022-06-10 15:57:31 +05:30
Syed Ali Shahbaz 8339d339a1 prettier and payload fix 2022-06-10 13:38:45 +05:30
Syed Ali Shahbaz f1c98181d2 tfunction added 2022-06-10 13:30:43 +05:30
Syed Ali Shahbaz ef5bbfe4f9 fixed timeZone key 2022-06-10 13:22:06 +05:30
Syed Ali Shahbaz a8ad052a03 --convert date to string in calendar event 2022-06-10 13:16:58 +05:30
Syed Ali Shahbaz cd3a80006c --fix 2022-06-10 13:10:16 +05:30
Syed Ali Shahbaz adab79040f --fix 2022-06-10 13:06:22 +05:30
Syed Ali Shahbaz 4431142d4e remove unnecessary return 2022-06-10 12:58:04 +05:30
Syed Ali Shahbaz f9c20bc8ce --fix null estimated value 2022-06-10 12:53:59 +05:30
Syed Ali Shahbaz 4f36681006 --fix 2022-06-10 12:51:24 +05:30
Syed Ali Shahbaz e3822c50d0
Update booking file with webhook payload 2022-06-10 12:43:41 +05:30
Syed Ali Shahbaz 542beb0079
adjust booking file 2022-06-10 11:46:51 +05:30
Syed Ali Shahbaz d569296654
Add webhook trigger --init 2022-06-09 17:09:20 +05:30
Agusti Fernandez Pardo e407a16766 feat: dynamic prisma 2022-06-06 18:17:10 +02:00
Agusti Fernandez Pardo 0ca9748674 fix: dont throw err on bad query 2022-05-18 14:27:30 +02:00
Agusti Fernandez Pardo 5aa0b37443 fix build and pass lint 2022-05-17 19:33:18 +02:00
Agusti Fernandez Pardo 7deb5f8e1f fix: webhooks upgraded to new version, need to update templates 2022-05-11 15:57:00 +02:00
Agusti Fernandez Pardo 4c131fbcdd feat: adds auth/signup for ee customers 2022-05-10 19:52:59 +02:00