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
zomars
055699f612
Various import and type fixes
2022-11-25 06:58:21 -07:00
Syed Ali Shahbaz
4080e5bc5e
Update availabilities _post swagger def ( #210 )
...
- Adds more specs to the swagger definition in /availabilities for doc
experimentation
2022-11-18 12:18:07 -07:00
zomars
d93fd26a1e
Removed unused methods middleware
2022-10-21 13:30:09 -06:00
Alex van Andel
dee0f6a415
Remove GET /availabilities ( #188 )
...
Follows-up on earlier discussions about the relationships of
/availabilities and /schedules.
`GET /schedules/:id` returns a schedule with associated availabilities
in the `availabilities` property. It gives more context and less
consumer work to perform GET actions using this endpoint. Other
endpoints of this collection do make sense.
Proposing also to rename the /availabilities collection to
/availability; given after this it always involves one and only one
/availability record in CRUD.
2022-10-21 00:58:20 +01: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
Omar López
18e96e2a47
Refactors availabilities endpoints ( #177 )
...
refs #175
2022-10-10 09:42:15 -06:00
Joe Au-Yeung
d68ce5e72f
Admin privileges for /availabilities endpoint ( #169 )
...
* List other user's availabilities
* /availabilityId methods for other users
* Add return statements
* Accept userId single value or array
* Add zod schema checks
* Filter for schedules only with an availability
* Adds safeParsing of JSON before safeParsing of zod
* Removed console log
* Adds safe JSON parsing before .safeParse
* Allow API call without necessarily passing userId
Allow `/availabilities` call by a regular user without having to pass their userId to make it work
Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
2022-10-07 15:26:02 +05:30
Agusti Fernandez Pardo
5b28e9ec1c
fix: main merging issues
2022-06-18 02:16:15 +02:00
Agusti Fernandez Pardo
6e68671c2a
fix: merge w main
2022-06-18 01:52:37 +02:00
Agusti Fernandez Pardo
e407a16766
feat: dynamic prisma
2022-06-06 18:17:10 +02:00
Agusti Fernandez Pardo
08eeb36d47
feat: add operationId for autogenerated sdk
2022-05-05 18:18:00 +02:00
Agusti Fernandez Pardo
b572e4b0ff
fix: move all req to deconstructed
2022-04-30 20:53:19 +02:00
Agusti Fernandez Pardo
9bb0f82075
fix: improve comments, no anys
2022-04-29 17:29:57 +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
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
dad70d5a12
fix users, availabilites, attendees
2022-04-24 02:10:32 +02:00
Agusti Fernandez Pardo
8d5605dc7b
fix: move 401 to throw early in all endpoints
2022-04-23 02:17:06 +02:00
zomars
be3bcf2bf0
Refactoring and fixes
2022-04-21 19:42:53 -06:00
Agusti Fernandez Pardo
18c1a2f026
remove unnecessary await on all getCalcomUserId() calls
2022-04-21 00:55:41 +02:00
Agusti Fernandez Pardo
7734e86f6b
improve readme. fix event-types
2022-04-19 13:44:24 +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
9447bd859d
feat hardened attendees, availabilites, booking-references, and bookings
2022-04-11 16:47:01 +02:00
Agusti Fernandez Pardo
fca49a23c5
feat: make availabilities safe and return only userId related resources
2022-04-11 15:26:06 +02:00
Agusti Fernandez Pardo
0bda988676
feat: all resources endpoints for get all and new unified
2022-04-11 15:10: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
d95325c06c
payments safe, unify endpoints for remindermails schedules
2022-04-10 02:10:34 +02:00
Agusti Fernandez Pardo
5b3f9ee95c
fix availabilities spelling
2022-04-04 21:53:03 +02:00
Agusti Fernandez Pardo
de8d7f64c3
mvoe to less files
2022-04-04 02:02:11 +02:00
Agusti Fernandez Pardo
61819772bc
fix all swagger docs, dont build templates
2022-04-03 17:47:18 +02:00
Agusti Fernandez Pardo
55f93cded6
feat: update attendees / availabilites / users endpoints and document parameters
2022-04-01 22:05:10 +02:00
Agusti Fernandez Pardo
1de7bc4146
prettier
2022-03-30 14:17:55 +02:00
Agusti Fernandez Pardo
1241ae6cfc
feat: move findAll to return arrays
2022-03-28 16:05:00 +02:00
Agusti Fernandez Pardo
0e3131d866
feat: improve validations
2022-03-27 15:15:46 +02: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