@directus/app 9.12.1 → 9.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{@directus_extensions-sdk.9a1812c6.entry.js → @directus_extensions-sdk.016f1070.entry.js} +1 -1
- package/dist/assets/accounts.40ab36c1.js +1 -0
- package/dist/assets/{active-line.b42e95d2.js → active-line.71775521.js} +1 -1
- package/dist/assets/activity-log.9449feec.js +1 -0
- package/dist/assets/activity.fbd319d5.js +80 -0
- package/dist/assets/{apl.a10fee96.js → apl.fabbb08e.js} +1 -1
- package/dist/assets/ar-SA.215069dc.js +1 -0
- package/dist/assets/architecture.9e90b6f3.js +1 -0
- package/dist/assets/{asciiarmor.3440160d.js → asciiarmor.f87dc63a.js} +1 -1
- package/dist/assets/{asn.1.bdf78f70.js → asn.1.5dd57608.js} +1 -1
- package/dist/assets/{asterisk.88ae33f0.js → asterisk.395cf0ad.js} +1 -1
- package/dist/assets/authentication.bc20bce5.js +73 -0
- package/dist/assets/{autorefresh.fa8b7b34.js → autorefresh.2c9c0320.js} +1 -1
- package/dist/assets/aws.6652a1fd.js +1 -0
- package/dist/assets/backing-directus.02c28d29.js +1 -0
- package/dist/assets/bg-BG.9288ea83.js +1 -0
- package/dist/assets/bn-IN.4127b7a4.js +1 -0
- package/dist/assets/{br-FR.1ad76918.js → br-FR.d3564938.js} +1 -1
- package/dist/assets/{brainfuck.af40cbfc.js → brainfuck.60536f63.js} +1 -1
- package/dist/assets/{ca-ES.365a1fc4.js → ca-ES.f3dfdef6.js} +1 -1
- package/dist/assets/cli.6e61515e.js +19 -0
- package/dist/assets/cli.863ef0d2.js +4 -0
- package/dist/assets/{clike.75f55953.js → clike.74e0448b.js} +1 -1
- package/dist/assets/{clojure.f44f8182.js → clojure.8f96f0f7.js} +1 -1
- package/dist/assets/cloudron.a348537b.js +1 -0
- package/dist/assets/{cmake.dc51a5f4.js → cmake.723ea5dd.js} +1 -1
- package/dist/assets/{cobol.bd572fbc.js → cobol.a990507c.js} +1 -1
- package/dist/assets/codebase-overview.b46635f9.js +1 -0
- package/dist/assets/{coffeescript.903da3d2.js → coffeescript.c826a1f4.js} +1 -1
- package/dist/assets/collections.60e4b448.js +2 -0
- package/dist/assets/collections.80e4a52c.js +106 -0
- package/dist/assets/{commonlisp.0c024da5.js → commonlisp.0f5d3fae.js} +1 -1
- package/dist/assets/config-options.8e2d8e17.js +138 -0
- package/dist/assets/content.003d7d7c.js +1 -0
- package/dist/assets/creating-extensions.9a98925a.js +11 -0
- package/dist/assets/{crystal.80f7e1ba.js → crystal.8517c407.js} +1 -1
- package/dist/assets/cs-CZ.a3c83b73.js +1 -0
- package/dist/assets/{css.eb89b9da.js → css.f2b45d65.js} +1 -1
- package/dist/assets/{cypher.f649c40f.js → cypher.0f67a8c4.js} +1 -1
- package/dist/assets/{d.3e286089.js → d.d8c5a86d.js} +1 -1
- package/dist/assets/{da-DK.88f53a7d.js → da-DK.3c379038.js} +1 -1
- package/dist/assets/{dart.5b9bb9bb.js → dart.ff540412.js} +1 -1
- package/dist/assets/data-model.086edd1e.js +1 -0
- package/dist/assets/data-sharing.27afa5ee.js +1 -0
- package/dist/assets/de-DE.350023db.js +1 -0
- package/dist/assets/{diff.c63eafa7.js → diff.1b6cf85e.js} +1 -1
- package/dist/assets/digitalocean-app-platform.aff2a50b.js +3 -0
- package/dist/assets/display-templates.d8e93a19.js +1 -0
- package/dist/assets/displays.e528abde.js +49 -0
- package/dist/assets/{django.3a6905fc.js → django.b05a00dd.js} +1 -1
- package/dist/assets/{docker.e1bb4205.js → docker.6f265c46.js} +7 -7
- package/dist/assets/{dockerfile.a9f614c8.js → dockerfile.50e7896f.js} +1 -1
- package/dist/assets/documentation.ad1fdaf2.js +1 -0
- package/dist/assets/{dtd.5b2d40ab.js → dtd.4f30128b.js} +1 -1
- package/dist/assets/{dylan.744cd79f.js → dylan.295f582b.js} +1 -1
- package/dist/assets/{ebnf.6637a8f6.js → ebnf.48a4d2a4.js} +1 -1
- package/dist/assets/{ecl.cdabfae6.js → ecl.686a8714.js} +1 -1
- package/dist/assets/{eiffel.60b61e7f.js → eiffel.ee4a91b5.js} +1 -1
- package/dist/assets/{el-GR.98199dde.js → el-GR.103ebf8d.js} +1 -1
- package/dist/assets/{elm.74b68fc8.js → elm.3575efea.js} +1 -1
- package/dist/assets/email-templates.2bdb87a6.js +2 -0
- package/dist/assets/{en-CA.58d818b8.js → en-CA.9ad3a3ab.js} +1 -1
- package/dist/assets/{en-GB.74320d21.js → en-GB.c55341c7.js} +1 -1
- package/dist/assets/endpoints.2c9172db.js +27 -0
- package/dist/assets/{erlang.d6cd5265.js → erlang.2f06eab4.js} +1 -1
- package/dist/assets/es-419.10094709.js +1 -0
- package/dist/assets/es-CL.7f44ec7c.js +1 -0
- package/dist/assets/es-ES.3ff9088e.js +1 -0
- package/dist/assets/es-MX.17370b17.js +1 -0
- package/dist/assets/{et-EE.9e35920e.js → et-EE.fb46a361.js} +1 -1
- package/dist/assets/extensions.8d3df212.js +12 -0
- package/dist/assets/{fa-IR.f3dc75f9.js → fa-IR.b864f77c.js} +1 -1
- package/dist/assets/{factor.965cfdad.js → factor.59c6a149.js} +1 -1
- package/dist/assets/faq.63c79c18.js +2 -0
- package/dist/assets/{fcl.e515f605.js → fcl.a6a387b9.js} +1 -1
- package/dist/assets/{fi-FI.42afdce0.js → fi-FI.14f31cb4.js} +1 -1
- package/dist/assets/fields.715d4591.js +135 -0
- package/dist/assets/file-library.a4de4015.js +1 -0
- package/dist/assets/files.7c2ccfe2.js +189 -0
- package/dist/assets/filter-rules.056b97be.js +76 -0
- package/dist/assets/filters.2cb82fd9.js +1 -0
- package/dist/assets/flows.38f60cc8.js +172 -0
- package/dist/assets/flows.f378a262.js +15 -0
- package/dist/assets/{fo-FO.ffe478b0.js → fo-FO.cc444b75.js} +1 -1
- package/dist/assets/folders.fa66a5ce.js +132 -0
- package/dist/assets/{forth.c62ab807.js → forth.eec0a81d.js} +1 -1
- package/dist/assets/{fortran.c0e428c5.js → fortran.b9df31da.js} +1 -1
- package/dist/assets/fr-CA.0e824ae4.js +1 -0
- package/dist/assets/fr-FR.77a5277c.js +1 -0
- package/dist/assets/{gas.fd59e425.js → gas.1bf79f8f.js} +1 -1
- package/dist/assets/gcp.6c61b39e.js +60 -0
- package/dist/assets/{gfm.8125a8e6.js → gfm.04d0828d.js} +1 -1
- package/dist/assets/{gherkin.c9a9f9d2.js → gherkin.f334d646.js} +1 -1
- package/dist/assets/github-ci.04483301.js +2 -0
- package/dist/assets/glossary.485603d9.js +1 -0
- package/dist/assets/glossary.6efd77ad.js +1 -0
- package/dist/assets/{go.31390264.js → go.81bbba54.js} +1 -1
- package/dist/assets/{groovy.c940d48b.js → groovy.3fb79de5.js} +1 -1
- package/dist/assets/{haml.1a456af6.js → haml.9645befc.js} +1 -1
- package/dist/assets/{handlebars.d3c0e9e6.js → handlebars.c78fa1ca.js} +1 -1
- package/dist/assets/{haskell-literate.06d0d330.js → haskell-literate.ee77a8c9.js} +1 -1
- package/dist/assets/{haskell.f83a5b48.js → haskell.0f131af0.js} +1 -1
- package/dist/assets/{haxe.cf38bc86.js → haxe.5ecd20ea.js} +1 -1
- package/dist/assets/{hi-IN.36e79faa.js → hi-IN.c0703db5.js} +1 -1
- package/dist/assets/hooks.f7efe9af.js +60 -0
- package/dist/assets/{hr-HR.b1e41c07.js → hr-HR.467388ee.js} +1 -1
- package/dist/assets/{htmlembedded.4765ab1f.js → htmlembedded.b9d52c93.js} +1 -1
- package/dist/assets/{htmlmixed.a4506ee0.js → htmlmixed.b02b6e2e.js} +1 -1
- package/dist/assets/{http.cf2042b8.js → http.705b0cd9.js} +1 -1
- package/dist/assets/{hu-HU.9c7ec38f.js → hu-HU.47ab36e8.js} +1 -1
- package/dist/assets/id-ID.8089647c.js +1 -0
- package/dist/assets/{idl.2b562d7a.js → idl.ee86fe0e.js} +1 -1
- package/dist/assets/iis.e068f41a.js +24 -0
- package/dist/assets/import-export.d334c127.js +2 -0
- package/dist/assets/{index.44b36a96.js → index.0295bc4b.js} +1 -1
- package/dist/assets/{index.f6d90b7c.js → index.07257d01.js} +1 -1
- package/dist/assets/{index.515f0cb5.js → index.0e101049.js} +1 -1
- package/dist/assets/{index.bc3296ff.js → index.10f90411.js} +1 -1
- package/dist/assets/{index.17ad666d.js → index.14c720ba.js} +1 -1
- package/dist/assets/{index.6687eb7d.js → index.16acfb90.js} +1 -1
- package/dist/assets/{index.e9099679.js → index.175a81f8.js} +1 -1
- package/dist/assets/index.192147d5.css +1 -0
- package/dist/assets/{index.734cf408.js → index.1a65b37a.js} +1 -1
- package/dist/assets/{index.76212e14.js → index.1b44d300.js} +1 -1
- package/dist/assets/{index.35fb04b2.js → index.20b34242.js} +1 -1
- package/dist/assets/{index.b871b7a5.js → index.2598f40b.js} +1 -1
- package/dist/assets/{index.5490bf54.js → index.28aa754b.js} +1 -1
- package/dist/assets/{index.b955a1be.js → index.2926879f.js} +1 -1
- package/dist/assets/{index.ff5502c6.js → index.2ec06d14.js} +1 -1
- package/dist/assets/{index.05e20b6f.js → index.399c0d62.js} +1 -1
- package/dist/assets/{index.788544c8.js → index.3d4cd218.js} +1 -1
- package/dist/assets/{index.bbf0131f.js → index.3eda79ec.js} +1 -1
- package/dist/assets/{index.f334ad18.js → index.402d83c0.js} +1 -1
- package/dist/assets/{index.48fd0edb.js → index.4100d6f0.js} +1 -1
- package/dist/assets/{index.5312378b.js → index.43fa9898.js} +1 -1
- package/dist/assets/{index.90aad19e.js → index.456ff0bd.js} +1 -1
- package/dist/assets/{index.2ff40292.js → index.4e2109fe.js} +1 -1
- package/dist/assets/{index.4de2df6a.js → index.4ef25ded.js} +1 -1
- package/dist/assets/{index.c91867d3.js → index.4fbaebb7.js} +1 -1
- package/dist/assets/{index.5d10078c.js → index.55a12dfb.js} +1 -1
- package/dist/assets/{index.1d927fd3.js → index.56188e3b.js} +1 -1
- package/dist/assets/{index.ea326829.js → index.5c54c17f.js} +1 -1
- package/dist/assets/{index.f715fb2c.js → index.5f5bf5b9.js} +1 -1
- package/dist/assets/{index.064c96df.js → index.60d33aa1.js} +1 -1
- package/dist/assets/{index.491a4003.js → index.627523d7.js} +1 -1
- package/dist/assets/{index.921bf39b.js → index.63d1f569.js} +1 -1
- package/dist/assets/{index.27da0362.js → index.663b73a9.js} +1 -1
- package/dist/assets/{index.8c9bb9d2.js → index.6bebaca7.js} +1 -1
- package/dist/assets/{index.c219c9fd.js → index.6f0b7179.js} +1 -1
- package/dist/assets/{index.895a297f.css → index.6f497914.css} +1 -1
- package/dist/assets/{index.f5a62bca.js → index.7249f524.js} +1 -1
- package/dist/assets/{index.6752521e.js → index.77260d1d.js} +1 -1
- package/dist/assets/{index.5e2cb31c.js → index.7f906cfe.js} +1 -1
- package/dist/assets/{index.1a186179.js → index.7fd5e2a0.js} +1 -1
- package/dist/assets/{index.e9faa1b7.js → index.7fe984e4.js} +1 -1
- package/dist/assets/{index.0a4e8fad.js → index.8493b2e7.js} +1 -1
- package/dist/assets/{index.db01bb54.js → index.85b9f847.js} +1 -1
- package/dist/assets/{index.629b6c38.js → index.8a9f2874.js} +1 -1
- package/dist/assets/{index.859a78cb.js → index.93059741.js} +1 -1
- package/dist/assets/{index.f6a5906f.js → index.94cf6fb4.js} +1 -1
- package/dist/assets/{index.55f6227c.js → index.98713a56.js} +1 -1
- package/dist/assets/{index.009353d9.js → index.98ee194a.js} +1 -1
- package/dist/assets/{index.9fbcba2f.js → index.9b60cfa4.js} +1 -1
- package/dist/assets/{index.bc32829f.js → index.a3e085ea.js} +1 -1
- package/dist/assets/{index.1e0212f9.js → index.a40592f5.js} +1 -1
- package/dist/assets/{index.fc7b1181.js → index.a5d15d7f.js} +1 -1
- package/dist/assets/{index.71e28483.js → index.a71fa74c.js} +1 -1
- package/dist/assets/{index.e39c7e76.js → index.a8aa4628.js} +1 -1
- package/dist/assets/{index.9b23cd7f.js → index.a9b73f2c.js} +1 -1
- package/dist/assets/{index.fd2a5a74.js → index.a9faa4e8.js} +1 -1
- package/dist/assets/{index.ddbad0a0.js → index.af021d8a.js} +1 -1
- package/dist/assets/{index.8f901e72.js → index.b43832c6.js} +1 -1
- package/dist/assets/{index.44c7ed90.js → index.b5ed5076.js} +1 -1
- package/dist/assets/{index.540a1c0d.js → index.b67f8116.js} +1 -1
- package/dist/assets/{index.b635a926.js → index.b702042e.js} +1 -1
- package/dist/assets/{index.3c7e729b.js → index.bce5f50d.js} +1 -1
- package/dist/assets/{index.691d9c7a.js → index.bfd23a9c.js} +1 -1
- package/dist/assets/{index.70f6f88a.entry.js → index.c2e31551.entry.js} +226 -230
- package/dist/assets/{index.a40a776b.js → index.c2e6211e.js} +1 -1
- package/dist/assets/{index.f80921e7.js → index.c35b11e6.js} +1 -1
- package/dist/assets/{index.131b4ee8.js → index.c5266851.js} +1 -1
- package/dist/assets/{index.b09321f5.js → index.c6e501ec.js} +1 -1
- package/dist/assets/{index.ae9b035a.js → index.c9fb33ab.js} +1 -1
- package/dist/assets/{index.4ff10039.js → index.cc6496a8.js} +1 -1
- package/dist/assets/{index.d911a640.js → index.cda6c2d6.js} +1 -1
- package/dist/assets/{index.54a49224.js → index.cef58c9b.js} +1 -1
- package/dist/assets/{index.a9473e05.js → index.d060d5f6.js} +1 -1
- package/dist/assets/{index.b8baec6c.js → index.d0fe3776.js} +1 -1
- package/dist/assets/{index.e7e17448.js → index.d653bbf2.js} +1 -1
- package/dist/assets/{index.4533ce42.js → index.d8fe2ade.js} +1 -1
- package/dist/assets/{index.ff5a189a.js → index.d9285c22.js} +1 -1
- package/dist/assets/{index.bb82940a.js → index.e3dcc63c.js} +1 -1
- package/dist/assets/{index.c6ea1824.js → index.e6715953.js} +1 -1
- package/dist/assets/{index.08e6475d.js → index.ebb444cf.js} +1 -1
- package/dist/assets/{index.a0bc3d71.js → index.ee22568a.js} +1 -1
- package/dist/assets/{index.c54243ff.js → index.ef3faba8.js} +1 -1
- package/dist/assets/index.f0d32a46.js +26 -0
- package/dist/assets/{index.3acd783e.js → index.fa57ca3f.js} +1 -1
- package/dist/assets/{input-rich-text-html.2d85a8a3.css → input-rich-text-html.172a38cb.css} +1 -1
- package/dist/assets/input-rich-text-html.c72d474e.js +239 -0
- package/dist/assets/insights.b3ba896c.js +2 -0
- package/dist/assets/installation.2025f88b.js +1 -0
- package/dist/assets/interfaces.606c790c.js +46 -0
- package/dist/assets/introduction.41a72fb0.js +1 -0
- package/dist/assets/introduction.527c3465.js +4 -0
- package/dist/assets/introduction.5566b96e.js +90 -0
- package/dist/assets/introduction.ecd17b88.js +1 -0
- package/dist/assets/it-IT.58422a56.js +1 -0
- package/dist/assets/items.d1f658a9.js +1 -0
- package/dist/assets/items.d9c6a0b4.js +136 -0
- package/dist/assets/ja-JP.84597497.js +1 -0
- package/dist/assets/{javascript-hint.29e9b67f.js → javascript-hint.af96cc6a.js} +1 -1
- package/dist/assets/{javascript.d2db845f.js → javascript.ed7a2c00.js} +1 -1
- package/dist/assets/{jinja2.f97723a0.js → jinja2.541c30d3.js} +1 -1
- package/dist/assets/{jsx.3f2b01c1.js → jsx.211ba53b.js} +1 -1
- package/dist/assets/{julia.fa920089.js → julia.66e518ec.js} +1 -1
- package/dist/assets/ko-KR.9056bd31.js +1 -0
- package/dist/assets/{ku-TR.9eee23ff.js → ku-TR.3a07a57e.js} +1 -1
- package/dist/assets/layouts.0aa8d645.js +54 -0
- package/dist/assets/layouts.14b157dc.js +1 -0
- package/dist/assets/{livescript.2ec2e5ab.js → livescript.06428372.js} +1 -1
- package/dist/assets/localization.c89061c7.js +1 -0
- package/dist/assets/{lt-LT.772aac6e.js → lt-LT.f2d719ff.js} +1 -1
- package/dist/assets/{lua.5e0c8497.js → lua.4f86b0e3.js} +1 -1
- package/dist/assets/manual.20d730b3.js +12 -0
- package/dist/assets/{mark-selection.54726b3f.js → mark-selection.c376d4be.js} +1 -1
- package/dist/assets/{match-highlighter.218123e7.js → match-highlighter.75cb1404.js} +1 -1
- package/dist/assets/{mathematica.df44764c.js → mathematica.1e1f53c5.js} +1 -1
- package/dist/assets/{mbox.491dfb6c.js → mbox.4a5729c3.js} +1 -1
- package/dist/assets/migrations.f13ec64d.js +19 -0
- package/dist/assets/{mirc.a9dca563.js → mirc.9b793041.js} +1 -1
- package/dist/assets/{mllike.0a469a43.js → mllike.4e43f07d.js} +1 -1
- package/dist/assets/{mn-MN.ae109212.js → mn-MN.c504a096.js} +1 -1
- package/dist/assets/{modelica.306697a8.js → modelica.deb73769.js} +1 -1
- package/dist/assets/modules.9b5ee510.js +69 -0
- package/dist/assets/{ms-MY.e50ff23a.js → ms-MY.e6553dad.js} +1 -1
- package/dist/assets/{mscgen.a45d586b.js → mscgen.48ffdfc0.js} +1 -1
- package/dist/assets/{multiplex.26e09ed5.js → multiplex.a2d83d7f.js} +1 -1
- package/dist/assets/{mumps.ae29c70e.js → mumps.210b8bdf.js} +1 -1
- package/dist/assets/{nginx.52e6bfcd.js → nginx.dbe68b8c.js} +1 -1
- package/dist/assets/{nl-NL.b57de112.js → nl-NL.2f00af44.js} +1 -1
- package/dist/assets/{no-NO.79458b78.js → no-NO.59f9d425.js} +1 -1
- package/dist/assets/notifications.674ee6f9.js +153 -0
- package/dist/assets/{nsis.5869c4bd.js → nsis.5576ebf1.js} +1 -1
- package/dist/assets/{ntriples.c7dd54df.js → ntriples.07c64718.js} +1 -1
- package/dist/assets/{octave.ef49cef7.js → octave.9cb94caa.js} +1 -1
- package/dist/assets/operations.46679bea.js +1 -0
- package/dist/assets/operations.9995851b.js +169 -0
- package/dist/assets/{overlay.9a3d0cba.js → overlay.b1fd0f5a.js} +1 -1
- package/dist/assets/overview.3616b560.js +1 -0
- package/dist/assets/overview.3c9f8f3d.js +1 -0
- package/dist/assets/overview.6438dc44.js +1 -0
- package/dist/assets/{oz.6a13c27c.js → oz.4bedbc84.js} +1 -1
- package/dist/assets/panels.570ee526.js +65 -0
- package/dist/assets/{pascal.77947c82.js → pascal.9f3e47db.js} +1 -1
- package/dist/assets/{pegjs.fb3674fc.js → pegjs.38dabda4.js} +1 -1
- package/dist/assets/{perl.bd20c5e2.js → perl.d07c357e.js} +1 -1
- package/dist/assets/permissions.768d1878.js +178 -0
- package/dist/assets/{php.f7000a8d.js → php.a2fb29e5.js} +1 -1
- package/dist/assets/{pig.7044156f.js → pig.cc357f9e.js} +1 -1
- package/dist/assets/pl-PL.80cfbed6.js +1 -0
- package/dist/assets/plesk.b0ee9a9a.js +27 -0
- package/dist/assets/{powershell.d6251d29.js → powershell.283f357b.js} +1 -1
- package/dist/assets/presets-bookmarks.522baf53.js +1 -0
- package/dist/assets/presets.d902ebfa.js +164 -0
- package/dist/assets/project-settings.1f95b799.js +1 -0
- package/dist/assets/projects.1ea6a392.js +1 -0
- package/dist/assets/{properties.21d46a91.js → properties.57480d0c.js} +1 -1
- package/dist/assets/{protobuf.0595884b.js → protobuf.c1758733.js} +1 -1
- package/dist/assets/pt-BR.40750500.js +1 -0
- package/dist/assets/pt-PT.fae0fcc3.js +1 -0
- package/dist/assets/{pug.02047604.js → pug.bdcaf1c5.js} +1 -1
- package/dist/assets/{puppet.7c07ba75.js → puppet.8b6ff9f4.js} +1 -1
- package/dist/assets/{python.fe6c7a24.js → python.987c2ae7.js} +1 -1
- package/dist/assets/{q.bfdf1988.js → q.85f4c589.js} +1 -1
- package/dist/assets/query.8abea6de.js +152 -0
- package/dist/assets/quickstart.75164dd7.js +9 -0
- package/dist/assets/quickstart.9985cb15.js +20 -0
- package/dist/assets/{r.d6b5ac21.js → r.25d10fd4.js} +1 -1
- package/dist/assets/relations.9011b2b5.js +115 -0
- package/dist/assets/relationships.cbc9b1c5.js +55 -0
- package/dist/assets/resources.25cb1e34.js +1 -0
- package/dist/assets/revisions.c90ecb76.js +40 -0
- package/dist/assets/{ro-RO.5161835a.js → ro-RO.a1adfb6a.js} +1 -1
- package/dist/assets/roles.22f7aa37.js +171 -0
- package/dist/assets/{rpm.92483469.js → rpm.8909ead0.js} +1 -1
- package/dist/assets/{rst.b2603799.js → rst.4d43ef54.js} +1 -1
- package/dist/assets/ru-RU.35703ea4.js +1 -0
- package/dist/assets/{ruby.0246dbd5.js → ruby.b7e26986.js} +1 -1
- package/dist/assets/running-locally.ce0a8200.js +26 -0
- package/dist/assets/{rust.dd8abd8d.js → rust.6984b11a.js} +1 -1
- package/dist/assets/{sas.d26b2302.js → sas.91990a72.js} +1 -1
- package/dist/assets/{sass.a791aa27.js → sass.898f89c7.js} +1 -1
- package/dist/assets/{scheme.ef2b1440.js → scheme.f661c5b8.js} +1 -1
- package/dist/assets/sdk.916109ed.js +393 -0
- package/dist/assets/security.1963da73.js +1 -0
- package/dist/assets/server.afec52fc.js +114 -0
- package/dist/assets/settings.835be62f.js +51 -0
- package/dist/assets/settings.a02abd85.js +1 -0
- package/dist/assets/{shell.2f3bc735.js → shell.af2902da.js} +1 -1
- package/dist/assets/{show-hint.6fa4d537.js → show-hint.2d43524d.js} +1 -1
- package/dist/assets/{sieve.99fca314.js → sieve.327a81f8.js} +1 -1
- package/dist/assets/{simple.0e90a38e.js → simple.4fb4f28d.js} +1 -1
- package/dist/assets/{sl-SI.719d987e.js → sl-SI.632899f8.js} +1 -1
- package/dist/assets/{slim.92d997b6.js → slim.e97ce531.js} +1 -1
- package/dist/assets/{smalltalk.a9b3ffec.js → smalltalk.b9556415.js} +1 -1
- package/dist/assets/{smarty.c54a652c.js → smarty.d91926e3.js} +1 -1
- package/dist/assets/{solr.1356a877.js → solr.20381d3e.js} +1 -1
- package/dist/assets/{soy.e1b19eef.js → soy.a0154260.js} +1 -1
- package/dist/assets/{sparql.1335f7a5.js → sparql.36de4d3f.js} +1 -1
- package/dist/assets/{spreadsheet.e9096343.js → spreadsheet.00a4877b.js} +1 -1
- package/dist/assets/{sql.ac45a460.js → sql.1f7dd82a.js} +1 -1
- package/dist/assets/{sr-CS.c513578f.js → sr-CS.2e5b18be.js} +1 -1
- package/dist/assets/{sso-examples.b52061be.js → sso-examples.048b39c5.js} +12 -12
- package/dist/assets/sso.70be105f.js +22 -0
- package/dist/assets/{stex.fb7fd990.js → stex.2b7cb363.js} +1 -1
- package/dist/assets/{stylus.d0281b2a.js → stylus.123ca166.js} +1 -1
- package/dist/assets/support.fce2dba5.js +1 -0
- package/dist/assets/{sv-SE.a70fd097.js → sv-SE.d485ddd3.js} +1 -1
- package/dist/assets/{swift.a9fd2d64.js → swift.9ca91d28.js} +1 -1
- package/dist/assets/{tcl.8f7bdfb5.js → tcl.1b7f83bd.js} +1 -1
- package/dist/assets/teams.44eb670e.js +1 -0
- package/dist/assets/{textile.ae199003.js → textile.ee402504.js} +1 -1
- package/dist/assets/{th-TH.bdbc4a8c.js → th-TH.1e9ab13f.js} +1 -1
- package/dist/assets/themes.e4a7762f.js +5 -0
- package/dist/assets/{tiddlywiki.52caa0ed.js → tiddlywiki.67540872.js} +1 -1
- package/dist/assets/{tiki.831b9315.js → tiki.fb6dd4a0.js} +1 -1
- package/dist/assets/{toml.6f660b6b.js → toml.9c5fe3d8.js} +1 -1
- package/dist/assets/{tornado.01563722.js → tornado.c681a8fd.js} +1 -1
- package/dist/assets/tr-TR.feb24957.js +1 -0
- package/dist/assets/translation-strings.4ed25965.js +1 -0
- package/dist/assets/translations.cf2353ca.js +1 -0
- package/dist/assets/triggers.05092cdf.js +1 -0
- package/dist/assets/{troff.f5f797f2.js → troff.a6f4e798.js} +1 -1
- package/dist/assets/{ttcn-cfg.a6927435.js → ttcn-cfg.a0214838.js} +1 -1
- package/dist/assets/{ttcn.24c6b925.js → ttcn.4c22a431.js} +1 -1
- package/dist/assets/{turtle.d0e831a8.js → turtle.d40e9c31.js} +1 -1
- package/dist/assets/{twig.d5e90842.js → twig.d78613df.js} +1 -1
- package/dist/assets/ubuntu.35dc97df.js +11 -0
- package/dist/assets/uk-UA.0e92f9a4.js +1 -0
- package/dist/assets/upgrades-migrations.9218bbe9.js +1 -0
- package/dist/assets/use-sync.c0f4dfab.js +28 -0
- package/dist/assets/user-directory.3daaa818.js +1 -0
- package/dist/assets/users-roles-permissions.6e18f7ca.js +1 -0
- package/dist/assets/users.4f11a7c5.js +252 -0
- package/dist/assets/utilities.0e0d0ace.js +74 -0
- package/dist/assets/{vb.bb33c7a5.js → vb.5adeb8ea.js} +1 -1
- package/dist/assets/{vbscript.d8f8d95e.js → vbscript.27937162.js} +1 -1
- package/dist/assets/{velocity.26721ec5.js → velocity.581c25aa.js} +1 -1
- package/dist/assets/{verilog.24512a86.js → verilog.9f72c282.js} +1 -1
- package/dist/assets/{vhdl.6e64552d.js → vhdl.4d290e0b.js} +1 -1
- package/dist/assets/{vi-VN.7478a743.js → vi-VN.3e9c985f.js} +1 -1
- package/dist/assets/{vue.4450af40.js → vue.cf5a232a.js} +1 -1
- package/dist/assets/{wast.79f64b4c.js → wast.16f886c5.js} +1 -1
- package/dist/assets/webhooks.00ee297b.js +147 -0
- package/dist/assets/webhooks.01ddb390.js +1 -0
- package/dist/assets/{webidl.860cea4e.js → webidl.1185b166.js} +1 -1
- package/dist/assets/{xquery.23f4fa34.js → xquery.34864271.js} +1 -1
- package/dist/assets/{yacas.0d60e6b0.js → yacas.880a270b.js} +1 -1
- package/dist/assets/{yaml-frontmatter.70ea956b.js → yaml-frontmatter.4cec6c13.js} +1 -1
- package/dist/assets/{yaml.9d5c3ac9.js → yaml.15292258.js} +1 -1
- package/dist/assets/{z80.527b7cb8.js → z80.727a7271.js} +1 -1
- package/dist/assets/zh-CN.432cf71e.js +1 -0
- package/dist/assets/zh-TW.cac20c88.js +1 -0
- package/dist/index.html +3 -3
- package/package.json +10 -7
- package/dist/assets/accounts.08433099.js +0 -1
- package/dist/assets/activity-log.fd558c9b.js +0 -1
- package/dist/assets/activity.0def80ca.js +0 -80
- package/dist/assets/ar-SA.1a6c2c65.js +0 -1
- package/dist/assets/authentication.a6f04750.js +0 -73
- package/dist/assets/aws.3b1c64af.js +0 -1
- package/dist/assets/backing-directus.1ed89e33.js +0 -1
- package/dist/assets/bg-BG.0eca7613.js +0 -2
- package/dist/assets/bn-IN.1385676c.js +0 -1
- package/dist/assets/cli.5153aa86.js +0 -4
- package/dist/assets/cli.e8e2526b.js +0 -19
- package/dist/assets/cloudron.53c430b8.js +0 -1
- package/dist/assets/codebase-overview.e9df94fc.js +0 -1
- package/dist/assets/collections.1c745e99.css +0 -1
- package/dist/assets/collections.2453db3a.js +0 -106
- package/dist/assets/collections.aa896b3f.js +0 -2
- package/dist/assets/config-options.b1233b4b.js +0 -138
- package/dist/assets/content.1b1e95cf.js +0 -1
- package/dist/assets/creating-extensions.bfd7c57c.js +0 -11
- package/dist/assets/cs-CZ.6910228b.js +0 -1
- package/dist/assets/data-model.0e360572.js +0 -1
- package/dist/assets/data-sharing.da96e52e.js +0 -1
- package/dist/assets/de-DE.d1197f4c.js +0 -1
- package/dist/assets/digitalocean-app-platform.3412cb40.js +0 -3
- package/dist/assets/display-templates.915c0c5b.js +0 -1
- package/dist/assets/displays.99989c6d.js +0 -49
- package/dist/assets/documentation.788d4998.js +0 -1
- package/dist/assets/email-templates.1f5ac335.js +0 -2
- package/dist/assets/endpoints.aaac7c81.js +0 -27
- package/dist/assets/es-419.aa0bf259.js +0 -1
- package/dist/assets/es-CL.e42c6c3c.js +0 -1
- package/dist/assets/es-ES.5c7e9438.js +0 -1
- package/dist/assets/es-MX.956444f4.js +0 -1
- package/dist/assets/extensions.34c12005.js +0 -12
- package/dist/assets/faq.89e68608.js +0 -2
- package/dist/assets/fields.54985585.js +0 -135
- package/dist/assets/file-library.3e651030.js +0 -1
- package/dist/assets/files.064d5a35.js +0 -187
- package/dist/assets/filter-rules.e442e006.js +0 -76
- package/dist/assets/filters.3db1b044.js +0 -1
- package/dist/assets/folders.0024d3d3.js +0 -132
- package/dist/assets/fr-CA.6d6d8d1f.js +0 -1
- package/dist/assets/fr-FR.7fa01b32.js +0 -1
- package/dist/assets/gcp.627205b5.js +0 -60
- package/dist/assets/github-ci.abd39dcc.js +0 -2
- package/dist/assets/glossary.75ca2027.js +0 -1
- package/dist/assets/glossary.bf083fb1.js +0 -1
- package/dist/assets/hooks.eda18b02.js +0 -60
- package/dist/assets/id-ID.a0052c00.js +0 -1
- package/dist/assets/iis.109e5a8a.js +0 -24
- package/dist/assets/import-export.3da878a4.js +0 -2
- package/dist/assets/index.40c42250.css +0 -1
- package/dist/assets/index.9b42e31d.js +0 -26
- package/dist/assets/input-rich-text-html.1550fe06.js +0 -240
- package/dist/assets/insights.c8ed7c1c.js +0 -1
- package/dist/assets/installation.78c6d9f6.js +0 -1
- package/dist/assets/interfaces.9e145c45.js +0 -46
- package/dist/assets/introduction.2e6f5c1d.js +0 -90
- package/dist/assets/introduction.78a2a844.js +0 -4
- package/dist/assets/introduction.7c5efc8a.js +0 -1
- package/dist/assets/introduction.d5621d79.js +0 -1
- package/dist/assets/it-IT.34d52fbd.js +0 -1
- package/dist/assets/items.4205dfa0.js +0 -136
- package/dist/assets/items.64ed9295.js +0 -1
- package/dist/assets/ja-JP.819a38cf.js +0 -1
- package/dist/assets/ko-KR.30f60079.js +0 -1
- package/dist/assets/layouts.3c14b583.js +0 -54
- package/dist/assets/layouts.ca8afd39.js +0 -1
- package/dist/assets/localization.374b7427.js +0 -1
- package/dist/assets/manual.ab601c95.js +0 -10
- package/dist/assets/migrations.8989fedc.js +0 -19
- package/dist/assets/modules.17c944d1.js +0 -69
- package/dist/assets/notifications.33c688c9.js +0 -153
- package/dist/assets/overview.3436365c.js +0 -1
- package/dist/assets/overview.623fafba.js +0 -1
- package/dist/assets/overview.dbebe94a.js +0 -1
- package/dist/assets/panels.385b173a.js +0 -65
- package/dist/assets/permissions.f84f8d42.js +0 -178
- package/dist/assets/pl-PL.22d5965f.js +0 -1
- package/dist/assets/plesk.f7e3d5ef.js +0 -27
- package/dist/assets/presets-bookmarks.1b8ec70c.js +0 -1
- package/dist/assets/presets.b1e8b6c1.js +0 -164
- package/dist/assets/project-settings.d32669a9.js +0 -1
- package/dist/assets/projects.b0451bed.js +0 -1
- package/dist/assets/pt-BR.2d6fa7cc.js +0 -1
- package/dist/assets/pt-PT.c28534a0.js +0 -1
- package/dist/assets/query.dbe0b56d.js +0 -152
- package/dist/assets/quickstart.01824cc9.js +0 -9
- package/dist/assets/quickstart.4d7c7736.js +0 -20
- package/dist/assets/relations.d29aa86d.js +0 -115
- package/dist/assets/relationships.c9c5db8a.js +0 -55
- package/dist/assets/revisions.2898106e.js +0 -40
- package/dist/assets/roles.9fec37da.js +0 -171
- package/dist/assets/ru-RU.39540ee0.js +0 -1
- package/dist/assets/running-locally.811d0dcc.js +0 -26
- package/dist/assets/sdk.12cd7974.js +0 -393
- package/dist/assets/security.8e2a8a41.js +0 -1
- package/dist/assets/server.9f12ae3e.js +0 -114
- package/dist/assets/settings.149d1dff.js +0 -1
- package/dist/assets/settings.28abc1f0.js +0 -51
- package/dist/assets/sso.64b2717b.js +0 -22
- package/dist/assets/support.94e3734b.js +0 -1
- package/dist/assets/teams.9ff14f8f.js +0 -1
- package/dist/assets/themes.df7ec485.js +0 -5
- package/dist/assets/tr-TR.d7a7361f.js +0 -1
- package/dist/assets/translations.5191ab7c.js +0 -1
- package/dist/assets/ubuntu.f4c21886.js +0 -11
- package/dist/assets/uk-UA.473dd1c9.js +0 -1
- package/dist/assets/upgrades-migrations.15498a47.js +0 -1
- package/dist/assets/use-sync.ded22f96.js +0 -28
- package/dist/assets/user-directory.47c8beb2.js +0 -1
- package/dist/assets/users-roles-permissions.005388fa.js +0 -1
- package/dist/assets/users.84251ab9.js +0 -252
- package/dist/assets/utilities.26e6a9e8.js +0 -74
- package/dist/assets/webhooks.4eeecb7d.js +0 -147
- package/dist/assets/webhooks.61b11e7d.js +0 -1
- package/dist/assets/zh-CN.c51e7308.js +0 -1
- package/dist/assets/zh-TW.8ef6cec8.js +0 -1
- package/dist/robots.txt +0 -2
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import{a as i,o as r,b as h,w as t,g as e,e as n,B as s}from"./runtime-core.esm-bundler.b1f35d24.js";var l={};const d={class:"markdown-body"},p=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Notifications allow you to send/receive messages to/from other users of the platform.")])]),e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-notification-object"},"The Notification Object")]),e("li",null,[e("a",{href:"#list-notifications"},"List Notifications")]),e("li",null,[e("a",{href:"#retrieve-a-notification"},"Retrieve a notification")]),e("li",null,[e("a",{href:"#create-a-notification"},"Create a Notification")]),e("li",null,[e("a",{href:"#create-multiple-notifications"},"Create Multiple Notifications")]),e("li",null,[e("a",{href:"#update-a-notification"},"Update a Notification")]),e("li",null,[e("a",{href:"#update-multiple-notifications"},"Update Multiple Notifications")]),e("li",null,[e("a",{href:"#delete-a-notification"},"Delete a Notification")]),e("li",null,[e("a",{href:"#delete-multiple-notifications"},"Delete Multiple Notifications")])])])])])],-1),u=e("hr",null,null,-1),f=e("h2",{id:"the-notification-object"},[s("The Notification Object "),e("a",{class:"header-anchor",href:"#the-notification-object"},"#")],-1),_=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",{class:""},"id"),s(),e("strong",null,"integer"),e("br"),s(" Primary key of the revision.")]),e("p",null,[e("code",{class:""},"timestamp"),s(),e("strong",null,"string"),e("br"),s(" Timestamp in ISO8601 when the notification was created.")]),e("p",null,[e("code",{class:""},"status"),s(),e("strong",null,"string"),e("br"),s(" Current status of the notification. One of \u201Cinbox\u201D, \u201Carchived\u201D.")]),e("p",null,[e("code",{class:""},"recipient"),s(),e("strong",null,"many-to-one"),e("br"),s(" User that received the notification.")]),e("p",null,[e("code",{class:""},"sender"),s(),e("strong",null,"many-to-one"),e("br"),s(" User that sent the notification, if any.")]),e("p",null,[e("code",{class:""},"subject"),s(),e("strong",null,"string"),e("br"),s(" Subject line of the message.")]),e("p",null,[e("code",{class:""},"message"),s(),e("strong",null,"string"),e("br"),s(" Notification\u2019s message content. Will be sent in the email.")]),e("p",null,[e("code",{class:""},"collection"),s(),e("strong",null,"string"),e("br"),s(" Collection this notification references.")]),e("p",null,[e("code",{class:""},"item"),s(),e("strong",null,"string"),e("br"),s(" Primary key of the item this notification references.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[s(`{
|
|
2
|
-
`),e("span",{class:"hljs-attr"},'"id"'),s(": "),e("span",{class:"hljs-number"},"2"),s(`,
|
|
3
|
-
`),e("span",{class:"hljs-attr"},'"timestamp"'),s(": "),e("span",{class:"hljs-string"},'"2021-11-24T13:57:35Z"'),s(`,
|
|
4
|
-
`),e("span",{class:"hljs-attr"},'"status"'),s(": "),e("span",{class:"hljs-string"},'"inbox"'),s(`,
|
|
5
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),s(": "),e("span",{class:"hljs-string"},'"3EE34828-B43C-4FB2-A721-5151579B08EA"'),s(`,
|
|
6
|
-
`),e("span",{class:"hljs-attr"},'"sender"'),s(": "),e("span",{class:"hljs-string"},'"497a495e-5529-4e46-8feb-2f35e9b85601"'),s(`,
|
|
7
|
-
`),e("span",{class:"hljs-attr"},'"subject"'),s(": "),e("span",{class:"hljs-string"},'"You were mentioned in articles"'),s(`,
|
|
8
|
-
`),e("span",{class:"hljs-attr"},'"message"'),s(": "),e("span",{class:"hljs-string"},'"\\nHello admin@example.com,\\n\\rijk@directus.io has mentioned you in a comment:\\n\\n> Hello <em>admin@example.com</em>!\\n\\n<a href=\\"http://localhost:8080/admin/content/articles/1\\">Click here to view.</a>\\n"'),s(`,
|
|
9
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),s(": "),e("span",{class:"hljs-string"},'"articles"'),s(`,
|
|
10
|
-
`),e("span",{class:"hljs-attr"},'"item"'),s(": "),e("span",{class:"hljs-string"},'"1"'),s(`
|
|
11
|
-
}
|
|
12
|
-
`)])])])],-1),m=e("hr",null,null,-1),g=e("h2",{id:"list-notifications"},[s("List Notifications "),e("a",{class:"header-anchor",href:"#list-notifications"},"#")],-1),j=e("p",null,"List all notifications that exist in Directus.",-1),y={class:"two-up"},b={class:"left"},q=e("h3",{id:"query-parameters"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),x=s("Supports all "),v=s("global query parameters"),E=s("."),w=e("h3",{id:"returns"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")],-1),T=s("An array of up to "),k=s("limit"),P=s(),R=e("a",{href:"#the-notification-object"},"notification objects",-1),S=s(". If no items are available, data will be an empty array."),N={class:"right"},A=e("h3",{id:"rest-api"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),C=e("pre",null,[e("code",{class:""},`GET /notifications
|
|
13
|
-
SEARCH /notifications
|
|
14
|
-
`)],-1),L=s("Learn more about SEARCH ->"),D=e("h3",{id:"graphql"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")],-1),O=e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
15
|
-
`)],-1),Q=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
|
|
16
|
-
notifications: [directus_notifications]
|
|
17
|
-
}
|
|
18
|
-
`)])],-1),I=e("h5",{id:"example"},[s("Example "),e("a",{class:"header-anchor",href:"#example"},"#")],-1),H=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
|
|
19
|
-
notifications {
|
|
20
|
-
id
|
|
21
|
-
recipient
|
|
22
|
-
subject
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`)])],-1),B=e("hr",null,null,-1),M=e("h2",{id:"retrieve-a-notification"},[s("Retrieve a notification "),e("a",{class:"header-anchor",href:"#retrieve-a-notification"},"#")],-1),G=e("p",null,"List an existing notification by primary key.",-1),U={class:"two-up"},Y={class:"left"},V=e("h3",{id:"query-parameters-2"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),F=s("Supports all "),W=s("global query parameters"),Z=s("."),z=e("h3",{id:"returns-2"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),J=e("p",null,[s("Returns the requested "),e("a",{href:"#the-notification-object"},"notification object"),s(".")],-1),K=e("div",{class:"right"},[e("h3",{id:"rest-api-2"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",{class:""},`GET /notifications/:id
|
|
26
|
-
`)]),e("h5",{id:"example-2"},[s("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",{class:""},`GET /notifications/42
|
|
27
|
-
`)]),e("h3",{id:"graphql-2"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
28
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
|
|
29
|
-
notifications_by_id(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): directus_notifications
|
|
30
|
-
}
|
|
31
|
-
`)])]),e("h5",{id:"example-3"},[s("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
|
|
32
|
-
notifications_by_id(id: `),e("span",{class:"hljs-number"},"42"),s(`) {
|
|
33
|
-
id
|
|
34
|
-
sender
|
|
35
|
-
recipient
|
|
36
|
-
message
|
|
37
|
-
subject
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`)])])],-1),X=e("hr",null,null,-1),$=e("h2",{id:"create-a-notification"},[s("Create a Notification "),e("a",{class:"header-anchor",href:"#create-a-notification"},"#")],-1),ee=e("p",null,"Create a new notification.",-1),se={class:"two-up"},te={class:"left"},ae=e("h3",{id:"query-parameters-3"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),ne=s("Supports all "),ie=s("global query parameters"),le=s("."),oe=e("h3",{id:"request-body"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")],-1),ce=e("p",null,[s("A partial "),e("a",{href:"#the-notification-object"},"notification object"),s(".")],-1),re=e("h3",{id:"returns-3"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),he=e("p",null,[s("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),s(" for the created notification.")],-1),de=e("div",{class:"right"},[e("h3",{id:"rest-api-3"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",{class:""},`POST /notifications
|
|
41
|
-
`)]),e("h5",{id:"example-4"},[s("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /notifications"),s(`
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),s(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),s(`,
|
|
45
|
-
`),e("span",{class:"hljs-attr"},'"subject"'),s(": "),e("span",{class:"hljs-string"},'"Hi there!"'),s(`
|
|
46
|
-
}
|
|
47
|
-
`)])]),e("h3",{id:"graphql-3"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
48
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
49
|
-
create_notifications_item(data: create_directus_notifications_input!): directus_notifications
|
|
50
|
-
}
|
|
51
|
-
`)])]),e("h5",{id:"example-5"},[s("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
52
|
-
create_notifications_item(data: { recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),s(", subject: "),e("span",{class:"hljs-string"},'"Hi there!"'),s(` }) {
|
|
53
|
-
id
|
|
54
|
-
recipient
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`)])])],-1),pe=e("hr",null,null,-1),ue=e("h2",{id:"create-multiple-notifications"},[s("Create Multiple Notifications "),e("a",{class:"header-anchor",href:"#create-multiple-notifications"},"#")],-1),fe=e("p",null,"Create multiple new notifications.",-1),_e={class:"two-up"},me={class:"left"},ge=e("h3",{id:"query-parameters-4"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),je=s("Supports all "),ye=s("global query parameters"),be=s("."),qe=e("h3",{id:"request-body-2"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),xe=e("p",null,[s("An array of partial "),e("a",{href:"#the-notification-object"},"notification objects"),s(".")],-1),ve=e("h3",{id:"returns-4"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),Ee=e("p",null,[s("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),s(" for the created notification.")],-1),we=e("div",{class:"right"},[e("h3",{id:"rest-api-4"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",{class:""},`POST /notifications
|
|
58
|
-
`)]),e("h5",{id:"example-6"},[s("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /notifications"),s(`
|
|
59
|
-
|
|
60
|
-
[
|
|
61
|
-
{
|
|
62
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),s(": "),e("span",{class:"hljs-string"},'"directus_files"'),s(`,
|
|
63
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),s(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),s(`,
|
|
64
|
-
`),e("span",{class:"hljs-attr"},'"message"'),s(": "),e("span",{class:"hljs-string"},'"Hi there! You should check out these files"'),s(`
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),s(": "),e("span",{class:"hljs-string"},'"articles"'),s(`,
|
|
68
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),s(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),s(`,
|
|
69
|
-
`),e("span",{class:"hljs-attr"},'"message"'),s(": "),e("span",{class:"hljs-string"},'"Hi there! You should check out these articles"'),s(`
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
`)])]),e("h3",{id:"graphql-4"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
73
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
74
|
-
create_notifications_items(data: [create_directus_notifications_input!]!): [directus_notifications]
|
|
75
|
-
}
|
|
76
|
-
`)])]),e("h5",{id:"example-7"},[s("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
77
|
-
create_notifications_items(
|
|
78
|
-
data: [
|
|
79
|
-
{
|
|
80
|
-
collection: `),e("span",{class:"hljs-string"},'"directus_files"'),s(`
|
|
81
|
-
recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),s(`
|
|
82
|
-
message: `),e("span",{class:"hljs-string"},'"Hi there! You should check out these files"'),s(`
|
|
83
|
-
}
|
|
84
|
-
{
|
|
85
|
-
collection: `),e("span",{class:"hljs-string"},'"articles"'),s(`
|
|
86
|
-
recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),s(`
|
|
87
|
-
message: `),e("span",{class:"hljs-string"},'"Hi there! You should check out these articles"'),s(`
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
) {
|
|
91
|
-
id
|
|
92
|
-
recipient
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`)])])],-1),Te=e("hr",null,null,-1),ke=e("h2",{id:"update-a-notification"},[s("Update a Notification "),e("a",{class:"header-anchor",href:"#update-a-notification"},"#")],-1),Pe=e("p",null,"Update an existing notification.",-1),Re=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Email Notifications"),e("p",null,"Emails are only sent when the notification is created. Updated to an existing notification won\u2019t trigger a new notification email to be sent.")],-1),Se={class:"two-up"},Ne={class:"left"},Ae=e("h3",{id:"query-parameters-5"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),Ce=s("Supports all "),Le=s("global query parameters"),De=s("."),Oe=e("h3",{id:"request-body-3"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),Qe=e("p",null,[s("A partial "),e("a",{href:"#the-notification-object"},"notification object"),s(".")],-1),Ie=e("h3",{id:"returns-5"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),He=e("p",null,[s("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),s(" for the updated notification.")],-1),Be=e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",{class:""},`PATCH /notifications/:id
|
|
96
|
-
`)]),e("h5",{id:"example-8"},[s("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /notifications/34"),s(`
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
`),e("span",{class:"hljs-attr"},'"message"'),s(": "),e("span",{class:"hljs-string"},'"This is my updated notification"'),s(`
|
|
100
|
-
}
|
|
101
|
-
`)])]),e("h3",{id:"graphql-5"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
102
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
103
|
-
update_notifications_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!, data: update_directus_notifications_input): directus_notifications
|
|
104
|
-
}
|
|
105
|
-
`)])]),e("h5",{id:"example-9"},[s("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
106
|
-
update_notifications_item(id: `),e("span",{class:"hljs-number"},"32"),s(", data: { message: "),e("span",{class:"hljs-string"},'"This is my updated notification"'),s(` }) {
|
|
107
|
-
id
|
|
108
|
-
message
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
`)])])],-1),Me=e("hr",null,null,-1),Ge=e("h2",{id:"update-multiple-notifications"},[s("Update Multiple Notifications "),e("a",{class:"header-anchor",href:"#update-multiple-notifications"},"#")],-1),Ue=e("p",null,"Update multiple existing notifications.",-1),Ye={class:"two-up"},Ve={class:"left"},Fe=e("h3",{id:"query-parameters-6"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),We=s("Supports all "),Ze=s("global query parameters"),ze=s("."),Je=e("h3",{id:"request-body-4"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),Ke=e("div",{class:"definitions"},[e("p",null,[e("code",{class:""},"keys"),s(),e("strong",null,"Required"),e("br"),s(" Array of primary keys of the notifications you\u2019d like to update.")]),e("p",null,[e("code",{class:""},"data"),s(),e("strong",null,"Required"),e("br"),s(" Any of "),e("a",{href:"#the-notification-object"},"the notification object"),s("\u2019s properties.")])],-1),Xe=e("h3",{id:"returns-6"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),$e=e("p",null,[s("Returns the "),e("a",{href:"#the-notification-object"},"notification objects"),s(" for the updated notifications.")],-1),es=e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",{class:""},`PATCH /notifications
|
|
112
|
-
`)]),e("h5",{id:"example-10"},[s("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /notifications"),s(`
|
|
113
|
-
|
|
114
|
-
{
|
|
115
|
-
`),e("span",{class:"hljs-attr"},'"keys"'),s(": ["),e("span",{class:"hljs-number"},"15"),s(", "),e("span",{class:"hljs-number"},"64"),s(`],
|
|
116
|
-
`),e("span",{class:"hljs-attr"},'"data"'),s(`: {
|
|
117
|
-
`),e("span",{class:"hljs-attr"},'"message"'),s(": "),e("span",{class:"hljs-string"},'"Updated message!"'),s(`
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`)])]),e("h3",{id:"graphql-6"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
121
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
122
|
-
update_notifications_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!, data: update_directus_notifications_input): [directus_notifications]
|
|
123
|
-
}
|
|
124
|
-
`)])]),e("h5",{id:"example-11"},[s("Example "),e("a",{class:"header-anchor",href:"#example-11"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
125
|
-
update_notifications_items(ids: [`),e("span",{class:"hljs-number"},"15"),s(", "),e("span",{class:"hljs-number"},"64"),s("], data: { message: "),e("span",{class:"hljs-string"},'"Updated message!"'),s(` }) {
|
|
126
|
-
id
|
|
127
|
-
recipient
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
`)])])],-1),ss=e("hr",null,null,-1),ts=e("h2",{id:"delete-a-notification"},[s("Delete a Notification "),e("a",{class:"header-anchor",href:"#delete-a-notification"},"#")],-1),as=e("p",null,"Delete an existing notification.",-1),ns=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"returns-7"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-7"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-7"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),e("pre",null,[e("code",{class:""},`DELETE /notifications/:id
|
|
131
|
-
`)]),e("h5",{id:"example-12"},[s("Example "),e("a",{class:"header-anchor",href:"#example-12"},"#")]),e("pre",null,[e("code",{class:""},`DELETE /notifications/34
|
|
132
|
-
`)]),e("h3",{id:"graphql-7"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-7"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
133
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
134
|
-
delete_notifications_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): delete_one
|
|
135
|
-
}
|
|
136
|
-
`)])]),e("h5",{id:"example-13"},[s("Example "),e("a",{class:"header-anchor",href:"#example-13"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
137
|
-
delete_notifications_item(id: `),e("span",{class:"hljs-number"},"32"),s(`) {
|
|
138
|
-
id
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
`)])])])],-1),is=e("hr",null,null,-1),ls=e("h2",{id:"delete-multiple-notifications"},[s("Delete Multiple Notifications "),e("a",{class:"header-anchor",href:"#delete-multiple-notifications"},"#")],-1),os=e("p",null,"Delete multiple existing notifications.",-1),cs=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"request-body-5"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-5"},"#")]),e("p",null,"An array of notification primary keys"),e("h3",{id:"returns-8"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-8"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-8"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),e("pre",null,[e("code",{class:""},`DELETE /notifications
|
|
142
|
-
`)]),e("h5",{id:"example-14"},[s("Example "),e("a",{class:"header-anchor",href:"#example-14"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// DELETE /notifications"),s(`
|
|
143
|
-
[`),e("span",{class:"hljs-number"},"15"),s(", "),e("span",{class:"hljs-number"},"251"),s(", "),e("span",{class:"hljs-number"},"810"),s(`]
|
|
144
|
-
`)])]),e("h3",{id:"graphql-8"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-8"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
|
|
145
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
146
|
-
delete_notifications_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!): delete_many
|
|
147
|
-
}
|
|
148
|
-
`)])]),e("h5",{id:"example-15"},[s("Example "),e("a",{class:"header-anchor",href:"#example-15"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
149
|
-
delete_notifications_items(ids: [`),e("span",{class:"hljs-number"},"15"),s(", "),e("span",{class:"hljs-number"},"251"),s(", "),e("span",{class:"hljs-number"},"810"),s(`]) {
|
|
150
|
-
ids
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`)])])])],-1),rs={title:"Notifications",modularExtension:!1,pageClass:"page-reference"},hs={name:"notifications",setup(ds,{expose:o}){return o({frontmatter:{title:"Notifications",modularExtension:!1,pageClass:"page-reference"}}),(ps,us)=>{const a=i("router-link"),c=i("docswrapper");return r(),h(c,{frontmatter:rs},{default:t(()=>[e("div",d,[p,u,f,_,m,g,j,e("div",y,[e("div",b,[q,e("p",null,[x,n(a,{to:"/docs/reference/query"},{default:t(()=>[v]),_:1}),E]),w,e("p",null,[T,n(a,{to:"/docs/reference/query/#limit"},{default:t(()=>[k]),_:1}),P,R,S])]),e("div",N,[A,C,e("p",null,[n(a,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[L]),_:1})]),D,O,Q,I,H])]),B,M,G,e("div",U,[e("div",Y,[V,e("p",null,[F,n(a,{to:"/docs/reference/query"},{default:t(()=>[W]),_:1}),Z]),z,J]),K]),X,$,ee,e("div",se,[e("div",te,[ae,e("p",null,[ne,n(a,{to:"/docs/reference/query"},{default:t(()=>[ie]),_:1}),le]),oe,ce,re,he]),de]),pe,ue,fe,e("div",_e,[e("div",me,[ge,e("p",null,[je,n(a,{to:"/docs/reference/query"},{default:t(()=>[ye]),_:1}),be]),qe,xe,ve,Ee]),we]),Te,ke,Pe,Re,e("div",Se,[e("div",Ne,[Ae,e("p",null,[Ce,n(a,{to:"/docs/reference/query"},{default:t(()=>[Le]),_:1}),De]),Oe,Qe,Ie,He]),Be]),Me,Ge,Ue,e("div",Ye,[e("div",Ve,[Fe,e("p",null,[We,n(a,{to:"/docs/reference/query"},{default:t(()=>[Ze]),_:1}),ze]),Je,Ke,Xe,$e]),es]),ss,ts,as,ns,is,ls,os,cs])]),_:1})}}};typeof l=="function"&&l(hs);export{hs as default,rs as frontmatter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n,o as l,b as r,w as o,g as t,e as a,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";var c={};const u={class:"markdown-body"},_=t("blockquote",null,[t("p",null,"Whether you\u2019re a hobbyist, startup or Fortune 500 enterprise, our flexible Cloud service lets you get up and running with Directus quickly. We do all the heavy lifting of managing your infrastructure and software updates - and you also benefit from fair and predictable usage-based pricing.")],-1),h=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/cloud/overview/overview-20220322A/hero-image-20220402A.webp",alt:"Hero Image"})],-1),m=t("p",null,[t("div",{class:"table-of-contents"},[t("ul",null,[t("li",null,[t("a",{href:"#getting-started"},"Getting Started")]),t("li",null,[t("a",{href:"#accounts"},"Accounts")]),t("li",null,[t("a",{href:"#teams"},"Teams")]),t("li",null,[t("a",{href:"#projects"},"Projects")])])])],-1),p=t("a",{href:"https://directus.cloud/",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud",-1),g=e(" is a hosting platform for "),f=e("Directus Projects"),v=e(" which handles data storage, hosting, updates and scalability so you can focus on building your digital apps and experiences. There are three "),y=e("tiers of Cloud Projects"),b=e(": Community, Standard and Enterprise. All three tiers come with all the great features of Directus Core, as well as all "),T=e("Cloud Exclusive"),w=e(" extensions."),j=e("The Cloud Dashboard is constructed to manage three key components: "),P=e("Accounts"),A=e(", "),C=e("Teams"),x=e(" and "),k=e("Projects"),D=e(". First, create an Account. Once logged in, create or join a Team, and your Account will become a Member of that Team. Once that\u2019s complete, you can create Projects within a Team."),M=e("Accounts can be Members on multiple Teams. All Team Members have SuperAdmin privileges to manage the Team\u2019s Projects, Project "),S=e("billing"),V=e(", other Team Members and the Team itself. Teams can have multiple Team Members and multiple Projects. Projects can only be managed by one Team and cannot be transferred to new Teams."),O=t("h2",{id:"getting-started"},[e("Getting Started "),t("a",{class:"header-anchor",href:"#getting-started"},"#")],-1),B=e("To make life easy, you have the option to "),E=e("create and login to your free Cloud Account"),H=e(" automatically with GitHub. If you don\u2019t have a GitHub account or prefer not to use this login method, email-and-password login is available, as well. Once logged in, create a new Team or select an existing Team. Then you can access and manage the Team\u2019s associated Projects, billing details, Team Members, Activity and Settings."),N=t("video",{alt:"Cloud Dashboard Overview",loop:"",muted:"",controls:"",autoplay:""},[t("source",{src:"https://cdn.directus.io/docs/v9/cloud/overview/overview-20220322A/cloud-dashboard-overview-20220329A.mp4",type:"video/mp4"})],-1),G=e("Remember: The Dashboard layout itself is designed to manage "),q=e("Accounts"),F=e(", "),I=e("Teams"),R=e(" and "),W=e("Projects"),z=e(". Here\u2019s how the Dashboard layout relates to each of these components:"),J=t("h2",{id:"accounts"},[e("Accounts "),t("a",{class:"header-anchor",href:"#accounts"},"#")],-1),K=t("h3",{id:"cloud-dashboard-header"},[e("Cloud Dashboard Header "),t("a",{class:"header-anchor",href:"#cloud-dashboard-header"},"#")],-1),L=t("span",{mi:"",icon:""},"check",-1),Q=e(" \u2014 View Directus Cloud "),U=e("system status"),X=e("."),Y=t("li",null,[t("span",{mi:"",icon:""},"notifications"),e(" \u2014 Notifications such as version upgrades, platform upgrades, etc.")],-1),Z=t("li",null,[t("span",{mi:"",icon:""},"help_outline"),e(" \u2014 Documentation, Community Support and Request for Premium Support.")],-1),$=t("span",{mi:"",icon:""},"expand_more",-1),ee=e(" \u2014 "),te=e("Create new Teams"),oe=e(" and navigate between Teams you are on."),se=t("span",{mi:"",icon:""},"account_circle",-1),ae=e(" \u2014 "),ne=e("Access, edit or destroy Account"),ce=e("."),ie=t("h2",{id:"teams"},[e("Teams "),t("a",{class:"header-anchor",href:"#teams"},"#")],-1),de=e("Team Members"),le=e(" \u2014 View, invite and remove other Team Members or leave a Team."),re=e("Team Activity"),ue=e(" \u2014 View Team activity such as Project creation and deletion, billing information changes, Member invitations and removals, etc."),_e=e("Team Settings"),he=e(" \u2014 Edit the Team Name and Team Slug, as well as "),me=e("destroy a Team"),pe=e("."),ge=t("h2",{id:"projects"},[e("Projects "),t("a",{class:"header-anchor",href:"#projects"},"#")],-1),fe=e("Team Projects"),ve=e(" \u2014 View and access all Projects managed within a Team. Click a Project to enter the Product Details Page and access, monitor, edit or delete a Project."),ye=e("Team Billing"),be=e(" \u2014 View and manage billing details such as credit card information, usage, subscriptions and receipts."),Te={title:"Overview",modularExtension:!1},we={name:"overview",setup(je,{expose:i}){return i({frontmatter:{title:"Overview",modularExtension:!1}}),(Pe,Ae)=>{const s=n("router-link"),d=n("docswrapper");return l(),r(d,{frontmatter:Te},{default:o(()=>[t("div",u,[_,h,m,t("p",null,[p,g,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[f]),_:1}),v,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[y]),_:1}),b,a(s,{to:"/docs/cloud/glossary/#cloud-exclusives"},{default:o(()=>[T]),_:1}),w]),t("p",null,[j,a(s,{to:"/docs/cloud/glossary/#accounts"},{default:o(()=>[P]),_:1}),A,a(s,{to:"/docs/cloud/glossary/#teams"},{default:o(()=>[C]),_:1}),x,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[k]),_:1}),D]),t("p",null,[M,a(s,{to:"/docs/cloud/teams/#manage-billing"},{default:o(()=>[S]),_:1}),V]),O,t("p",null,[B,a(s,{to:"/docs/cloud/accounts/#create-account-and-login"},{default:o(()=>[E]),_:1}),H]),N,t("p",null,[G,a(s,{to:"/docs/cloud/glossary/#accounts"},{default:o(()=>[q]),_:1}),F,a(s,{to:"/docs/cloud/glossary/#teams"},{default:o(()=>[I]),_:1}),R,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[W]),_:1}),z]),J,K,t("ul",null,[t("li",null,[L,Q,a(s,{to:"/docs/cloud/glossary/#system-status"},{default:o(()=>[U]),_:1}),X]),Y,Z,t("li",null,[$,ee,a(s,{to:"/docs/cloud/teams/#create-a-team"},{default:o(()=>[te]),_:1}),oe]),t("li",null,[se,ae,a(s,{to:"/docs/cloud/accounts"},{default:o(()=>[ne]),_:1}),ce])]),ie,t("ul",null,[t("li",null,[a(s,{to:"/docs/cloud/teams"},{default:o(()=>[de]),_:1}),le]),t("li",null,[a(s,{to:"/docs/cloud/teams/#view-team-activity"},{default:o(()=>[re]),_:1}),ue]),t("li",null,[a(s,{to:"/docs/cloud/teams/#update-team-settings"},{default:o(()=>[_e]),_:1}),he,a(s,{to:"/docs/cloud/teams/#destroy-a-team"},{default:o(()=>[me]),_:1}),pe])]),ge,t("ul",null,[t("li",null,[a(s,{to:"/docs/cloud/projects"},{default:o(()=>[fe]),_:1}),ve]),t("li",null,[a(s,{to:"/docs/cloud/teams/#manage-billing"},{default:o(()=>[ye]),_:1}),be])])])]),_:1})}}};typeof c=="function"&&c(we);export{we as default,Te as frontmatter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i,o as c,b as d,w as o,g as t,e as s,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";var u="assets/app-overview.6445a201.svg";var a={};const h={class:"markdown-body"},p=t("blockquote",null,[t("p",null,"The App is a no-code presentation layer for your data, content, and assets. It uses an intuitive left-to-right visual hierarchy for general organization and navigation.")],-1),_=t("img",{src:u,alt:"Directus Application Overview",class:"no-shadow"},null,-1),g=t("h2",{id:"1.-module-bar"},[e("1. Module Bar "),t("a",{class:"header-anchor",href:"#1.-module-bar"},"#")],-1),f=t("p",null,"The leftmost section of the App is the module bar, which includes the:",-1),m=t("li",null,[t("strong",null,"Project Logo"),e(" \u2014 Displays your configured project logo and project color (defaults to the Directus logo and color). If configured, clicking this component will navigate to the Project URL. During platform activity, an indeterminate progress indicator will also be shown here.")],-1),v=t("strong",null,"Module Navigation",-1),y=e(" \u2014 Allows navigating between the different modules your user has access to. Customizing the Module Navigation is done within the "),b=e("Project Settings"),w=e(", but the default module list includes: "),k=e("Content"),A=e(" \u2014 The primary way to view and interact with database content"),T=e("User Directory"),x=e(" \u2014 A dedicated section for the platform\u2019s system Users"),P=e("File Library"),N=e(" \u2014 An aggregate of all files uploaded and managed within the platform"),C=e("Insights"),j=e(" \u2014 Access to infinitely customizable data dashboards"),B=e("App Guide"),I=e(" \u2014 A tailored, in-app portal for the platform\u2019s concepts, guides, and reference"),S=e("Settings"),D=e(" \u2014 An admin-only section for configuring the project and system settings"),M=t("strong",null,"Notifications",-1),L=e(" - Opens a drawer of notifications, such as from "),U=e("mentions"),z=e("."),O=t("li",null,[t("strong",null,"Current User Menu"),e(" \u2014 This component displays the authenticated user\u2019s name and avatar. "),t("ul",null,[t("li",null,"Sign Out \u2014 Hovering over the User Menu exposes the button to log out of the platform.")])],-1),V=t("h2",{id:"2.-navigation-bar"},[e("2. Navigation Bar "),t("a",{class:"header-anchor",href:"#2.-navigation-bar"},"#")],-1),E=t("p",null,"The navigation bar is based on the current module, and includes:",-1),F=t("strong",null,"Project Name",-1),H=e(" \u2014 Shows an icon and tooltip indicating the API\u2019s connection strength, and the name of your current project, which can be configured under "),R=e("Project Settings"),q=e("."),G=t("strong",null,"Navigation",-1),X=e(" \u2014 This is a dynamic navigation based on your current module. Some modules also support "),J=e("Bookmark Presets"),K=e(", which are a customizable links to specific data-sets."),Q=t("h2",{id:"3.-page"},[e("3. Page "),t("a",{class:"header-anchor",href:"#3.-page"},"#")],-1),W=t("p",null,"This is where the current page\u2019s content is shown, including:",-1),Y=t("ul",null,[t("li",null,[t("strong",null,"Header"),e(" \u2014 A fixed section at the top of each page, the header includes: "),t("ul",null,[t("li",null,"Page Icon \u2014 Clicking this navigates back to the previous page."),t("li",null,"Module Name \u2014 Clicking this navigates to the parent module/section."),t("li",null,"Page Title \u2014 Displays dynamic title of the current page."),t("li",null,"Action Buttons \u2014 Right-aligned contextual buttons for specific page actions.")])]),t("li",null,[t("strong",null,"Page Content"),e(" \u2014 This displays the content of the page you navigated to.")])],-1),Z=t("h2",{id:"4.-sidebar"},[e("4. Sidebar "),t("a",{class:"header-anchor",href:"#4.-sidebar"},"#")],-1),$=t("p",null,"The sidebar provides additional context and options for the current page, including:",-1),tt=t("ul",null,[t("li",null,[t("strong",null,"Page Components"),e(" \u2014 Lists any contextual page components available. The \u201CInfo\u201D component is available on every page, explaining the page\u2019s general purpose and relevant details. Clicking any sidebar component will accordion it open. If the App window is large enough, the sidebar will automatically open, and can be closed by clicking the \u201CX\u201D in the top-right.")]),t("li",null,[t("strong",null,"Notifications Tray"),e(" \u2014 Fixed to the bottom of the page sidebar, this button opens a tray of recent user notifications, and provides a link to your Activity Log page.")])],-1),et={title:"The Application",modularExtension:!1},ot={name:"overview",setup(nt,{expose:l}){return l({frontmatter:{title:"The Application",modularExtension:!1}}),(st,it)=>{const n=i("router-link"),r=i("docswrapper");return c(),d(r,{frontmatter:et},{default:o(()=>[t("div",h,[p,_,g,f,t("ul",null,[m,t("li",null,[v,y,s(n,{to:"/docs/app/settings"},{default:o(()=>[b]),_:1}),w,t("ul",null,[t("li",null,[s(n,{to:"/docs/app/content-collections/"},{default:o(()=>[k]),_:1}),A]),t("li",null,[s(n,{to:"/docs/app/user-directory"},{default:o(()=>[T]),_:1}),x]),t("li",null,[s(n,{to:"/docs/app/file-library"},{default:o(()=>[P]),_:1}),N]),t("li",null,[s(n,{to:"/docs/app/insights"},{default:o(()=>[C]),_:1}),j]),t("li",null,[s(n,{to:"/docs/app/overview/"},{default:o(()=>[B]),_:1}),I]),t("li",null,[s(n,{to:"/docs/app/settings"},{default:o(()=>[S]),_:1}),D])])]),t("li",null,[M,L,s(n,{to:"/docs/app/content-items/#mentions"},{default:o(()=>[U]),_:1}),z]),O]),V,E,t("ul",null,[t("li",null,[F,H,s(n,{to:"/docs/app/settings"},{default:o(()=>[R]),_:1}),q]),t("li",null,[G,X,s(n,{to:"/docs/getting-started/glossary/#presets"},{default:o(()=>[J]),_:1}),K])]),Q,W,Y,Z,$,tt])]),_:1})}}};typeof a=="function"&&a(ot);export{ot as default,et as frontmatter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,o as r,b as s,w as i,g as o,B as c}from"./runtime-core.esm-bundler.b1f35d24.js";var t={};const l=o("div",{class:"markdown-body"},[o("blockquote",null,[o("p",null,"The vast flexibility of Directus is due to its thoughtful configuration options. This section guides administrators through the process of tailoring a newly installed project to your exact needs.")]),o("h2",{id:"config-options"},[c("Config Options "),o("a",{class:"header-anchor",href:"#config-options"},"#")])],-1),f={title:"Configuring the Platform",modularExtension:!1},u={name:"overview",setup(d,{expose:e}){return e({frontmatter:{title:"Configuring the Platform",modularExtension:!1}}),(p,_)=>{const n=a("docswrapper");return r(),s(n,{frontmatter:f},{default:i(()=>[l]),_:1})}}};typeof t=="function"&&t(u);export{u as default,f as frontmatter};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import{a as o,o as r,b as h,w as e,g as s,e as a,B as t}from"./runtime-core.esm-bundler.b1f35d24.js";var l={};const d={class:"markdown-body"},p=t("Panels are modular units of data visualization that exist within the "),u=t("Insights module"),_=t(". Each panel exists within a Dashboard and can be positioned and resized as needed. "),m=t("Learn more about Panels"),f=t("."),g=s("h2",{id:"extension-entrypoint"},[t("Extension Entrypoint "),s("a",{class:"header-anchor",href:"#extension-entrypoint"},"#")],-1),y=s("p",null,[t("The entrypoint of your panel is the "),s("code",{class:""},"index"),t(" file inside the "),s("code",{class:""},"src/"),t(" folder of your extension package. It exports a configuration object with options to configure the behavior of your panel. When loading your panel, this object is imported by the Directus host.")],-1),j=s("p",null,"Example of an entrypoint:",-1),b=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),t(" PanelComponent "),s("span",{class:"hljs-keyword"},"from"),t(),s("span",{class:"hljs-string"},"'./panel.vue'"),t(`;
|
|
2
|
-
|
|
3
|
-
`),s("span",{class:"hljs-keyword"},"export"),t(),s("span",{class:"hljs-keyword"},"default"),t(` {
|
|
4
|
-
`),s("span",{class:"hljs-attr"},"id"),t(": "),s("span",{class:"hljs-string"},"'custom'"),t(`,
|
|
5
|
-
`),s("span",{class:"hljs-attr"},"name"),t(": "),s("span",{class:"hljs-string"},"'Custom'"),t(`,
|
|
6
|
-
`),s("span",{class:"hljs-attr"},"icon"),t(": "),s("span",{class:"hljs-string"},"'box'"),t(`,
|
|
7
|
-
`),s("span",{class:"hljs-attr"},"description"),t(": "),s("span",{class:"hljs-string"},"'This is my custom panel!'"),t(`,
|
|
8
|
-
`),s("span",{class:"hljs-attr"},"component"),t(`: PanelComponent,
|
|
9
|
-
`),s("span",{class:"hljs-attr"},"options"),t(`: [
|
|
10
|
-
{
|
|
11
|
-
`),s("span",{class:"hljs-attr"},"field"),t(": "),s("span",{class:"hljs-string"},"'text'"),t(`,
|
|
12
|
-
`),s("span",{class:"hljs-attr"},"name"),t(": "),s("span",{class:"hljs-string"},"'Text'"),t(`,
|
|
13
|
-
`),s("span",{class:"hljs-attr"},"type"),t(": "),s("span",{class:"hljs-string"},"'string'"),t(`,
|
|
14
|
-
`),s("span",{class:"hljs-attr"},"meta"),t(`: {
|
|
15
|
-
`),s("span",{class:"hljs-attr"},"interface"),t(": "),s("span",{class:"hljs-string"},"'input'"),t(`,
|
|
16
|
-
`),s("span",{class:"hljs-attr"},"width"),t(": "),s("span",{class:"hljs-string"},"'full'"),t(`,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
`),s("span",{class:"hljs-attr"},"minWidth"),t(": "),s("span",{class:"hljs-number"},"12"),t(`,
|
|
21
|
-
`),s("span",{class:"hljs-attr"},"minHeight"),t(": "),s("span",{class:"hljs-number"},"8"),t(`,
|
|
22
|
-
};
|
|
23
|
-
`)])],-1),w=s("h4",{id:"available-options"},[t("Available Options "),s("a",{class:"header-anchor",href:"#available-options"},"#")],-1),x=s("li",null,[s("code",{class:""},"id"),t(" \u2014 The unique key for this panel. It is good practice to scope proprietary panels with an author prefix.")],-1),k=s("li",null,[s("code",{class:""},"name"),t(" \u2014 The human-readable name for this panel.")],-1),v=s("code",{class:""},"icon",-1),T=t(" \u2014 An icon name from the "),A=t("material icon set"),V=t(", or the extended list of Directus custom icons."),C=s("li",null,[s("code",{class:""},"description"),t(" \u2014 A short description (<80 characters) of this panel shown in the App.")],-1),P=s("li",null,[s("code",{class:""},"component"),t(" \u2014 A reference to your panel component.")],-1),I=s("li",null,[s("code",{class:""},"options"),t(" \u2014 The options of your panel. Can be either an options object or a dedicated Vue component.")],-1),S=s("li",null,[s("code",{class:""},"minWidth"),t(" - The minimum width in grid units of your panel on a dashboard.")],-1),D=s("li",null,[s("code",{class:""},"minHeight"),t(" - The minimum height in grid units of your panel on a dashboard.")],-1),E=s("h2",{id:"panel-component"},[t("Panel Component "),s("a",{class:"header-anchor",href:"#panel-component"},"#")],-1),B=s("p",null,"The panel component is the part of your extension that will be rendered by the Directus App whenever your panel should be used for data visualization in a dashboard within the Insights module. This panel component has to be Vue component. The most straightforward way to write a Vue component is to use the Vue Single File Component syntax.",-1),H=s("p",null,"Example of a panel component using the Vue SFC syntax:",-1),W=s("pre",null,[s("code",{class:"language-vue"},`<template>
|
|
24
|
-
<div class="text" :class="{ 'has-header': showHeader }">
|
|
25
|
-
{{ text }}
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script>
|
|
30
|
-
export default {
|
|
31
|
-
props: {
|
|
32
|
-
showHeader: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false,
|
|
35
|
-
},
|
|
36
|
-
text: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: '',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
<\/script>
|
|
43
|
-
|
|
44
|
-
<style scoped>
|
|
45
|
-
.text {
|
|
46
|
-
padding: 12px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.text.has-header {
|
|
50
|
-
padding: 0 12px;
|
|
51
|
-
}
|
|
52
|
-
</style>
|
|
53
|
-
`)],-1),z=s("h4",{id:"available-props"},[t("Available Props "),s("a",{class:"header-anchor",href:"#available-props"},"#")],-1),N=s("ul",null,[s("li",null,[s("code",{class:""},"showHeader"),t(),s("strong",null,"boolean"),t(" \u2014 Whether the header is shown. Useful for alternative styling based on the extra/reduced space.")]),s("li",null,[s("code",{class:""},"dashboard"),t(),s("strong",null,"uuid"),t(" - The UUID string of the dashboard containing the panel.")]),s("li",null,[s("code",{class:""},"height"),t(),s("strong",null,"number"),t(" - The current configured height of the panel.")]),s("li",null,[s("code",{class:""},"width"),t(),s("strong",null,"number"),t(" - The current configured width of the panel.")]),s("li",null,[s("code",{class:""},"now"),t(),s("strong",null,"Date"),t(" - The Date object as of the moment of viewing the dashboard containing the panel.")])],-1),O=s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Vue Version"),s("p",null,"The Directus App uses Vue 3. There might be 3rd party libraries that aren\u2019t yet compatible with Vue 3.")],-1),U=s("h2",{id:"accessing-internal-systems"},[t("Accessing Internal Systems "),s("a",{class:"header-anchor",href:"#accessing-internal-systems"},"#")],-1),q=s("p",null,[t("To access internal systems like the API or the stores, you can use the "),s("code",{class:""},"useApi()"),t(" and "),s("code",{class:""},"useStores()"),t(" composables exported by the "),s("code",{class:""},"@directus/extensions-sdk"),t(" package. They can be used inside a "),s("code",{class:""},"setup()"),t(" function like this:")],-1),F=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),t(" { useApi, useStores } "),s("span",{class:"hljs-keyword"},"from"),t(),s("span",{class:"hljs-string"},"'@directus/extensions-sdk'"),t(`;
|
|
54
|
-
|
|
55
|
-
`),s("span",{class:"hljs-keyword"},"export"),t(),s("span",{class:"hljs-keyword"},"default"),t(` {
|
|
56
|
-
`),s("span",{class:"hljs-function"},[s("span",{class:"hljs-title"},"setup"),t("("),s("span",{class:"hljs-params"}),t(")")]),t(` {
|
|
57
|
-
`),s("span",{class:"hljs-keyword"},"const"),t(` api = useApi();
|
|
58
|
-
|
|
59
|
-
`),s("span",{class:"hljs-keyword"},"const"),t(` { useCollectionsStore } = useStores();
|
|
60
|
-
`),s("span",{class:"hljs-keyword"},"const"),t(` collectionsStore = useCollectionsStore();
|
|
61
|
-
|
|
62
|
-
`),s("span",{class:"hljs-comment"},"// ..."),t(`
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
`)])],-1),L=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Vue Options API"),s("p",null,[t("If you prefer to use the Vue Options API, you can inject the "),s("code",{class:""},"api"),t(" and "),s("code",{class:""},"stores"),t(" properties directly.")])],-1),G={title:"Custom Panels",modularExtension:!0},J={name:"panels",setup(K,{expose:i}){return i({frontmatter:{title:"Custom Panels",modularExtension:!0}}),(M,Q)=>{const n=o("router-link"),c=o("docswrapper");return r(),h(c,{frontmatter:G},{default:e(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,a(n,{to:"/docs/app/insights"},{default:e(()=>[u]),_:1}),_,a(n,{to:"/docs/getting-started/glossary/#panels"},{default:e(()=>[m]),_:1}),f])]),g,y,j,b,w,s("ul",null,[x,k,s("li",null,[v,T,a(n,{to:"/docs/getting-started/glossary/#material-icons"},{default:e(()=>[A]),_:1}),V]),C,P,I,S,D]),E,B,H,W,z,N,O,U,q,F,L])]),_:1})}}};typeof l=="function"&&l(J);export{J as default,G as frontmatter};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import{a as n,o as c,b as h,w as t,g as s,e as l,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";var r={};const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=e("Permissions are assigned to Roles, and control data access throughout the platform. "),m=e("Learn more about Permissions"),g=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-permission-object"},"The Permission Object")]),s("li",null,[s("a",{href:"#list-permissions"},"List Permissions")]),s("li",null,[s("a",{href:"#retrieve-a-permission"},"Retrieve a Permission")]),s("li",null,[s("a",{href:"#create-a-permission-rule"},"Create a Permission Rule")]),s("li",null,[s("a",{href:"#create-multiple-permission-rules"},"Create Multiple Permission Rules")]),s("li",null,[s("a",{href:"#update-permissions"},"Update Permissions")]),s("li",null,[s("a",{href:"#update-multiple-permissions"},"Update Multiple Permissions")]),s("li",null,[s("a",{href:"#delete-permissions"},"Delete Permissions")]),s("li",null,[s("a",{href:"#delete-multiple-permissions"},"Delete Multiple Permissions")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-permission-object"},[e("The Permission Object "),s("a",{class:"header-anchor",href:"#the-permission-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},v=s("p",null,[s("code",{class:""},"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the permission rule.")],-1),P=s("code",{class:""},"role",-1),E=e(),R=s("strong",null,"many-to-one",-1),w=s("br",null,null,-1),T=e(" Role this permission applies to. Many-to-one to "),k=e("roles"),S=e(". "),A=s("code",{class:""},"null",-1),D=e(" is used for public permissions."),C=s("p",null,[s("code",{class:""},"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection this permission rule applies to.")],-1),L=s("p",null,[s("code",{class:""},"action"),e(),s("strong",null,"string"),s("br"),e(" What CRUD operation this permission rule applies to. One of "),s("code",{class:""},"create"),e(", "),s("code",{class:""},"read"),e(", "),s("code",{class:""},"update"),e(", "),s("code",{class:""},"delete"),e(".")],-1),Q=s("code",{class:""},"permissions",-1),I=e(),M=s("strong",null,"object",-1),O=s("br",null,null,-1),G=e(" What rules the item must pass before the role is allowed to alter it. Follows "),B=e("the Filter Rules spec"),U=e("."),H=s("code",{class:""},"validation",-1),F=e(),W=s("strong",null,"object",-1),N=s("br",null,null,-1),V=e(" What rules the provided values must pass before the role is allowed to submit them for insertion/update. Follows "),z=e("the Filter Rules spec"),J=e("."),K=s("p",null,[s("code",{class:""},"preset"),e(),s("strong",null,"object"),s("br"),e(" Additional default values for the role.")],-1),X=s("p",null,[s("code",{class:""},"fields"),e(),s("strong",null,"array"),s("br"),e(" What fields the user is allowed to alter.")],-1),Y=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
|
|
2
|
-
`),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"34"),e(`,
|
|
3
|
-
`),s("span",{class:"hljs-attr"},'"role"'),e(": "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`,
|
|
4
|
-
`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"pages"'),e(`,
|
|
5
|
-
`),s("span",{class:"hljs-attr"},'"action"'),e(": "),s("span",{class:"hljs-string"},'"create"'),e(`,
|
|
6
|
-
`),s("span",{class:"hljs-attr"},'"permissions"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`,
|
|
7
|
-
`),s("span",{class:"hljs-attr"},'"validation"'),e(`: {
|
|
8
|
-
`),s("span",{class:"hljs-attr"},'"title"'),e(`: {
|
|
9
|
-
`),s("span",{class:"hljs-attr"},'"_contains"'),e(": "),s("span",{class:"hljs-string"},'"Directus"'),e(`
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
`),s("span",{class:"hljs-attr"},'"presets"'),e(`: {
|
|
13
|
-
`),s("span",{class:"hljs-attr"},'"published"'),e(": "),s("span",{class:"hljs-literal"},"false"),e(`
|
|
14
|
-
},
|
|
15
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"title"'),e(", "),s("span",{class:"hljs-string"},'"translations"'),e(`]
|
|
16
|
-
}
|
|
17
|
-
`)])])],-1),Z=s("hr",null,null,-1),$=s("h2",{id:"list-permissions"},[e("List Permissions "),s("a",{class:"header-anchor",href:"#list-permissions"},"#")],-1),ss=s("p",null,"List all permissions that exist in Directus.",-1),es={class:"two-up"},ts={class:"left"},as=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, permissions for a role other than the current user\u2019s role won\u2019t be returned.")],-1),ls=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),ns=e("Supports all "),rs=e("global query parameters"),is=e("."),os=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),cs=e("An array of up to "),hs=e("limit"),ds=e(),ps=s("a",{href:"#the-permission-object"},"permission objects",-1),us=e(". If no items are available, data will be an empty array."),_s={class:"right"},ms=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),gs=s("pre",null,[s("code",{class:""},`GET /permissions
|
|
18
|
-
SEARCH /permissions
|
|
19
|
-
`)],-1),fs=e("Learn more about SEARCH ->"),js=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),ys=s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
20
|
-
`)],-1),bs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
21
|
-
permissions: directus_permissions
|
|
22
|
-
}
|
|
23
|
-
`)])],-1),qs=s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")],-1),xs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
24
|
-
permissions {
|
|
25
|
-
action
|
|
26
|
-
role
|
|
27
|
-
collection
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`)])],-1),vs=s("hr",null,null,-1),Ps=s("h2",{id:"retrieve-a-permission"},[e("Retrieve a Permission "),s("a",{class:"header-anchor",href:"#retrieve-a-permission"},"#")],-1),Es=s("p",null,"List an existing permission by primary key.",-1),Rs={class:"two-up"},ws={class:"left"},Ts=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),ks=e("Supports all "),Ss=e("global query parameters"),As=e("."),Ds=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),Cs=s("p",null,[e("Returns the requested "),s("a",{href:"#the-permission-object"},"permission object"),e(".")],-1),Ls=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",{class:""},`GET /permissions/:id
|
|
31
|
-
`)]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// GET /permissions/34"),e(`
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
`),s("span",{class:"hljs-attr"},'"data"'),e(`: {
|
|
35
|
-
`),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"34"),e(`,
|
|
36
|
-
`),s("span",{class:"hljs-attr"},'"role"'),e(": "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`,
|
|
37
|
-
`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"pages"'),e(`,
|
|
38
|
-
`),s("span",{class:"hljs-attr"},'"action"'),e(": "),s("span",{class:"hljs-string"},'"create"'),e(`,
|
|
39
|
-
`),s("span",{class:"hljs-attr"},'"permissions"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`,
|
|
40
|
-
`),s("span",{class:"hljs-attr"},'"validation"'),e(`: {
|
|
41
|
-
`),s("span",{class:"hljs-attr"},'"title"'),e(`: {
|
|
42
|
-
`),s("span",{class:"hljs-attr"},'"_contains"'),e(": "),s("span",{class:"hljs-string"},'"Directus"'),e(`
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
`),s("span",{class:"hljs-attr"},'"presets"'),e(`: {
|
|
46
|
-
`),s("span",{class:"hljs-attr"},'"published"'),e(": "),s("span",{class:"hljs-literal"},"false"),e(`
|
|
47
|
-
},
|
|
48
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"title"'),e(", "),s("span",{class:"hljs-string"},'"translations"'),e(`]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
`)])]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
52
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
53
|
-
permissions_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_permissions
|
|
54
|
-
}
|
|
55
|
-
`)])]),s("h5",{id:"example-3"},[e("Example "),s("a",{class:"header-anchor",href:"#example-3"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
56
|
-
permissions_by_id(id: `),s("span",{class:"hljs-number"},"34"),e(`) {
|
|
57
|
-
role
|
|
58
|
-
collection
|
|
59
|
-
action
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`)])])],-1),Qs=s("hr",null,null,-1),Is=s("h2",{id:"create-a-permission-rule"},[e("Create a Permission Rule "),s("a",{class:"header-anchor",href:"#create-a-permission-rule"},"#")],-1),Ms=s("p",null,"Create a new permission rule",-1),Os={class:"two-up"},Gs={class:"left"},Bs=s("h3",{id:"query-parameters-3"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Us=e("Supports all "),Hs=e("global query parameters"),Fs=e("."),Ws=s("h3",{id:"request-body"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Ns=s("p",null,[e("A partial "),s("a",{href:"#the-permission-object"},"permissions object"),e(". "),s("code",{class:""},"action"),e(" and "),s("code",{class:""},"collection"),e(" are required.")],-1),Vs=s("h3",{id:"returns-3"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),zs=s("p",null,[e("Returns the "),s("a",{href:"#the-permission-object"},"permission object"),e(" for the created permission.")],-1),Js=s("div",{class:"right"},[s("h3",{id:"rest-api-3"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),s("pre",null,[s("code",{class:""},`POST /permissions
|
|
63
|
-
`)]),s("h5",{id:"example-4"},[e("Example "),s("a",{class:"header-anchor",href:"#example-4"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// Request"),e(`
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"pages"'),e(`,
|
|
67
|
-
`),s("span",{class:"hljs-attr"},'"action"'),e(": "),s("span",{class:"hljs-string"},'"read"'),e(`,
|
|
68
|
-
`),s("span",{class:"hljs-attr"},'"role"'),e(": "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`,
|
|
69
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(`]
|
|
70
|
-
}
|
|
71
|
-
`)])]),s("h3",{id:"graphql-3"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-3"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
72
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
73
|
-
create_permissions_item(data: create_directus_permissions_input!): directus_permissions
|
|
74
|
-
}
|
|
75
|
-
`)])]),s("h5",{id:"example-5"},[e("Example "),s("a",{class:"header-anchor",href:"#example-5"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
|
|
76
|
-
create_permissions_item(
|
|
77
|
-
data: { collection: `),s("span",{class:"hljs-string"},'"pages"'),e(", action: "),s("span",{class:"hljs-string"},'"read"'),e(", role: "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(", fields: ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(`] }
|
|
78
|
-
) {
|
|
79
|
-
id
|
|
80
|
-
collection
|
|
81
|
-
action
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
`)])])],-1),Ks=s("hr",null,null,-1),Xs=s("h2",{id:"create-multiple-permission-rules"},[e("Create Multiple Permission Rules "),s("a",{class:"header-anchor",href:"#create-multiple-permission-rules"},"#")],-1),Ys=s("p",null,"Create multiple new permission rules",-1),Zs={class:"two-up"},$s={class:"left"},se=s("h3",{id:"query-parameters-4"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),ee=e("Supports all "),te=e("global query parameters"),ae=e("."),le=s("h3",{id:"request-body-2"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),ne=s("p",null,[e("An array of partial "),s("a",{href:"#the-permission-object"},"permissions objects"),e(". "),s("code",{class:""},"action"),e(" and "),s("code",{class:""},"collection"),e(" are required.")],-1),re=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),ie=s("p",null,[e("Returns the "),s("a",{href:"#the-permission-object"},"permission objects"),e(" for the created permissions.")],-1),oe=s("div",{class:"right"},[s("h3",{id:"rest-api-4"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),s("pre",null,[s("code",{class:""},`POST /permissions
|
|
85
|
-
`)]),s("h5",{id:"example-6"},[e("Example "),s("a",{class:"header-anchor",href:"#example-6"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// Request"),e(`
|
|
86
|
-
|
|
87
|
-
[
|
|
88
|
-
{
|
|
89
|
-
`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"pages"'),e(`,
|
|
90
|
-
`),s("span",{class:"hljs-attr"},'"action"'),e(": "),s("span",{class:"hljs-string"},'"read"'),e(`,
|
|
91
|
-
`),s("span",{class:"hljs-attr"},'"role"'),e(": "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`,
|
|
92
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(`]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"pages"'),e(`,
|
|
96
|
-
`),s("span",{class:"hljs-attr"},'"action"'),e(": "),s("span",{class:"hljs-string"},'"create"'),e(`,
|
|
97
|
-
`),s("span",{class:"hljs-attr"},'"role"'),e(": "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`,
|
|
98
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(`]
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
`)])]),s("h3",{id:"graphql-4"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
102
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
103
|
-
create_permissions_items(data: [create_directus_permissions_input!]!): [directus_permissions]
|
|
104
|
-
}
|
|
105
|
-
`)])]),s("h5",{id:"example-7"},[e("Example "),s("a",{class:"header-anchor",href:"#example-7"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
|
|
106
|
-
create_permissions_items(
|
|
107
|
-
data: [
|
|
108
|
-
{ collection: `),s("span",{class:"hljs-string"},'"pages"'),e(", action: "),s("span",{class:"hljs-string"},'"read"'),e(", role: "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(", fields: ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(`] }
|
|
109
|
-
{ collection: `),s("span",{class:"hljs-string"},'"pages"'),e(", action: "),s("span",{class:"hljs-string"},'"create"'),e(", role: "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(", fields: ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(`] }
|
|
110
|
-
]
|
|
111
|
-
) {
|
|
112
|
-
id
|
|
113
|
-
collection
|
|
114
|
-
action
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
`)])])],-1),ce=s("hr",null,null,-1),he=s("h2",{id:"update-permissions"},[e("Update Permissions "),s("a",{class:"header-anchor",href:"#update-permissions"},"#")],-1),de=s("p",null,"Update an existing permissions rule.",-1),pe={class:"two-up"},ue={class:"left"},_e=s("h3",{id:"query-parameters-5"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),me=e("Supports all "),ge=e("global query parameters"),fe=e("."),je=s("h3",{id:"request-body-3"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),ye=s("p",null,[e("A partial "),s("a",{href:"#the-permission-object"},"permissions object"),e(".")],-1),be=s("h3",{id:"returns-5"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),qe=s("p",null,[e("Returns the "),s("a",{href:"#the-permission-object"},"permission object"),e(" for the updated permission.")],-1),xe=s("div",{class:"right"},[s("h3",{id:"rest-api-5"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),s("pre",null,[s("code",{class:""},`PATCH /permissions/:id
|
|
118
|
-
`)]),s("h5",{id:"example-8"},[e("Example "),s("a",{class:"header-anchor",href:"#example-8"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /permissions/34"),e(`
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(", "),s("span",{class:"hljs-string"},'"body"'),e(`]
|
|
122
|
-
}
|
|
123
|
-
`)])]),s("h3",{id:"graphql-5"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-5"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
124
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
125
|
-
update_permissions_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_permissions_input!): directus_permissions
|
|
126
|
-
}
|
|
127
|
-
`)])]),s("h5",{id:"example-9"},[e("Example "),s("a",{class:"header-anchor",href:"#example-9"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
|
|
128
|
-
update_permissions_item(id: `),s("span",{class:"hljs-number"},"34"),e(", data: { fields: ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(", "),s("span",{class:"hljs-string"},'"body"'),e(`] }) {
|
|
129
|
-
id
|
|
130
|
-
action
|
|
131
|
-
collection
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
`)])])],-1),ve=s("hr",null,null,-1),Pe=s("h2",{id:"update-multiple-permissions"},[e("Update Multiple Permissions "),s("a",{class:"header-anchor",href:"#update-multiple-permissions"},"#")],-1),Ee=s("p",null,"Update multiple existing permissions rules.",-1),Re={class:"two-up"},we={class:"left"},Te=s("h3",{id:"query-parameters-6"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),ke=e("Supports all "),Se=e("global query parameters"),Ae=e("."),De=s("h3",{id:"request-body-4"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),Ce=s("h3",{id:"request-body-5"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-5"},"#")],-1),Le=s("div",{class:"definitions"},[s("p",null,[s("code",{class:""},"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the permissions you\u2019d like to update.")]),s("p",null,[s("code",{class:""},"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-permission-object"},"the permission object"),e("\u2019s properties.")])],-1),Qe=s("h3",{id:"returns-6"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),Ie=s("p",null,[e("Returns the "),s("a",{href:"#the-permission-object"},"permission object"),e(" for the updated permissions.")],-1),Me=s("div",{class:"right"},[s("h3",{id:"rest-api-6"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),s("pre",null,[s("code",{class:""},`PATCH /permissions
|
|
135
|
-
`)]),s("h5",{id:"example-10"},[e("Example "),s("a",{class:"header-anchor",href:"#example-10"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /permissions"),e(`
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
`),s("span",{class:"hljs-attr"},'"keys"'),e(": ["),s("span",{class:"hljs-number"},"34"),e(", "),s("span",{class:"hljs-number"},"65"),e(`],
|
|
139
|
-
`),s("span",{class:"hljs-attr"},'"data"'),e(`: {
|
|
140
|
-
`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(", "),s("span",{class:"hljs-string"},'"body"'),e(`]
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
`)])]),s("h3",{id:"graphql-6"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-6"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
144
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
145
|
-
update_permissions_items(id: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_permissions_input!): [directus_permissions]
|
|
146
|
-
}
|
|
147
|
-
`)])]),s("h5",{id:"example-11"},[e("Example "),s("a",{class:"header-anchor",href:"#example-11"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
|
|
148
|
-
update_permissions_items(ids: [`),s("span",{class:"hljs-number"},"34"),e(", "),s("span",{class:"hljs-number"},"64"),e("], data: { fields: ["),s("span",{class:"hljs-string"},'"id"'),e(", "),s("span",{class:"hljs-string"},'"title"'),e(", "),s("span",{class:"hljs-string"},'"body"'),e(`] }) {
|
|
149
|
-
id
|
|
150
|
-
action
|
|
151
|
-
collection
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
`)])])],-1),Oe=s("hr",null,null,-1),Ge=s("h2",{id:"delete-permissions"},[e("Delete Permissions "),s("a",{class:"header-anchor",href:"#delete-permissions"},"#")],-1),Be=s("p",null,"Delete an existing permissions rule",-1),Ue=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-7"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-7"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-7"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /permissions/:id
|
|
155
|
-
`)]),s("h5",{id:"example-12"},[e("Example "),s("a",{class:"header-anchor",href:"#example-12"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /permissions/34
|
|
156
|
-
`)]),s("h3",{id:"graphql-7"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-7"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
157
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
158
|
-
delete_permissions_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): delete_one
|
|
159
|
-
}
|
|
160
|
-
`)])]),s("h5",{id:"example-13"},[e("Example "),s("a",{class:"header-anchor",href:"#example-13"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
|
|
161
|
-
delete_permissions_item(id: `),s("span",{class:"hljs-number"},"34"),e(`) {
|
|
162
|
-
id
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
`)])])])],-1),He=s("hr",null,null,-1),Fe=s("h2",{id:"delete-multiple-permissions"},[e("Delete Multiple Permissions "),s("a",{class:"header-anchor",href:"#delete-multiple-permissions"},"#")],-1),We=s("p",null,"Delete multiple existing permissions rules",-1),Ne=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-6"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-6"},"#")]),s("p",null,"An array of permission primary keys"),s("h3",{id:"returns-8"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-8"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-8"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /permissions
|
|
166
|
-
`)]),s("h5",{id:"example-14"},[e("Example "),s("a",{class:"header-anchor",href:"#example-14"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /permissions"),e(`
|
|
167
|
-
|
|
168
|
-
[`),s("span",{class:"hljs-number"},"34"),e(", "),s("span",{class:"hljs-number"},"64"),e(`]
|
|
169
|
-
`)])]),s("h3",{id:"graphql-8"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-8"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
170
|
-
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
171
|
-
delete_permissions_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
|
|
172
|
-
}
|
|
173
|
-
`)])]),s("h5",{id:"example-15"},[e("Example "),s("a",{class:"header-anchor",href:"#example-15"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
|
|
174
|
-
delete_permissions_items(ids: [`),s("span",{class:"hljs-number"},"34"),e(", "),s("span",{class:"hljs-number"},"64"),e(`]) {
|
|
175
|
-
ids
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
`)])])])],-1),Ve=s("hr",null,null,-1),ze={title:"Permissions",modularExtension:!1,pageClass:"page-reference"},Je={name:"permissions",setup(Ke,{expose:i}){return i({frontmatter:{title:"Permissions",modularExtension:!1,pageClass:"page-reference"}}),(Xe,Ye)=>{const a=n("router-link"),o=n("docswrapper");return c(),h(o,{frontmatter:ze},{default:t(()=>[s("div",d,[s("div",p,[s("div",u,[s("blockquote",null,[s("p",null,[_,l(a,{to:"/docs/getting-started/glossary/#permissions"},{default:t(()=>[m]),_:1}),g])])]),f]),j,y,s("div",b,[s("div",q,[s("div",x,[v,s("p",null,[P,E,R,w,T,l(a,{to:"/docs/reference/system/roles/"},{default:t(()=>[k]),_:1}),S,A,D]),C,L,s("p",null,[Q,I,M,O,G,l(a,{to:"/docs/configuration/filter-rules"},{default:t(()=>[B]),_:1}),U]),s("p",null,[H,F,W,N,V,l(a,{to:"/docs/configuration/filter-rules"},{default:t(()=>[z]),_:1}),J]),K,X])]),Y]),Z,$,ss,s("div",es,[s("div",ts,[as,ls,s("p",null,[ns,l(a,{to:"/docs/reference/query"},{default:t(()=>[rs]),_:1}),is]),os,s("p",null,[cs,l(a,{to:"/docs/reference/query/#limit"},{default:t(()=>[hs]),_:1}),ds,ps,us])]),s("div",_s,[ms,gs,s("p",null,[l(a,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[fs]),_:1})]),js,ys,bs,qs,xs])]),vs,Ps,Es,s("div",Rs,[s("div",ws,[Ts,s("p",null,[ks,l(a,{to:"/docs/reference/query"},{default:t(()=>[Ss]),_:1}),As]),Ds,Cs]),Ls]),Qs,Is,Ms,s("div",Os,[s("div",Gs,[Bs,s("p",null,[Us,l(a,{to:"/docs/reference/query"},{default:t(()=>[Hs]),_:1}),Fs]),Ws,Ns,Vs,zs]),Js]),Ks,Xs,Ys,s("div",Zs,[s("div",$s,[se,s("p",null,[ee,l(a,{to:"/docs/reference/query"},{default:t(()=>[te]),_:1}),ae]),le,ne,re,ie]),oe]),ce,he,de,s("div",pe,[s("div",ue,[_e,s("p",null,[me,l(a,{to:"/docs/reference/query"},{default:t(()=>[ge]),_:1}),fe]),je,ye,be,qe]),xe]),ve,Pe,Ee,s("div",Re,[s("div",we,[Te,s("p",null,[ke,l(a,{to:"/docs/reference/query"},{default:t(()=>[Se]),_:1}),Ae]),De,Ce,Le,Qe,Ie]),Me]),Oe,Ge,Be,Ue,He,Fe,We,Ne,Ve])]),_:1})}}};typeof r=="function"&&r(Je);export{Je as default,ze as frontmatter};
|