cal.pub0.org/lib
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
..
helpers Adds meaningful response for the API caller 2022-10-07 13:12:57 +05:30
utils fix: removes daily-event-reference endpoints and types 2022-09-06 19:04:16 +02:00
validations Admin privileges for /availabilities endpoint (#169) 2022-10-07 15:26:02 +05:30
constants.ts Update lib/constants.ts 2022-06-23 16:40:01 -06:00
types.ts fix: removes daily-event-reference endpoints and types 2022-09-06 19:04:16 +02:00