mcarlson
c0446cb379
Add support for mailgun transport ( #5613 )
...
* Add support for mailgun transport
* eslint fix
* Add nodemailer-mailgun-transport as optional dependency
* Add docs, rename APIKEY -> API_KEY
Co-authored-by: Max Carlson <>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-14 12:20:18 -04:00
rijkvanzanten
55efb688ed
Fix docs example
2021-05-14 11:56:53 -04:00
Rijk van Zanten
9ac9a8d44b
Add JSON/CSV Import ( #5660 )
...
* Add async/destroy packages
* Target node 12+
* Return payload data in json export
* Import JSON from Stream
* Add CSV import support
* Add CSV Import
* Add docs
* Add missing types
2021-05-14 11:03:12 -04:00
WoLfulus
d8caf221ed
CLI 2.0 ( #5376 )
...
* merge components
merge args, parser, docs, formatter, help and handlers
* change directus command and add auto debug
* output format fixes
* adds back some reformatted and documented commands
* better help output format
* refactor all output flow
* export cli types
* more formatting fixes and param rework
* fix table spacing
* add yaml formatting and fix string colors
* finished formatting docs
* remove log
* remove package-lock
* update dependency versions
* fix command description
* workaround typescript loading
* module loading fixes
added command error
rename human to table
fix disconnect usage
* add typescript loader
redirect execution to local package if installed locally
added command alias `directus-ctl`
* fix module load directories
* reimplement stdin pipe to work on linux
* fix sdk server info type
* info command
* Fix stdin bug
Disable community extensions to discourage use for now
Added template to config files
Added password stdin to connect to instances
Fixed typescript command load
* Added command suggestions and QOL features
* Linter fixes
* Add command hints
* Separate positional options
* Add back delete many, fix delete one location
* Change score logic
* Add whoami util command
* Add short online docs
* Fix typo
* Fix typo
* Update commands
* Param consistency fix and docs update
* Create commands
* Update package.json version
* Update package-lock
* Fixed several linting problems
* Update dependencies
* Update lock
* Remove locked dependencies
* Stop conflicts when in home directory
* Package lock update and npm audit fix
* Fix formatting errors
* Comment out extending cli section until we figure out cli ext
* Update readme
* Tweak dev/build/prebuild script naming
* Use up to date deps
* Fix dependency version in lock (fix build)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-12 20:38:30 +00:00
rijkvanzanten
d912f070f3
Clarify /graphql vs /graphql/system
2021-05-05 15:05:00 -04:00
rijkvanzanten
010eabad27
Format remaining md files
2021-05-04 18:52:08 -04:00
João
b20a394f51
Update SDK docs and code to match API ( #5437 )
2021-05-03 14:46:05 -04:00
Pyll Gomez
09b19b9191
Session store knex ( #5432 )
...
* Rotate JPG image on upload #4206
* fixes #3949 width/height generated for gif and tif
* API hooks for event added for auth.login #4079
* updated doc for api hooks for new auth.login event
* Style tweaks
* Update docs
* Tweak docs some more
* Spelling error
* Allow non-required flags and pass to hook
* SDK - Persistent login refresh fixes #4113
* Fixed #4145 SDK, Token Expired error
* Spell check
* Docs Spell check
* Docs Spell check
* Docs Spell check
* update docs for sdk-js
* To delete all expired session from db on login
* corrected the condition for the delete
* changed the from Date.now to new date .
* Move it inline
* Added Knex option for Session store
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-03 11:46:42 -04:00
Pascal Jufer
b312ab84f5
Small fixes and addition in docs ( #5417 )
2021-05-02 08:42:01 -04:00
Rijk van Zanten
a3898fa321
Add SESSION_STORE options ( #5403 )
...
* Allow configuring the session storage driver
Fixes #3814
* Document SESSION_STORE env var
* Add missing dependency
* Docs tweak
2021-04-30 18:18:39 -04:00
Pascal Jufer
f19cf1070c
Fix some points in SDK documentation ( #5273 )
...
* Change confusing statement about storage adapter
Mainly used to store auth token / expiration
Refresh tokens only in JSON mode
* Remove 'time' option in 1st example since described in 2nd example
* Add infos about options.refresh on Auth
2021-04-27 09:57:49 -04:00
João
1973969265
Update query.md
2021-04-27 10:51:46 -03:00
João
63c45a6ae4
Fix SDK docs example
2021-04-26 11:37:25 -03:00
rijkvanzanten
5d338083da
Fix tags in docs
...
Fixes #5140
2021-04-23 17:54:48 -04:00
Rijk van Zanten
f1e2338142
Add auth password policy / login attempts support ( #5225 )
...
* Check auth password policy on user modifications
* Show validation errors in drawer-batch
* Allow custom password policy, add placeholder
* Add UserSuspended exception
* Add user suspended error translation
* Move rate limiter creation into root helper
* Add login attempts support to authentication service
* Don't authenticate into settings service when checking password policy
2021-04-23 17:42:46 -04:00
rijkvanzanten
3354066983
Add union type example to docs
...
Closes #5161
Squashed commit of the following:
commit 8ef6770185cf4d3bcdcda0c41e98a6f3ef0c4e1f
Merge: 775ceaccc 2ca5fdb86
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Fri Apr 23 10:42:54 2021 -0400
Merge branch 'main' into patch-1
commit 775ceaccc4
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Fri Apr 23 10:41:59 2021 -0400
Cleanup union type docs
commit 1000988c32
Author: neo7-studio-web <18073828+neo7-studio-web@users.noreply.github.com >
Date: Tue Apr 20 15:01:02 2021 +0200
Add a M2M GraphQL query example
2021-04-23 10:47:17 -04:00
João
af13cfe18e
Change token and auth handling behavior. ( #5203 )
...
* change tokens and authentication handling/refresh
* update sdk docs
2021-04-22 17:54:30 -04:00
Thibault SOUQUET
dae9de554a
Add missing closing / ( #5186 )
2021-04-21 16:28:24 -04:00
rijkvanzanten
22535bf566
Resolve TKs/@TODOs in docs
...
Fixes #3287
2021-04-21 15:57:26 -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
1fb4db1fda
Add _regex validation operator ( #5089 )
...
Closes #2917
2021-04-15 17:25:51 -04:00
Salvador Gómez
e2558eb6ed
Fix a typo ( #5034 )
...
Changed the word body to source in line 88 to match the paragraph.
2021-04-13 13:30:47 -04:00
Rijk van Zanten
c2e4100e55
Add root_redirect option ( #4937 )
...
* feat: don't expose admin url (optional)
* Rename REDIRECT_TO_ADMIN -> ROOT_REDIRECT, add docs
Co-authored-by: Michael Mullins <mullinsmikey@users.noreply.github.com >
2021-04-09 11:34:50 -04:00
Ben Haynes
753cf28110
Docs assets ToC
2021-04-08 17:08:45 -04:00
Ben Haynes
4922d5008d
Docs query ToC
2021-04-08 17:08:33 -04:00
Ben Haynes
feeb1e3a5b
Missing Example headings
2021-04-08 17:08:17 -04:00
rijkvanzanten
2e5b053d99
Fix app links and old rest references
2021-04-08 15:36:11 -04:00
Rijk van Zanten
18b2fa99c6
API Reference 2.0 ( #4916 )
...
* Rework API reference to include GQL
* Almost done
* Finish API reference update
* Remove items nesting on gql in query params
* Update template examples to match
* Add link to files on assets overview
2021-04-08 15:34:31 -04:00
Dustin
632895eb68
Storage: S3 ACL & Content Type ( #4694 )
...
* add S3 env config for ACL. pass along file type for S3 upload
* add STORAGE_<LOCATION>_ACL to S3 docs
2021-04-07 12:15:47 -04:00
WoLfulus
a5564ce4d1
update sdk docs ( #4881 )
2021-04-07 10:11:58 -04:00
Nitwel
de1b6367f9
Clean up app reference ( #4856 )
...
* clean up app reference
* fix table
2021-04-06 10:08:47 -04:00
WoLfulus
3db8b9a1b3
Updated SDK docs and typing fixes ( #4787 )
...
* typing fixes
* docs update
* ignore compiled test dir
* use top level await syntax
2021-03-31 14:43:29 -04:00
WoLfulus
3c1204b928
SDK 2.0 ( #4510 )
...
* add new sdk
* update version
* fixes and sdk documentation
* typing updates, documentation
* added missing endpoints
* targeting minified version for unpkg
* removed unused types file
* fixed non minified versions
* fix sdk exports
* fix the fix
* Remove old sdk
* Remove old sdk docs
* Install types for Jest, add npm test
* Rely on npm exclusively
* Remove examples folder
* Move typescript down
* Update sdk.md
* added auto refresh and requested changes
added more http test calls
fixed typing issue in customized types
* remove unused endpoint
* updated docs
* added singletons, fixed typing issues, added password handlers
* rename graphql function and fixed system endpoint
* Remove unused imports, fix build
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
Co-authored-by: Ben Haynes <ben@rngr.org >
2021-03-30 18:23:23 -04:00
Rijk van Zanten
f90c31b798
GraphQL 2.0 ( #4625 )
...
* Start on GraphQL "2.0", add methodnotallowed exceptoin
* Fix relative file pointer in peer dep
* [WIP] Add pre-filtered schema to SchemaOverview
* Use root schema as is, add reduce-schema util
* Use reduceSchema in the wild
* Base schema on local reduced schema
* Remove todo
* Use graphql-compose to build out schema
* Start restructuring resolvers
* Add create mutation
* Return boolean true for empty create mutation selections
* Add update mutation
* Add delete mutation
* Add system/items scoping
* Fix merge conflicts for real now
* Use system services, rename ids->keys
* Start on docs on mutations
* Updates to match main
* Add fetch-by-id
* Add one/many resolvers for mutations
* Check system collection rows for singleton
* Fix resolver extraction for single read
* Share delete return type
* Add comments
* Use collection root name for readable type
* Add specs endpoint for GraphQL SDL
* Update docs
* Add note on SDL spec
* Fix delete single example
* Remove package-lock
* Fix collection read scoping in non-read
2021-03-30 17:06:35 -04:00
Pyll Gomez
71c8c4cc2c
Assets quality parameter #4557 ( #4620 )
...
* Rotate JPG image on upload #4206
* fixes #3949 width/height generated for gif and tif
* API hooks for event added for auth.login #4079
* updated doc for api hooks for new auth.login event
* Style tweaks
* Update docs
* Tweak docs some more
* Spelling error
* Allow non-required flags and pass to hook
* SDK - Persistent login refresh fixes #4113
* Fixed #4145 SDK, Token Expired error
* Spell check
* Docs Spell check
* Docs Spell check
* Docs Spell check
* update docs for sdk-js
* To delete all expired session from db on login
* corrected the condition for the delete
* changed the from Date.now to new date .
* Move it inline
* fixes issue 4557 for asset quality for thumbnail
* asset documentation is updated
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-03-22 20:08:44 -04:00
Juan Carlos Blanco Delgado
ae0df2ac4d
Docs - Adding GraphQL Schema explanation to the docs ( #4559 )
...
* Adding GraphQL schema explanation to the documentation to make sure to avoid errors
* Adding extra line between headers
2021-03-17 22:20:36 -04:00
rijkvanzanten
c4394acd7b
Support custom endpoint + fix prefix in flatlist
...
Fixes #4498
2021-03-12 17:23:38 -05:00
Pyll Gomez
998c31d7a0
Updated docs for sdk-js ( #4503 )
...
* Rotate JPG image on upload #4206
* fixes #3949 width/height generated for gif and tif
* API hooks for event added for auth.login #4079
* updated doc for api hooks for new auth.login event
* Style tweaks
* Update docs
* Tweak docs some more
* Spelling error
* Allow non-required flags and pass to hook
* SDK - Persistent login refresh fixes #4113
* Fixed #4145 SDK, Token Expired error
* Spell check
* Docs Spell check
* Docs Spell check
* Docs Spell check
* update docs for sdk-js
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-03-12 09:21:08 -05:00
rijkvanzanten
93c6b157a2
Add a URL allow list for invite urls
...
Closes #4456
2021-03-11 18:48:52 -05:00
Evgeny Vlasov
7bd5dc5c9f
Add env for cookie domain ( #4490 )
...
* Add env for cookie domain
* fix doc
Co-authored-by: Власов Евгений <yavlas12@mts.ru >
2021-03-11 14:10:15 -05:00
YannickMol
9b0d778521
Update STORAGE_<LOCATION>_ENDPOINT environment variable description ( #4388 )
...
* Update STORAGE_<LOCATION>_ENDPOINT environment variable description
* Update docs/reference/environment-variables.md
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-03-08 16:48:57 -05:00
rijkvanzanten
e8222d2a28
Add reset_url allow list for password reset request
2021-03-08 13:48:59 -05:00
Sebastian Flick
9da34e1851
Update query.md ( #4429 )
...
prefix filter with `_` (necessary since rc45)
2021-03-08 08:52:57 -05:00
rijkvanzanten
acc8b4fd08
Use mssql instead of tedious for client name
...
Fixes #4427
2021-03-08 07:39:57 -05:00
rijkvanzanten
1e89c25872
Remove "locked" field from directus_fields
...
Closes #3925
2021-03-04 18:41:59 -05:00
Rijk van Zanten
30f631b0b2
Allow deeply nested queries with deep ( #4384 )
...
* Allow deeply nested query using _prefix
* Support deeply nested deep-queries
* Parse nested deep in GraphQL correctly
* Update docs
2021-03-04 12:59:54 -05:00
Nicola Krumschmidt
08293b8570
Update Knex to version 0.95.0 ( #4374 )
...
* Update Knex to version 0.95.0
* Fix formatting in schema dialects
* Fix Knex imports
* Update package-lock
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-03-03 19:37:44 -05:00
rijkvanzanten
a5cb9f6b6a
Update docs, tweak type
2021-03-03 16:38:21 -05:00
Doron Cohen
f9ffb36a11
docs: fix broken link in config files page ( #4321 )
2021-02-28 03:09:11 -05:00
rijkvanzanten
c2a5622cef
Remove unused environment variable
2021-02-26 10:49:19 -05:00