Commit Graph

314 Commits (faa685adb60bee2cad75518ca7bfa3d6831114f1)

Author SHA1 Message Date
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
Agusti Fernandez Pardo 996ec31b26 Merge branch 'main' into feat/admin-events 2022-06-15 20:11:30 +02:00
Agusti Fernandez Pardo 1bde5d88c1 fix: add back optional 2022-06-14 23:43:53 +02:00
Agusti Fernandez Pardo 372b20a4c9 fix: no post for now 2022-06-14 23:42:51 +02:00
Agusti Fernandez Pardo ba37ae78d9 fix: adds middleware, makes userId not optional 2022-06-14 23:41:33 +02:00
zomars e1bcd38e61 Adds basic availability endpoint 2022-06-14 15:17:09 -06:00
zomars 1ab81fb8ee Better error on user delete 2022-06-14 14:51:23 -06:00
zomars 0f72a9084a Splits user endpoints by method 2022-06-14 14:35:15 -06:00
zomars 7d0cef065f Refactors user id endpoint 2022-06-14 14:10:59 -06:00
zomars 58e1ea9bf6 User endpoint refactoring 2022-06-14 14:08:58 -06: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 180e925bed feat: dynamic prisma almost working 2022-06-08 18:52:25 +02:00
Syed Ali Shahbaz db6f5cad15
401 message fix 2022-06-08 13:28:22 +05:30
Syed Ali Shahbaz 9b1dffbdb9
401 return fix 2022-06-08 13:27:48 +05:30
Syed Ali Shahbaz b881312f10
hotfix ctx removal 2022-06-08 13:20:44 +05:30
Syed Ali Shahbaz ef3838b476
hotfix ctx removal 2022-06-08 13:20:09 +05:30
Syed Ali Shahbaz bae84f2ce4
Added team event check to POST 2022-06-08 13:12:05 +05:30
Syed Ali Shahbaz cd03f5a821
Adds team event type check 2022-06-08 13:06:28 +05:30
Agusti Fernandez Pardo e407a16766 feat: dynamic prisma 2022-06-06 18:17:10 +02:00
Agusti Fernandez Pardo 0eed3e51e4 fix: only check event type ownership if not admin 2022-06-04 02:26:16 +02:00
Agusti Fernandez Pardo 0fc374c810 feat: add admin endpoint support for event-types id 2022-06-04 01:32:05 +02:00
Agusti Fernandez Pardo 12b7b3ecbf fix: add event-types admin endpoints 2022-06-04 01:17:01 +02:00
Agusti Fernandez Pardo 1180f3f258
Merge pull request #105 from calcom/feat/uuid-hooks
feat: adds automatic generation of uuid id for webhooks create on API
2022-06-02 15:56:01 +02:00
Agusti Fernandez Pardo 43b94d3e96 feat: adds automatic generation of uuid id for webhooks create on API 2022-06-01 17:05:33 +02:00
Agusti Fernandez Pardo 767f170cae
Merge pull request #103 from calcom/feat/admin-users
feat: Admin API users manegement endpoints
2022-05-31 21:00:51 +02:00
Agusti Fernandez Pardo 187d5f2b10 docs: add some comments 2022-05-31 18:53:41 +02:00
Agusti Fernandez Pardo 9459b9048d feat: Admin API users manegement endpoints 2022-05-31 18:33:01 +02:00
Agusti Fernandez Pardo 9c3f85834f fix: remove console logs 2022-05-28 01:51:25 +02:00
Agusti Fernandez Pardo 0b66e964fe fix: some logggingeventtypeid 2022-05-27 21:51:40 +02:00
Agusti Fernandez Pardo eee5fd0090
Merge pull request #101 from calcom/fix-event-types-id
fix: event types id endpoints
2022-05-27 21:45:17 +02:00
Agusti Fernandez Pardo be4ca8835e fix: event types id endpoints 2022-05-27 21:44:45 +02:00
Agusti Fernandez Pardo 458f37f5e9
Merge branch 'main' into production 2022-05-27 21:19:43 +02:00
Agusti Fernandez Pardo 8627b28a8e fix: conflicts 2022-05-27 21:18:47 +02:00
Agusti Fernandez Pardo b52832f333 fix 2022-05-27 21:01:15 +02:00
Agusti Fernandez Pardo f40e799769 fix event types 2022-05-27 21:01:15 +02:00
Agusti Fernandez Pardo 5b65bd1b66 fix 2022-05-27 21:01:15 +02:00
Agusti Fernandez Pardo 824d01f358 fix: move log of userId 2022-05-27 21:01:15 +02:00
Agusti Fernandez Pardo a91dd428c0 fix 2022-05-27 21:01:01 +02:00
Agusti Fernandez Pardo 9f50972570 fix event-types 2022-05-27 20:49:50 +02:00
Agusti Fernandez Pardo d09fa56f63 fix 2022-05-27 20:47:02 +02:00
Agusti Fernandez Pardo 46e0b8f4f5 fix: moves event-types to find user including it's event-types 2022-05-27 20:46:53 +02:00
Syed Ali Shahbaz a945d5a61c Enabled webhook create call 2022-05-27 20:46:22 +02:00
Agusti Fernandez Pardo 8f9a970fb6 fix: moves event-types to find user including it's event-types 2022-05-27 20:43:10 +02:00
Syed Ali Shahbaz 0e95a1d3e8
Enabled webhook create call 2022-05-25 14:13:52 +05:30
Agusti Fernandez Pardo 6099bfb4ee fix: more logging 2022-05-23 23:23:53 +02:00
Agusti Fernandez Pardo 4629c5d5c7 fix: move log of userId 2022-05-23 23:18:41 +02:00
Agusti Fernandez Pardo beca5152e9 hotfix: debugging event-types in prod 2022-05-23 22:55:53 +02:00
Agusti Fernandez Pardo 93d9c4f6d0 fix: disable post 2022-05-20 22:15:25 +02:00
Agusti Fernandez Pardo 1585b2d8f9 fix: dont use schemareadpublic 2022-05-20 22:10:13 +02:00
Agusti Fernandez Pardo 1f8c895900 fix: hooks 2022-05-20 21:52:41 +02:00
Agusti Fernandez Pardo f1175a06f6 fix: hooks dont parse before read 2022-05-20 21:27:11 +02:00
Agusti Fernandez Pardo 8c8235c3c7 fix: dont parse hooks before read 2022-05-20 21:21:11 +02:00
Agusti Fernandez Pardo 418a4271d9 fix: adds console log to debug event-types 2022-05-20 03:46:01 +02:00
Agusti Fernandez Pardo 1717f14e83 fix: event type validations skip 2022-05-20 03:40:14 +02:00
Agusti Fernandez Pardo 9132bb51eb fix: disable create user post no role admin yet 2022-05-20 03:10:28 +02:00
Agusti Fernandez Pardo dc967b7d9e fix: hooks, event-types and booking references 2022-05-20 01:45:54 +02:00
Agusti Fernandez Pardo f2ce2f324b fix: build webhooks and event-types 2022-05-20 00:58:42 +02:00
Agusti Fernandez Pardo b237d71b2b fix: event type jsonschema or znull 2022-05-18 17:46:22 +02:00
Agusti Fernandez Pardo 0ca9748674 fix: dont throw err on bad query 2022-05-18 14:27:30 +02:00
Agusti Fernandez Pardo 075808ce40 fix event types 2022-05-18 13:55:05 +02:00
Agusti Fernandez Pardo 47ce92714b fix rewrite metadata 2022-05-17 22:49:12 +02:00
Agusti Fernandez Pardo f8554031ae fix: pass data directly 2022-05-17 22:41:54 +02:00
Agusti Fernandez Pardo f2ea38b440 fix: parse metadata 2022-05-17 22:37:43 +02:00
Agusti Fernandez Pardo fa157961be fix: dont parse on read event-type 2022-05-17 22:32:49 +02:00
Agusti Fernandez Pardo 5aa0b37443 fix build and pass lint 2022-05-17 19:33:18 +02:00
Agusti Fernandez Pardo 9afbb3d127 fix: event-type validations move to pick not omit and separate create/edit 2022-05-16 21:59:22 +02:00
Agusti Fernandez Pardo 72444792bc fix: disable admin only post endpoint for users as makes build fail until impersonate PR merged into web main/prod 2022-05-11 16:01:35 +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 982c32e92c
Merge pull request #67 from calcom/feat/add-webhook
added webhook endpoint
2022-05-10 21:10:18 +02:00
Agusti Fernandez Pardo 4c131fbcdd feat: adds auth/signup for ee customers 2022-05-10 19:52:59 +02:00
Syed Ali Shahbaz 17d8551442 added webhook endpoint 2022-05-10 13:26:38 +05:30
Agusti Fernandez Pardo 08eeb36d47 feat: add operationId for autogenerated sdk 2022-05-05 18:18:00 +02:00
Agusti Fernandez Pardo 1f2b59c18d feat: adds users post endpoint for admin only 2022-05-05 05:02:59 +02:00
Hariom Balhara 1703976a4f Fix docs request 2022-05-02 11:30:08 +05:30
Agusti Fernandez Pardo b572e4b0ff fix: move all req to deconstructed 2022-04-30 20:53:19 +02:00
Agusti Fernandez Pardo e27600b8c7 remove comment 2022-04-30 19:47:26 +02:00
Agusti Fernandez Pardo 005d0f8040 fix: channels removed 2022-04-30 19:46:04 +02:00
Agusti Fernandez Pardo 57aeb19c66 fix: pass enableCors true to swaggeruireact props doesn't seem to work 2022-04-29 19:45:33 +02:00
Agusti Fernandez Pardo c8d776aeb7 fix: remove extra comments 2022-04-29 17:36:25 +02:00
Agusti Fernandez Pardo 9bb0f82075 fix: improve comments, no anys 2022-04-29 17:29:57 +02:00
Agusti Fernandez Pardo d06a9488e4 fix: rename endpoints to be only 2 words max 2022-04-29 02:49:38 +02:00
Agusti Fernandez Pardo e13ea234b8 fix: improve docs in attendees availabilities and booking references 2022-04-29 02:30:59 +02:00
Agusti Fernandez Pardo d6c34a8e51 fix: remove empty lines 2022-04-29 01:54:21 +02:00
Agusti Fernandez Pardo bb28680413 fixes all openapi spect issues, removes json-schema auto-generated moving to manual examples 2022-04-29 01:38:40 +02:00
Agusti Fernandez Pardo e52af0bbef fix: post / patch attendees docs w examples 2022-04-27 19:25:36 +02:00
Agusti Fernandez Pardo 14e2964a6d fix: booking reference moved to pick-first create/edit separate validations 2022-04-26 22:48:15 +02:00
Agusti Fernandez Pardo 6997606a4c fix: moves to pick and separates availabilities 2022-04-26 22:23:33 +02:00
Agusti Fernandez Pardo 3759eccfca fix: attendees move to use pick, separate patch/post 2022-04-26 22:12:28 +02:00
Agusti Fernandez Pardo fa30b52988 remove v1 from specs 2022-04-26 21:56:59 +02:00
Agusti Fernandez Pardo ad04be9394 fix: availability patch 2022-04-25 06:13:27 +02:00
Agusti Fernandez Pardo 804fe27458 fix availabilites validations 2022-04-25 03:12:33 +02:00
Agusti Fernandez Pardo b38f78bbad fix: remove withValidSchedule from get/patch/delete shared endpoint 2022-04-24 23:57:17 +02:00
Agusti Fernandez Pardo 4c022d5d07 feat: adds full validations for users endpoint 2022-04-24 23:56:25 +02:00
Agusti Fernandez Pardo dad70d5a12 fix users, availabilites, attendees 2022-04-24 02:10:32 +02:00
Agusti Fernandez Pardo 096fd40044 fix: fixess attends:id endpoit 2022-04-23 05:51:26 +02:00
Agusti Fernandez Pardo 9078ee2f3f fix: build removing extra spaces 2022-04-23 02:40:39 +02:00
Agusti Fernandez Pardo 2009e6f0fb fix: remove comments 2022-04-23 02:22:43 +02:00
Agusti Fernandez Pardo 8d5605dc7b fix: move 401 to throw early in all endpoints 2022-04-23 02:17:06 +02:00
Agusti Fernandez Pardo 307eddcbd5 fix: invert 401 to throw early in attendees 2022-04-23 02:06:39 +02:00
zomars be3bcf2bf0 Refactoring and fixes 2022-04-21 19:42:53 -06:00
Agusti Fernandez Pardo ccd8637ae6 feat: all endpoints safe 2022-04-21 01:30:47 +02:00
Agusti Fernandez Pardo 103228cf84 feat: destination calendars ready 2022-04-21 01:15:58 +02:00
Agusti Fernandez Pardo d8bfff9525 feat: event type custom input endpoitns ready 2022-04-21 01:08:45 +02:00
Agusti Fernandez Pardo 18c1a2f026 remove unnecessary await on all getCalcomUserId() calls 2022-04-21 00:55:41 +02:00
Agusti Fernandez Pardo b0c0e9fb4c feat: memberships hardened mode 2022-04-21 00:55:22 +02:00
Agusti Fernandez Pardo 9c5624c748 fix: delete reminder mails endpoints for now as no userId, consult if needed 2022-04-21 00:50:34 +02:00
Agusti Fernandez Pardo cabe4ae9c6 feat: schedules hardend 2022-04-21 00:48:54 +02:00
Agusti Fernandez Pardo 80c2c4bdae feat: selected calendars hardened 2022-04-21 00:31:42 +02:00
Agusti Fernandez Pardo 6749840077 fix: improve comments on teams 2022-04-21 00:00:02 +02:00
Agusti Fernandez Pardo ec903b21c6 feat: teams return only userId related data, on POST create ownership membership for userId 2022-04-20 23:42:49 +02:00
Agusti Fernandez Pardo e138df47ba remove duplicated error check in event-types id 2022-04-20 20:25:26 +02:00
Agusti Fernandez Pardo 7734e86f6b improve readme. fix event-types 2022-04-19 13:44:24 +02:00
Agusti Fernandez Pardo 29666493d6 make event types return only userId data 2022-04-19 05:19:59 +02:00
Agusti Fernandez Pardo b4f3b8cc55 removes credentials endpoint 2022-04-18 23:40:28 +02:00
Agusti Fernandez Pardo 25a2a405da feat: adds apikeyAuth in swagger ui for all endpoints 2022-04-17 16:39:38 +02:00
Agusti Fernandez Pardo 5013ea2ef5 feat: adds apiKey auth as query params in docs and users endpoint 2022-04-17 16:18:42 +02:00
Agusti Fernandez Pardo 04052c53b4 cleanup no cors middleware 2022-04-15 18:12:25 +02:00
Agusti Fernandez Pardo a543d1fde3 disable middleware for cors 2022-04-15 17:29:03 +02:00
Agusti Fernandez Pardo a4851bd0b6 fix add new withCorsMiddleware 2022-04-15 17:04:17 +02:00
Agusti Fernandez Pardo babfc6d7cf adds cors support to docs endpoint 2022-04-15 16:10:57 +02:00
Agusti Fernandez Pardo 1405f7a861 adds app-store to be transpiled to fix build 2022-04-13 18:53:44 +02:00
Agusti Fernandez Pardo d987d52dbb feat: credentials, teams 2022-04-13 02:12:16 +02:00
Agusti Fernandez Pardo 9447bd859d feat hardened attendees, availabilites, booking-references, and bookings 2022-04-11 16:47:01 +02:00
Agusti Fernandez Pardo 9cefd119ee feat: make booking-references only return user booking related resources 2022-04-11 15:42:50 +02:00
Agusti Fernandez Pardo fca49a23c5 feat: make availabilities safe and return only userId related resources 2022-04-11 15:26:06 +02:00