Commit Graph

223 Commits (1de91a5124012d62d23eaf30d95c801ee6d7117d)

Author SHA1 Message Date
Agusti Fernandez Pardo 2e8f42c5d7
Merge pull request #84 from calcom/fix-build
fix: build issues, extend event-type in types, use @calcom/types
2022-05-19 22:08:34 +02:00
Agusti Fernandez Pardo d103776846 fix: add back types until merged into main 2022-05-19 22:05:26 +02:00
Agusti Fernandez Pardo fdc46fac7d fix: build issues, extend event-type in types, use @calcom/types 2022-05-19 22:00:22 +02:00
Syed Ali Shahbaz 95a1e32454
Fixes subscriber URL z type 2022-05-19 16:40:27 +05:30
Syed Ali Shahbaz bc844f29ba
Updates Webhook edit params 2022-05-19 16:38:44 +05:30
Syed Ali Shahbaz 74efa1f86e
Updates Webhook pick 2022-05-19 16:35:25 +05:30
Agusti Fernandez Pardo 26888a3630 fix typeof schemaEventTypeReadPublic 2022-05-18 22:03:36 +02:00
Agusti Fernandez Pardo df16126a49 fix: object or null instead of json for extends event-types 2022-05-18 21:50:34 +02:00
Agusti Fernandez Pardo 27053e7c80 fix: dont replace cal_ 2022-05-18 21:48:13 +02:00
Agusti Fernandez Pardo 5bb2c54648 fix: add fallback for keys generated with cal_ instead of cal_live_ prefix 2022-05-18 20:29:35 +02:00
Agusti Fernandez Pardo 37069e2d7b fix: omit metadata/locations and rewrite as json 2022-05-18 20:22:43 +02:00
Agusti Fernandez Pardo e7a7c89071 fix add locations metadata and recurring events to eventtype response 2022-05-18 19:51:40 +02:00
Agusti Fernandez Pardo 7b90ccb3bf fix: add locations to event type in response types 2022-05-18 19:49:42 +02:00
Agusti Fernandez Pardo 5c97283aa1 fix: dont add locations/metadata on create event type 2022-05-18 19:39:31 +02:00
Agusti Fernandez Pardo 35ebf53f19 fix: json validation 2022-05-18 19:21:48 +02:00
Agusti Fernandez Pardo 957d6d2375 fix: locations or z null 2022-05-18 19:10:16 +02:00
Agusti Fernandez Pardo b7f9791439 fix: add locations any too 2022-05-18 19:00:27 +02:00
Agusti Fernandez Pardo b95c064828 fix: metadata zany 2022-05-18 18:58:37 +02:00
Agusti Fernandez Pardo 93b2e96144 fix: dont overdo validation on read event-type 2022-05-18 18:51:19 +02:00
Agusti Fernandez Pardo b237d71b2b fix: event type jsonschema or znull 2022-05-18 17:46:22 +02:00
Agusti Fernandez Pardo f29124866c fix: recurring and metadata as jsonSchema on read too 2022-05-18 15:23:18 +02:00
Agusti Fernandez Pardo d5ecb383b4 fix: no metadata 2022-05-18 15:16:16 +02:00
Agusti Fernandez Pardo c5dcf42807 fix: any 2022-05-18 15:12:29 +02:00
Agusti Fernandez Pardo e25d0d79a0 fix: merge metadata jsonSchema nullable nullish 2022-05-18 15:04:44 +02:00
Agusti Fernandez Pardo db09aeb50a fix: dont merge on read 2022-05-18 15:00:09 +02:00
Agusti Fernandez Pardo 8add68c668 fix: no metadata-true 2022-05-18 14:55:05 +02:00
Agusti Fernandez Pardo 91f9405fa0 fix: metadata 2022-05-18 14:48:11 +02:00
Agusti Fernandez Pardo 8481a96829 fix: null or 2022-05-18 14:41:55 +02:00
Agusti Fernandez Pardo e183df1a1b fix: add back metadata to pick 2022-05-18 14:13:29 +02:00
Agusti Fernandez Pardo f04f5d8ca8 fix: add partial() 2022-05-18 14:08:52 +02:00
Agusti Fernandez Pardo a2c7eed853 fix: add back metadata true 2022-05-18 14:03:38 +02:00
Agusti Fernandez Pardo 075808ce40 fix event types 2022-05-18 13:55:05 +02:00
Agusti Fernandez Pardo fa157961be fix: dont parse on read event-type 2022-05-17 22:32:49 +02:00
Agusti Fernandez Pardo a39d396c8e fix: add back commented out base params 2022-05-17 22:25:38 +02:00
Agusti Fernandez Pardo b49df1a7aa fix: dont read metadata for now 2022-05-17 22:21:00 +02:00
Agusti Fernandez Pardo 4d6dbd39cd fix: dont merge base params 2022-05-17 22:17:05 +02:00
Agusti Fernandez Pardo 5072ac7d52 fix: any or null 2022-05-17 22:13:33 +02:00
Agusti Fernandez Pardo 8a62c3948d fix: metadata null or json schema 2022-05-17 22:09:44 +02:00
Agusti Fernandez Pardo f3271f7724 fix: metadata nullish 2022-05-17 22:03:26 +02:00
Agusti Fernandez Pardo a70f80ff6d Fix: removes metadata from pick on readPublic for event-type 2022-05-17 21:57:47 +02:00
Agusti Fernandez Pardo ad8bfd544e fix: removes metadata from pick so they dont clash 2022-05-17 21:52:55 +02:00
Agusti Fernandez Pardo f55aaf3eaa fix: event type make locations metadata and recurringEvent nullable and optional 2022-05-17 21:51:26 +02:00
Agusti Fernandez Pardo c5fa861d41 Fix: metadata nullish 2022-05-17 21:45:16 +02:00
Agusti Fernandez Pardo 29166f1585 fix: removes unused import in event type validation 2022-05-17 19:43:19 +02:00
Agusti Fernandez Pardo 5aa0b37443 fix build and pass lint 2022-05-17 19:33:18 +02:00
Agusti Fernandez Pardo 3366627835 fix: event-type params 2022-05-17 14:40:19 +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 7deb5f8e1f fix: webhooks upgraded to new version, need to update templates 2022-05-11 15:57:00 +02:00
Agusti Fernandez Pardo 08eeb36d47 feat: add operationId for autogenerated sdk 2022-05-05 18:18:00 +02:00
Agusti Fernandez Pardo a2d16800aa Fixes: with hariom help for running api in prod for swagger even in dev 2022-04-30 23:07:21 +02:00
Agusti Fernandez Pardo b572e4b0ff fix: move all req to deconstructed 2022-04-30 20:53:19 +02:00
Agusti Fernandez Pardo 217336d13d fixes build error removing optional from name in create params validation 2022-04-27 20:24:30 +02:00
Agusti Fernandez Pardo 238b03791e Fix: add strict and optional to have errors on extraneus params 2022-04-27 19:45:59 +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 ad04be9394 fix: availability patch 2022-04-25 06:13:27 +02:00
Agusti Fernandez Pardo b6bce18b29 fix: build availabilities validation start/endTime accept only dates no numbers or strings too 2022-04-25 06:04:42 +02:00
Agusti Fernandez Pardo 804fe27458 fix availabilites validations 2022-04-25 03:12:33 +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 8c19303baf fix: verify expire 2022-04-23 05:37:36 +02:00
Agusti Fernandez Pardo 11bf548241 fix: apiKeyExpire 2022-04-23 03:46:53 +02:00
Agusti Fernandez Pardo 4e8fae7391 rename apiKey 2022-04-23 02:26:35 +02:00
Agusti Fernandez Pardo 9cb2f9bc70 fix: clearer note about dropping metadata and locations in event-type 2022-04-23 02:06:16 +02:00
Agusti Fernandez Pardo 368e6eb0fa fix: rename dateInPast -> dateNotInPast 2022-04-23 02:05:56 +02:00
zomars 20cef3b4dd Uses inferred types 2022-04-22 08:05:31 -06:00
zomars be3bcf2bf0 Refactoring and fixes 2022-04-21 19:42:53 -06: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 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 8965601e6f fix verifyapikey, add daabase_url to env.example 2022-04-18 23:24:57 +02:00
Agusti Fernandez Pardo 04052c53b4 cleanup no cors middleware 2022-04-15 18:12:25 +02:00
Agusti Fernandez Pardo a4851bd0b6 fix add new withCorsMiddleware 2022-04-15 17:04:17 +02:00
Agusti Fernandez Pardo ca8ca913a8 add else if to api key request 2022-04-15 16:55:55 +02:00
Agusti Fernandez Pardo e251fccb61 make verifyApiKey not apply in docs 2022-04-15 16:47:08 +02:00
Agusti Fernandez Pardo 09d8b48ccc make verifyApiKey not apply in docs 2022-04-15 16:46:50 +02:00
Agusti Fernandez Pardo babfc6d7cf adds cors support to docs endpoint 2022-04-15 16:10:57 +02:00
Agusti Fernandez Pardo 187b97afa1 fix: update prefix to cal_ 2022-04-14 21:46:26 +02:00
Agusti Fernandez Pardo d987d52dbb feat: credentials, teams 2022-04-13 02:12:16 +02:00
Agusti Fernandez Pardo 963c893727 feat: unify new/index of attendees, availabilities, booking references, bookings, selected calendars, update response types 2022-04-11 12:03:15 +02:00
Agusti Fernandez Pardo 9edc1dbd29 some fixes on helpers/middlewares 2022-04-08 18:08:26 +02:00
Agusti Fernandez Pardo fc3677631f attendes of users bookings only 2022-04-08 03:16:53 +02:00
Agusti Fernandez Pardo 3d917e4dd4 make verifyApiKey check for hashed, need @calcom/ee in transpile modules next.config 2022-04-08 01:59:04 +02:00
Agusti Fernandez Pardo 325b19ba3f Add userId check in users getAll and id endpoints 2022-04-07 21:55:43 +02:00
Agusti Fernandez Pardo fc2978a61b feat: initial work unifying new endpoint and generating api key 2022-04-07 03:29:53 +02:00
Agusti Fernandez Pardo 15cdbb134f remove console statement 2022-04-04 22:29:45 +02:00
Agusti Fernandez Pardo 5b3f9ee95c fix availabilities spelling 2022-04-04 21:53:03 +02:00
Agusti Fernandez Pardo 5233dad5f9 re-unify into one route all id ops for teams and users 2022-04-04 00:49:05 +02:00
Agusti Fernandez Pardo e8b9ec7f8a fix: remove comment 2022-04-02 03:47:41 +02:00
Agusti Fernandez Pardo d144c0f9e1 feat: upgrade all validations, rename to use snake_case 2022-04-02 03:46:24 +02:00
Agusti Fernandez Pardo dd50624241 fix: remove unnecessary comment 2022-04-02 02:47:06 +02:00
Agusti Fernandez Pardo 1e18e9b945 feat: adds reminder-mail endpoints 2022-04-02 02:45:28 +02:00
Agusti Fernandez Pardo fc795f963b fix: hack around create/connect issues for now 2022-04-02 02:09:04 +02:00
Agusti Fernandez Pardo 9f4a62e2ef feat: yarn build no errors 2022-04-02 01:55:41 +02:00
Agusti Fernandez Pardo 1c19032884 chore: bring up to date booking references, bookings, and credentials 2022-04-01 23:03:03 +02:00
Agusti Fernandez Pardo 2b4a745f12 feat: improve validations of users/attendee/availabilty to support required fields 2022-04-01 22:04:42 +02:00
Agusti Fernandez Pardo e284707250 initail work on paid booking, improve validations 2022-04-01 17:53:52 +02:00
Agusti Fernandez Pardo 12de89294d swagger docs add params, memberships handle compoundId 2022-03-31 22:14:37 +02:00
Agusti Fernandez Pardo 9aa4b0e30d feat: inherit all validations from auto-generated zod 2022-03-30 17:37:51 +02:00
Agusti Fernandez Pardo 367621ea51 feat: users, teams, selectedCalendars w new code/docs 2022-03-30 16:56:24 +02:00
Agusti Fernandez Pardo 1de7bc4146 prettier 2022-03-30 14:17:55 +02:00
Agusti Fernandez Pardo 20a93a13c9 feat: update users/teams/apiKeys to use middleware 2022-03-29 03:59:57 +02:00
Agusti Fernandez Pardo 3011e0ecf7 chore: no default export 2022-03-29 03:23:22 +02:00
Agusti Fernandez Pardo ec8fe36930 feat: successfully protected all endpoints with next-api-middleware for verifyApiKey 2022-03-29 02:25:24 +02:00
Agusti Fernandez Pardo 8165977ec3 Adds basic CRUD endpoints for bookingReferences, Crendentials, DailyEventReferences, DestinationCalendars, EventTypeCustomInputs, Memberships, Schedules, and SelectedCalendars 2022-03-29 00:27:14 +02:00
Agusti Fernandez Pardo 99d328c35d chore: refactor-out apiKey check into middleware 2022-03-28 17:46:12 +02:00
Agusti Fernandez Pardo 19934d8c3a Adds basic api-key auth in users, need to extract out 2022-03-28 02:51:40 +02:00
Agusti Fernandez Pardo 0e3131d866 feat: improve validations 2022-03-27 15:15:46 +02:00
Agusti Fernandez Pardo c561b16f85 chore: rename empty validations, enable relations on user zod object 2022-03-27 01:19:49 +01:00
Agusti Fernandez Pardo 936572e7e1 feat: adds availabilitesi and attendees endpoints, some cleanup less try/catch more if/else 2022-03-27 00:58:22 +01:00
Agusti Fernandez Pardo ac307f7161 feat: adds bookings and more tests 2022-03-26 22:29:30 +01:00
Agusti Fernandez Pardo 7998e8fc2c feat: 50% almost code coverage 2022-03-26 05:28:53 +01:00
Agusti Fernandez Pardo 8b8629f37a feat: Adds teams endpoints and zod validations 2022-03-26 01:53:56 +01:00
Agusti Fernandez Pardo 12a7129e5a feat: adds tests for api keys endpoints 2022-03-26 01:40:43 +01:00
Agusti Fernandez Pardo 9e8be659c5 feat: initial tests for api-keys endpoint 2022-03-26 00:42:12 +01:00
Agusti Fernandez Pardo 084c91f6c1 feat: improve api key endpoints, add users endpoint 2022-03-25 23:26:22 +01:00
Agusti Fernandez Pardo d9c34f67e6 feat: adds api keys endpoints, new QueryIdAsString as apiKey has a UUID string-like ID unlike the numbers of event-type or others 2022-03-25 20:17:37 +01:00
Agusti Fernandez Pardo c2234593db feat: adds module transpiling so api can require @calcom/prisma and not @prisma/client directly 2022-03-25 19:37:51 +01:00
Agusti Fernandez Pardo a2817a2fee Feat: event-types and tests 2022-03-25 06:54:57 +01:00
Agusti Fernandez Pardo f4d889e87b add @lib and @api paths for cleaner imports 2022-03-25 00:43:35 +01:00
Agusti Fernandez Pardo 737a8897ba extracting out schemaQuery validation to lib, extracting out delete/edit to it's own files for clarity 2022-03-25 00:04:07 +01:00