zomars
055699f612
Various import and type fixes
2022-11-25 06:58:21 -07:00
zomars
94ecb1908a
Type fixes
2022-11-25 06:03:40 -07:00
alannnc
c016a4343d
added more endpoints and validations for publish-pay teams ( #209 )
...
## What does the PR do?
- Team billing via API
Just like the web project, we validate that team has stripe metadata
before converting requestedSlug to slug.
Co-authored-by: zomars <zomars@me.com>
2022-11-22 13:24:25 -07:00
Alex van Andel
e5827b035d
Fix type error with null being an invalid value ( #213 )
2022-11-18 17:08:49 +05:30
zomars
d93fd26a1e
Removed unused methods middleware
2022-10-21 13:30:09 -06:00
zomars
4ba0395efa
Permission fixes
2022-10-11 14:09:22 -06:00
zomars
88332fb2ab
Refactors teams
2022-10-10 20:25:47 -06:00
Agusti Fernandez Pardo
67fe26ec69
fix: lint issue import order
2022-07-12 20:09:54 +02:00
Agusti Fernandez Pardo
f985bbd1ff
fix: move patch to no then/catch
2022-07-12 20:01:25 +02:00
Agusti Fernandez Pardo
3f6e7904cb
fix: no http_method middleware needed as already handled by defaultHandler
2022-07-08 21:49:14 +02:00
Agusti Fernandez Pardo
bd485b7b77
Update pages/api/teams/_get.ts
...
fix prisma import
Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:33:00 +02:00
Agusti Fernandez Pardo
be2647790c
feat: refactor teams and add team availability
2022-06-30 00:01:14 +02:00
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
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
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
fa30b52988
remove v1 from specs
2022-04-26 21:56:59 +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
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
25a2a405da
feat: adds apikeyAuth in swagger ui for all endpoints
2022-04-17 16:39:38 +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
af72b1f5b5
feat: unitfy new/index of teams and selected calendars
2022-04-09 01:29:26 +02:00
Agusti Fernandez Pardo
de8d7f64c3
mvoe to less files
2022-04-04 02:02:11 +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
61819772bc
fix all swagger docs, dont build templates
2022-04-03 17:47:18 +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
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
1241ae6cfc
feat: move findAll to return arrays
2022-03-28 16:05:00 +02:00
Agusti Fernandez Pardo
396c5b8d8c
chore: refactor all delete endpoints to use if/else instead of .catch() and .error()
2022-03-27 01:08:00 +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
62a917c7a8
renames team -> teams adds tests for users and teams
2022-03-26 02:16:46 +01:00