Commit Graph

25 Commits

Author SHA1 Message Date
Nicola Krumschmidt
d64ca14348 Explicitly set catch parameters to any type (#7654)
This fixes not being able to build the repo due to type issues
introduced by the Typescript 4.4 option "useUnknownInCatchVariables",
which is enabled by default in strict mode.
2021-08-27 10:33:30 -04:00
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
rijkvanzanten
1e3b64bf99 Fix upsert of collections meta 2021-04-22 10:28:27 -04:00
Rijk van Zanten
b40c62d257 Add support for SEARCH method (#5183)
* Add search method support for advanced get

* Add docs for SEARCH
2021-04-21 13:35:16 -04:00
Rijk van Zanten
3b05372713 Finalize services API (#5170)
* Start the xOne/xMany work

* Update update/upsert

* Finish updating itemsservice

* Add comments, add nested revisions on update

* Use new internal api

* Update collectionService to one/many structure

* Move files to one/many structure

* Move permissions to one/many structure

* Move relations service to one/many structure

* Move roles to one/many structure

* Move users service over

* Move webhooks to updated structure

* Move deprecated methods to the bottom

* Replace deprecated uses

* Use new methods in controllers, add batch update/delete by query

* Use updated methods in API

* Fix email being required

* Remove unnecessary DB call

* Fix batch update/delete validation
2021-04-20 18:06:27 -04:00
Rijk van Zanten
dd551f3571 Add non-items system Resolvers (#4863)
* Add auth resolvers

* Add password request/reset

* Add up until file import

* Make revisions read only

* Add server resolvers

* Add utils

* Add schema resolvers for schema manipulation
2021-04-06 18:04:35 -04:00
Rijk van Zanten
6661633031 Fetch all meta rows when retrieving collections (#4142) 2021-02-17 18:55:29 -05:00
rijkvanzanten
76f1a387c7 Throw error on reading forbidden collection
Ref #4043
2021-02-15 13:50:44 -05:00
rijkvanzanten
a0fb2abbe9 Remove batch delete for fields/collections
It's too destructive
2021-02-04 11:19:32 -05:00
rijkvanzanten
178e91106b Remove unused imports 2021-01-12 16:15:44 -05:00
rijkvanzanten
6b029b416b iRemove imported types that aren't needed 2021-01-12 16:11:08 -05:00
WoLfulus
c5f3802da3 Replace express-async-handler for a local function. 2020-12-22 17:11:08 -03:00
rijkvanzanten
8cbdfb409b Use prefetched schema info 2020-11-09 17:13:48 -05:00
rijkvanzanten
a432640ecb Add batch delete w/ keys in body
Fixes #819
2020-11-05 14:47:57 -05:00
rijkvanzanten
eeedc01c53 Add /utils/revert, use in app
Fixes #485
2020-10-02 16:20:06 -04:00
rijkvanzanten
48fca55651 Restructure exports for services 2020-09-22 13:16:14 -04:00
rijkvanzanten
bb7b76aef9 Return 200 OK on create/update with no read permissions
Fixes #33
2020-09-21 16:29:07 -04:00
rijkvanzanten
b19ffd960b Add response middleware and cache 2020-09-08 18:28:23 -04:00
rijkvanzanten
266c07fde7 Temporarily disable caching 2020-09-08 17:22:34 -04:00
kukulaka
8a21d6fd01 Making sure delete is present 2020-08-31 17:40:16 +01:00
kukulaka
9d6f80149c changes for caching
Most changes should be here, just making sure flush cache is in for each post / delete
2020-08-31 17:16:45 +01:00
Tanya Byrne
226280d6ba update caching 2020-08-25 13:49:08 +01:00
Tanya Byrne
efcb711d92 changing the cache again 2020-08-25 13:23:54 +01:00
Tanya Byrne
fb10e32c9f Some examples of how to use 2020-08-24 14:04:09 +01:00
rijkvanzanten
c2b6b2a090 Rename routes to controllers 2020-08-15 16:56:45 -06:00