@directus/app 9.12.2 → 9.14.1

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.
Files changed (405) hide show
  1. package/dist/assets/accounts.40ab36c1.js +1 -0
  2. package/dist/assets/{active-line.ff3bc705.js → active-line.b531d8e7.js} +1 -1
  3. package/dist/assets/activity-log.9449feec.js +1 -0
  4. package/dist/assets/activity.fbd319d5.js +80 -0
  5. package/dist/assets/{apl.cc4825c6.js → apl.091e05c0.js} +1 -1
  6. package/dist/assets/ar-SA.215069dc.js +1 -0
  7. package/dist/assets/architecture.9e90b6f3.js +1 -0
  8. package/dist/assets/{asciiarmor.30bbdfc8.js → asciiarmor.72b1d474.js} +1 -1
  9. package/dist/assets/{asn.1.499e838e.js → asn.1.64b438d1.js} +1 -1
  10. package/dist/assets/{asterisk.a2fa7dc3.js → asterisk.2d23826f.js} +1 -1
  11. package/dist/assets/authentication.bc20bce5.js +73 -0
  12. package/dist/assets/{autorefresh.d36f34c8.js → autorefresh.65071be2.js} +1 -1
  13. package/dist/assets/aws.6652a1fd.js +1 -0
  14. package/dist/assets/backing-directus.02c28d29.js +1 -0
  15. package/dist/assets/bg-BG.9288ea83.js +1 -0
  16. package/dist/assets/bn-IN.4127b7a4.js +1 -0
  17. package/dist/assets/{br-FR.1ad76918.js → br-FR.d3564938.js} +1 -1
  18. package/dist/assets/{brainfuck.dab31c46.js → brainfuck.cb084ebc.js} +1 -1
  19. package/dist/assets/{ca-ES.365a1fc4.js → ca-ES.f3dfdef6.js} +1 -1
  20. package/dist/assets/cli.6e61515e.js +19 -0
  21. package/dist/assets/cli.863ef0d2.js +4 -0
  22. package/dist/assets/{clike.7aacd908.js → clike.c67024f2.js} +1 -1
  23. package/dist/assets/{clojure.c8d9937a.js → clojure.4409f83f.js} +1 -1
  24. package/dist/assets/cloudron.a348537b.js +1 -0
  25. package/dist/assets/{cmake.e0408576.js → cmake.2f7d66e8.js} +1 -1
  26. package/dist/assets/{cobol.86241640.js → cobol.1d3d945c.js} +1 -1
  27. package/dist/assets/codebase-overview.b46635f9.js +1 -0
  28. package/dist/assets/{coffeescript.6090d9e8.js → coffeescript.7dbfeb38.js} +1 -1
  29. package/dist/assets/collections.60e4b448.js +2 -0
  30. package/dist/assets/collections.80e4a52c.js +106 -0
  31. package/dist/assets/{commonlisp.eb3c5619.js → commonlisp.79d346a3.js} +1 -1
  32. package/dist/assets/config-options.8e2d8e17.js +138 -0
  33. package/dist/assets/content.003d7d7c.js +1 -0
  34. package/dist/assets/creating-extensions.9a98925a.js +11 -0
  35. package/dist/assets/{crystal.01db8e68.js → crystal.6f97295f.js} +1 -1
  36. package/dist/assets/cs-CZ.a3c83b73.js +1 -0
  37. package/dist/assets/{css.b1894218.js → css.87d5fc8d.js} +1 -1
  38. package/dist/assets/{cypher.c0cbf899.js → cypher.b46e268d.js} +1 -1
  39. package/dist/assets/{d.54d4201d.js → d.0277a0cc.js} +1 -1
  40. package/dist/assets/{da-DK.88f53a7d.js → da-DK.3c379038.js} +1 -1
  41. package/dist/assets/{dart.2218881c.js → dart.fd756766.js} +1 -1
  42. package/dist/assets/data-model.086edd1e.js +1 -0
  43. package/dist/assets/data-sharing.27afa5ee.js +1 -0
  44. package/dist/assets/de-DE.350023db.js +1 -0
  45. package/dist/assets/{diff.d7f03886.js → diff.1ed63843.js} +1 -1
  46. package/dist/assets/digitalocean-app-platform.aff2a50b.js +3 -0
  47. package/dist/assets/display-templates.d8e93a19.js +1 -0
  48. package/dist/assets/displays.e528abde.js +49 -0
  49. package/dist/assets/{django.913379d3.js → django.afa30018.js} +1 -1
  50. package/dist/assets/{docker.e1bb4205.js → docker.6f265c46.js} +7 -7
  51. package/dist/assets/{dockerfile.9c7cf88b.js → dockerfile.91c6378e.js} +1 -1
  52. package/dist/assets/documentation.ad1fdaf2.js +1 -0
  53. package/dist/assets/{dtd.dbc97bdb.js → dtd.8b391952.js} +1 -1
  54. package/dist/assets/{dylan.0c2df43b.js → dylan.5532ec69.js} +1 -1
  55. package/dist/assets/{ebnf.4c778620.js → ebnf.f179e348.js} +1 -1
  56. package/dist/assets/{ecl.778611ac.js → ecl.a37bdc2f.js} +1 -1
  57. package/dist/assets/{eiffel.2a73cd14.js → eiffel.883e1bfb.js} +1 -1
  58. package/dist/assets/{el-GR.98199dde.js → el-GR.103ebf8d.js} +1 -1
  59. package/dist/assets/{elm.90002323.js → elm.c40484aa.js} +1 -1
  60. package/dist/assets/email-templates.2bdb87a6.js +2 -0
  61. package/dist/assets/{en-CA.58d818b8.js → en-CA.9ad3a3ab.js} +1 -1
  62. package/dist/assets/{en-GB.74320d21.js → en-GB.c55341c7.js} +1 -1
  63. package/dist/assets/endpoints.2c9172db.js +27 -0
  64. package/dist/assets/{erlang.c8e3989e.js → erlang.60963eb0.js} +1 -1
  65. package/dist/assets/es-419.10094709.js +1 -0
  66. package/dist/assets/es-CL.7f44ec7c.js +1 -0
  67. package/dist/assets/es-ES.3ff9088e.js +1 -0
  68. package/dist/assets/es-MX.17370b17.js +1 -0
  69. package/dist/assets/{et-EE.9e35920e.js → et-EE.fb46a361.js} +1 -1
  70. package/dist/assets/extensions.8d3df212.js +12 -0
  71. package/dist/assets/{fa-IR.f3dc75f9.js → fa-IR.b864f77c.js} +1 -1
  72. package/dist/assets/{factor.a2db9c26.js → factor.6c5ee333.js} +1 -1
  73. package/dist/assets/faq.63c79c18.js +2 -0
  74. package/dist/assets/{fcl.02d85986.js → fcl.8e18cfdc.js} +1 -1
  75. package/dist/assets/{fi-FI.42afdce0.js → fi-FI.14f31cb4.js} +1 -1
  76. package/dist/assets/fields.715d4591.js +135 -0
  77. package/dist/assets/file-library.a4de4015.js +1 -0
  78. package/dist/assets/files.7c2ccfe2.js +189 -0
  79. package/dist/assets/filter-rules.056b97be.js +76 -0
  80. package/dist/assets/filters.2cb82fd9.js +1 -0
  81. package/dist/assets/flows.38f60cc8.js +172 -0
  82. package/dist/assets/flows.f378a262.js +15 -0
  83. package/dist/assets/{fo-FO.ffe478b0.js → fo-FO.cc444b75.js} +1 -1
  84. package/dist/assets/folders.fa66a5ce.js +132 -0
  85. package/dist/assets/{forth.725698ea.js → forth.5d8db187.js} +1 -1
  86. package/dist/assets/{fortran.e9ba7b47.js → fortran.ac24d46b.js} +1 -1
  87. package/dist/assets/{fr-CA.caa3fc8d.js → fr-CA.0e824ae4.js} +1 -1
  88. package/dist/assets/fr-FR.77a5277c.js +1 -0
  89. package/dist/assets/{gas.25b17a72.js → gas.f99de41f.js} +1 -1
  90. package/dist/assets/gcp.6c61b39e.js +60 -0
  91. package/dist/assets/{gfm.a7b6e273.js → gfm.c3250bc4.js} +1 -1
  92. package/dist/assets/{gherkin.1db310b6.js → gherkin.dd3614b2.js} +1 -1
  93. package/dist/assets/github-ci.04483301.js +2 -0
  94. package/dist/assets/glossary.485603d9.js +1 -0
  95. package/dist/assets/glossary.6efd77ad.js +1 -0
  96. package/dist/assets/{go.a0c64ca2.js → go.18ea1afe.js} +1 -1
  97. package/dist/assets/{groovy.b0ac2a1f.js → groovy.d1f3a61a.js} +1 -1
  98. package/dist/assets/{haml.233c9608.js → haml.a346df44.js} +1 -1
  99. package/dist/assets/{handlebars.b13fc00f.js → handlebars.a4eff81f.js} +1 -1
  100. package/dist/assets/{haskell-literate.af8f88ee.js → haskell-literate.57a5243e.js} +1 -1
  101. package/dist/assets/{haskell.adcf73db.js → haskell.3acf2710.js} +1 -1
  102. package/dist/assets/{haxe.f1a75c2e.js → haxe.bdf5968b.js} +1 -1
  103. package/dist/assets/{hi-IN.36e79faa.js → hi-IN.c0703db5.js} +1 -1
  104. package/dist/assets/hooks.f7efe9af.js +60 -0
  105. package/dist/assets/{hr-HR.b1e41c07.js → hr-HR.467388ee.js} +1 -1
  106. package/dist/assets/{htmlembedded.145e9718.js → htmlembedded.03cf45db.js} +1 -1
  107. package/dist/assets/{htmlmixed.6794685c.js → htmlmixed.987f61e9.js} +1 -1
  108. package/dist/assets/{http.5bb61ef1.js → http.a4c95466.js} +1 -1
  109. package/dist/assets/{hu-HU.9c7ec38f.js → hu-HU.47ab36e8.js} +1 -1
  110. package/dist/assets/id-ID.8089647c.js +1 -0
  111. package/dist/assets/{idl.f52ce6c3.js → idl.2fcbfa33.js} +1 -1
  112. package/dist/assets/iis.e068f41a.js +24 -0
  113. package/dist/assets/import-export.d334c127.js +2 -0
  114. package/dist/assets/{index.133de9ba.entry.js → index.02dcddad.entry.js} +222 -226
  115. package/dist/assets/index.087465cd.css +1 -0
  116. package/dist/assets/index.4254793b.js +26 -0
  117. package/dist/assets/{index.895a297f.css → index.6f497914.css} +1 -1
  118. package/dist/assets/{input-rich-text-html.817ccf8b.css → input-rich-text-html.172a38cb.css} +1 -1
  119. package/dist/assets/{input-rich-text-html.e9e92552.js → input-rich-text-html.75413785.js} +47 -47
  120. package/dist/assets/insights.b3ba896c.js +2 -0
  121. package/dist/assets/installation.2025f88b.js +1 -0
  122. package/dist/assets/interfaces.606c790c.js +46 -0
  123. package/dist/assets/introduction.41a72fb0.js +1 -0
  124. package/dist/assets/introduction.527c3465.js +4 -0
  125. package/dist/assets/introduction.5566b96e.js +90 -0
  126. package/dist/assets/introduction.ecd17b88.js +1 -0
  127. package/dist/assets/it-IT.58422a56.js +1 -0
  128. package/dist/assets/items.d1f658a9.js +1 -0
  129. package/dist/assets/items.d9c6a0b4.js +136 -0
  130. package/dist/assets/ja-JP.84597497.js +1 -0
  131. package/dist/assets/{javascript-hint.d8a99d8e.js → javascript-hint.db799360.js} +1 -1
  132. package/dist/assets/{javascript.357d6ab4.js → javascript.46c46918.js} +1 -1
  133. package/dist/assets/{jinja2.64181acd.js → jinja2.71e29364.js} +1 -1
  134. package/dist/assets/{jsx.ba14fb9d.js → jsx.9ae3ca09.js} +1 -1
  135. package/dist/assets/{julia.06a9ee42.js → julia.8b46f23e.js} +1 -1
  136. package/dist/assets/{ko-KR.5a129780.js → ko-KR.9056bd31.js} +1 -1
  137. package/dist/assets/{ku-TR.9eee23ff.js → ku-TR.3a07a57e.js} +1 -1
  138. package/dist/assets/layouts.0aa8d645.js +54 -0
  139. package/dist/assets/layouts.14b157dc.js +1 -0
  140. package/dist/assets/{livescript.687f6ca6.js → livescript.1c767a4c.js} +1 -1
  141. package/dist/assets/localization.c89061c7.js +1 -0
  142. package/dist/assets/{lt-LT.772aac6e.js → lt-LT.f2d719ff.js} +1 -1
  143. package/dist/assets/{lua.40597bfe.js → lua.42e69aa3.js} +1 -1
  144. package/dist/assets/manual.20d730b3.js +12 -0
  145. package/dist/assets/{mark-selection.feeab6e5.js → mark-selection.16acf9dc.js} +1 -1
  146. package/dist/assets/{match-highlighter.8afd3316.js → match-highlighter.8f0791ef.js} +1 -1
  147. package/dist/assets/{mathematica.6569f1d2.js → mathematica.6d38a8bc.js} +1 -1
  148. package/dist/assets/{mbox.d8c16b77.js → mbox.04641caf.js} +1 -1
  149. package/dist/assets/migrations.f13ec64d.js +19 -0
  150. package/dist/assets/{mirc.5f909857.js → mirc.a748cdbe.js} +1 -1
  151. package/dist/assets/{mllike.393c4525.js → mllike.78996bae.js} +1 -1
  152. package/dist/assets/{mn-MN.ae109212.js → mn-MN.c504a096.js} +1 -1
  153. package/dist/assets/{modelica.1180cc4d.js → modelica.e521b192.js} +1 -1
  154. package/dist/assets/modules.9b5ee510.js +69 -0
  155. package/dist/assets/{ms-MY.e50ff23a.js → ms-MY.e6553dad.js} +1 -1
  156. package/dist/assets/{mscgen.429d47df.js → mscgen.4b8f9009.js} +1 -1
  157. package/dist/assets/{multiplex.23c498d1.js → multiplex.c8ef0fcd.js} +1 -1
  158. package/dist/assets/{mumps.f94bba13.js → mumps.44c6f7dd.js} +1 -1
  159. package/dist/assets/{nginx.72bf7bab.js → nginx.0aef90d9.js} +1 -1
  160. package/dist/assets/{nl-NL.b57de112.js → nl-NL.2f00af44.js} +1 -1
  161. package/dist/assets/{no-NO.79458b78.js → no-NO.59f9d425.js} +1 -1
  162. package/dist/assets/notifications.674ee6f9.js +153 -0
  163. package/dist/assets/{nsis.68fe2711.js → nsis.21597a35.js} +1 -1
  164. package/dist/assets/{ntriples.964a7402.js → ntriples.a9ce3eee.js} +1 -1
  165. package/dist/assets/{octave.26aad7e7.js → octave.e4e6969c.js} +1 -1
  166. package/dist/assets/operations.46679bea.js +1 -0
  167. package/dist/assets/operations.9995851b.js +169 -0
  168. package/dist/assets/{overlay.b4b97f23.js → overlay.725bd47b.js} +1 -1
  169. package/dist/assets/overview.3616b560.js +1 -0
  170. package/dist/assets/overview.3c9f8f3d.js +1 -0
  171. package/dist/assets/overview.6438dc44.js +1 -0
  172. package/dist/assets/{oz.1076911f.js → oz.439981ca.js} +1 -1
  173. package/dist/assets/panels.570ee526.js +65 -0
  174. package/dist/assets/{pascal.8ad1e64f.js → pascal.e63a97cf.js} +1 -1
  175. package/dist/assets/{pegjs.c362f9d1.js → pegjs.9b76593b.js} +1 -1
  176. package/dist/assets/{perl.afe37b4f.js → perl.e5aa6f87.js} +1 -1
  177. package/dist/assets/permissions.768d1878.js +178 -0
  178. package/dist/assets/{php.2fcb5b78.js → php.d553fa6c.js} +1 -1
  179. package/dist/assets/{pig.1047d3c6.js → pig.657ad6df.js} +1 -1
  180. package/dist/assets/pl-PL.80cfbed6.js +1 -0
  181. package/dist/assets/plesk.b0ee9a9a.js +27 -0
  182. package/dist/assets/{powershell.a493c1a9.js → powershell.d67ba3f4.js} +1 -1
  183. package/dist/assets/presets-bookmarks.522baf53.js +1 -0
  184. package/dist/assets/presets.d902ebfa.js +164 -0
  185. package/dist/assets/project-settings.1f95b799.js +1 -0
  186. package/dist/assets/projects.1ea6a392.js +1 -0
  187. package/dist/assets/{properties.2ccd56b8.js → properties.da88b13f.js} +1 -1
  188. package/dist/assets/{protobuf.a0e463a0.js → protobuf.4d5afee3.js} +1 -1
  189. package/dist/assets/pt-BR.40750500.js +1 -0
  190. package/dist/assets/pt-PT.fae0fcc3.js +1 -0
  191. package/dist/assets/{pug.3909bb70.js → pug.3f42b721.js} +1 -1
  192. package/dist/assets/{puppet.298e3717.js → puppet.c79d85fc.js} +1 -1
  193. package/dist/assets/{python.099f62ce.js → python.d6ada07e.js} +1 -1
  194. package/dist/assets/{q.64763e8e.js → q.1a68bd88.js} +1 -1
  195. package/dist/assets/query.8abea6de.js +152 -0
  196. package/dist/assets/quickstart.75164dd7.js +9 -0
  197. package/dist/assets/quickstart.9985cb15.js +20 -0
  198. package/dist/assets/{r.f2c0470b.js → r.0c2eb3c2.js} +1 -1
  199. package/dist/assets/relations.9011b2b5.js +115 -0
  200. package/dist/assets/relationships.cbc9b1c5.js +55 -0
  201. package/dist/assets/resources.25cb1e34.js +1 -0
  202. package/dist/assets/revisions.c90ecb76.js +40 -0
  203. package/dist/assets/{ro-RO.5161835a.js → ro-RO.a1adfb6a.js} +1 -1
  204. package/dist/assets/roles.22f7aa37.js +171 -0
  205. package/dist/assets/{rpm.cf84a89e.js → rpm.bf07aaab.js} +1 -1
  206. package/dist/assets/{rst.26def927.js → rst.00e6f3ec.js} +1 -1
  207. package/dist/assets/{ru-RU.94a64be6.js → ru-RU.35703ea4.js} +1 -1
  208. package/dist/assets/{ruby.5fdee9b4.js → ruby.a058e7d1.js} +1 -1
  209. package/dist/assets/running-locally.ce0a8200.js +26 -0
  210. package/dist/assets/{rust.ab31720a.js → rust.f7ca883b.js} +1 -1
  211. package/dist/assets/{sas.d35671d3.js → sas.f9db0ec1.js} +1 -1
  212. package/dist/assets/{sass.be16b14c.js → sass.6c26d08e.js} +1 -1
  213. package/dist/assets/{scheme.da057889.js → scheme.b19aee0d.js} +1 -1
  214. package/dist/assets/sdk.916109ed.js +393 -0
  215. package/dist/assets/security.1963da73.js +1 -0
  216. package/dist/assets/server.afec52fc.js +114 -0
  217. package/dist/assets/settings.835be62f.js +51 -0
  218. package/dist/assets/settings.a02abd85.js +1 -0
  219. package/dist/assets/{shell.ba07ff2f.js → shell.b593f3c7.js} +1 -1
  220. package/dist/assets/{show-hint.4c3405db.js → show-hint.252396d2.js} +1 -1
  221. package/dist/assets/{sieve.9a88af42.js → sieve.b20bbc45.js} +1 -1
  222. package/dist/assets/{simple.306c97cf.js → simple.8b298831.js} +1 -1
  223. package/dist/assets/{sl-SI.719d987e.js → sl-SI.632899f8.js} +1 -1
  224. package/dist/assets/{slim.11e72018.js → slim.2a6f8eee.js} +1 -1
  225. package/dist/assets/{smalltalk.802facc0.js → smalltalk.9bee6f9b.js} +1 -1
  226. package/dist/assets/{smarty.410c0c8d.js → smarty.be5c58b8.js} +1 -1
  227. package/dist/assets/{solr.43e14cbf.js → solr.49b61be0.js} +1 -1
  228. package/dist/assets/{soy.18418f41.js → soy.0ff77af9.js} +1 -1
  229. package/dist/assets/{sparql.5169332f.js → sparql.9f5e3d7d.js} +1 -1
  230. package/dist/assets/{spreadsheet.2a7e9b13.js → spreadsheet.062b3700.js} +1 -1
  231. package/dist/assets/{sql.53c1d1ba.js → sql.a5128e43.js} +1 -1
  232. package/dist/assets/{sr-CS.c513578f.js → sr-CS.2e5b18be.js} +1 -1
  233. package/dist/assets/{sso-examples.b52061be.js → sso-examples.048b39c5.js} +12 -12
  234. package/dist/assets/sso.70be105f.js +22 -0
  235. package/dist/assets/{stex.7c4e0033.js → stex.0331c80e.js} +1 -1
  236. package/dist/assets/{stylus.dfe1c737.js → stylus.6423d65d.js} +1 -1
  237. package/dist/assets/support.fce2dba5.js +1 -0
  238. package/dist/assets/{sv-SE.a70fd097.js → sv-SE.d485ddd3.js} +1 -1
  239. package/dist/assets/{swift.e9cb43f5.js → swift.979a2826.js} +1 -1
  240. package/dist/assets/{tcl.7cc3bef5.js → tcl.fa1b798c.js} +1 -1
  241. package/dist/assets/teams.44eb670e.js +1 -0
  242. package/dist/assets/{textile.353c8497.js → textile.9dbd9b93.js} +1 -1
  243. package/dist/assets/{th-TH.bdbc4a8c.js → th-TH.1e9ab13f.js} +1 -1
  244. package/dist/assets/themes.e4a7762f.js +5 -0
  245. package/dist/assets/{tiddlywiki.f4ebe8db.js → tiddlywiki.fb030aa9.js} +1 -1
  246. package/dist/assets/{tiki.95dd78e4.js → tiki.2e2e82c0.js} +1 -1
  247. package/dist/assets/{toml.f50bb93a.js → toml.0c911c34.js} +1 -1
  248. package/dist/assets/{tornado.3e0cfd8c.js → tornado.466faa98.js} +1 -1
  249. package/dist/assets/tr-TR.feb24957.js +1 -0
  250. package/dist/assets/translation-strings.4ed25965.js +1 -0
  251. package/dist/assets/translations.cf2353ca.js +1 -0
  252. package/dist/assets/triggers.05092cdf.js +1 -0
  253. package/dist/assets/{troff.a2834e8f.js → troff.398ba40d.js} +1 -1
  254. package/dist/assets/{ttcn-cfg.447f138c.js → ttcn-cfg.7c37ebe0.js} +1 -1
  255. package/dist/assets/{ttcn.7d877404.js → ttcn.58e768c8.js} +1 -1
  256. package/dist/assets/{turtle.3b4898fd.js → turtle.2b65ee77.js} +1 -1
  257. package/dist/assets/{twig.53dd7cbe.js → twig.0cf35761.js} +1 -1
  258. package/dist/assets/ubuntu.35dc97df.js +11 -0
  259. package/dist/assets/uk-UA.0e92f9a4.js +1 -0
  260. package/dist/assets/upgrades-migrations.9218bbe9.js +1 -0
  261. package/dist/assets/use-sync.c0f4dfab.js +7 -7
  262. package/dist/assets/user-directory.3daaa818.js +1 -0
  263. package/dist/assets/users-roles-permissions.6e18f7ca.js +1 -0
  264. package/dist/assets/users.4f11a7c5.js +252 -0
  265. package/dist/assets/utilities.0e0d0ace.js +74 -0
  266. package/dist/assets/{vb.c3313898.js → vb.269200a5.js} +1 -1
  267. package/dist/assets/{vbscript.0b106bed.js → vbscript.b9c30330.js} +1 -1
  268. package/dist/assets/{velocity.c20bb29d.js → velocity.a54e5f76.js} +1 -1
  269. package/dist/assets/{verilog.2f6698b4.js → verilog.fd6a1be7.js} +1 -1
  270. package/dist/assets/{vhdl.6127eef7.js → vhdl.846afe81.js} +1 -1
  271. package/dist/assets/{vi-VN.7478a743.js → vi-VN.3e9c985f.js} +1 -1
  272. package/dist/assets/{vue.bb756ea0.js → vue.74e2af44.js} +1 -1
  273. package/dist/assets/{wast.66661aa3.js → wast.38b3f34b.js} +1 -1
  274. package/dist/assets/webhooks.00ee297b.js +147 -0
  275. package/dist/assets/webhooks.01ddb390.js +1 -0
  276. package/dist/assets/{webidl.0a42319e.js → webidl.481665e3.js} +1 -1
  277. package/dist/assets/{xquery.44dd200c.js → xquery.e254ba63.js} +1 -1
  278. package/dist/assets/{yacas.6f3863db.js → yacas.fc329640.js} +1 -1
  279. package/dist/assets/{yaml-frontmatter.42fca60b.js → yaml-frontmatter.84cccda6.js} +1 -1
  280. package/dist/assets/{yaml.d85fc2b2.js → yaml.3a95e8e9.js} +1 -1
  281. package/dist/assets/{z80.2bbe85a7.js → z80.691a0cb9.js} +1 -1
  282. package/dist/assets/zh-CN.432cf71e.js +1 -0
  283. package/dist/assets/zh-TW.cac20c88.js +1 -0
  284. package/dist/index.html +2 -2
  285. package/package.json +10 -7
  286. package/dist/assets/accounts.08433099.js +0 -1
  287. package/dist/assets/activity-log.496fa2f2.css +0 -1
  288. package/dist/assets/activity-log.fd558c9b.js +0 -1
  289. package/dist/assets/activity.0def80ca.js +0 -80
  290. package/dist/assets/ar-SA.1a6c2c65.js +0 -1
  291. package/dist/assets/architecture.6e6f13a7.js +0 -1
  292. package/dist/assets/authentication.a6f04750.js +0 -73
  293. package/dist/assets/aws.3b1c64af.js +0 -1
  294. package/dist/assets/backing-directus.0003d237.js +0 -1
  295. package/dist/assets/bg-BG.749c86ae.js +0 -1
  296. package/dist/assets/bn-IN.1385676c.js +0 -1
  297. package/dist/assets/cli.5153aa86.js +0 -4
  298. package/dist/assets/cli.e8e2526b.js +0 -19
  299. package/dist/assets/cloudron.53c430b8.js +0 -1
  300. package/dist/assets/codebase-overview.e9df94fc.js +0 -1
  301. package/dist/assets/collections.2453db3a.js +0 -106
  302. package/dist/assets/collections.aa896b3f.js +0 -2
  303. package/dist/assets/config-options.b1233b4b.js +0 -138
  304. package/dist/assets/content.1b1e95cf.js +0 -1
  305. package/dist/assets/creating-extensions.bfd7c57c.js +0 -11
  306. package/dist/assets/cs-CZ.6910228b.js +0 -1
  307. package/dist/assets/data-model.0e360572.js +0 -1
  308. package/dist/assets/data-sharing.da96e52e.js +0 -1
  309. package/dist/assets/de-DE.a4271e4f.js +0 -1
  310. package/dist/assets/digitalocean-app-platform.3412cb40.js +0 -3
  311. package/dist/assets/display-templates.915c0c5b.js +0 -1
  312. package/dist/assets/displays.99989c6d.js +0 -49
  313. package/dist/assets/documentation.788d4998.js +0 -1
  314. package/dist/assets/email-templates.1f5ac335.js +0 -2
  315. package/dist/assets/endpoints.aaac7c81.js +0 -27
  316. package/dist/assets/es-419.aa0bf259.js +0 -1
  317. package/dist/assets/es-CL.e42c6c3c.js +0 -1
  318. package/dist/assets/es-ES.5c7e9438.js +0 -1
  319. package/dist/assets/es-MX.b9c72674.js +0 -1
  320. package/dist/assets/extensions.34c12005.js +0 -12
  321. package/dist/assets/faq.89e68608.js +0 -2
  322. package/dist/assets/fields.54985585.js +0 -135
  323. package/dist/assets/file-library.b55c53fe.js +0 -1
  324. package/dist/assets/files.064d5a35.js +0 -187
  325. package/dist/assets/filter-rules.aec0af01.js +0 -76
  326. package/dist/assets/filters.3db1b044.js +0 -1
  327. package/dist/assets/flows.22228af1.js +0 -172
  328. package/dist/assets/flows.3ea1b90f.js +0 -15
  329. package/dist/assets/folders.0024d3d3.js +0 -132
  330. package/dist/assets/fr-FR.615da1bd.js +0 -1
  331. package/dist/assets/gcp.627205b5.js +0 -60
  332. package/dist/assets/github-ci.abd39dcc.js +0 -2
  333. package/dist/assets/glossary.312e2401.js +0 -1
  334. package/dist/assets/glossary.75ca2027.js +0 -1
  335. package/dist/assets/hooks.eda18b02.js +0 -60
  336. package/dist/assets/id-ID.a0052c00.js +0 -1
  337. package/dist/assets/iis.109e5a8a.js +0 -24
  338. package/dist/assets/import-export.3da878a4.js +0 -2
  339. package/dist/assets/index.55cf7b0a.js +0 -26
  340. package/dist/assets/index.ef58525d.css +0 -1
  341. package/dist/assets/insights.c8ed7c1c.js +0 -1
  342. package/dist/assets/installation.78c6d9f6.js +0 -1
  343. package/dist/assets/interfaces.9e145c45.js +0 -46
  344. package/dist/assets/introduction.2e6f5c1d.js +0 -90
  345. package/dist/assets/introduction.78a2a844.js +0 -4
  346. package/dist/assets/introduction.8a589eb0.js +0 -1
  347. package/dist/assets/introduction.fd7c08ac.js +0 -1
  348. package/dist/assets/it-IT.7b7f58ec.js +0 -1
  349. package/dist/assets/items.4205dfa0.js +0 -136
  350. package/dist/assets/items.64ed9295.js +0 -1
  351. package/dist/assets/ja-JP.819a38cf.js +0 -1
  352. package/dist/assets/layouts.3c14b583.js +0 -54
  353. package/dist/assets/layouts.ca8afd39.js +0 -1
  354. package/dist/assets/localization.374b7427.js +0 -1
  355. package/dist/assets/manual.ab601c95.js +0 -10
  356. package/dist/assets/migrations.8989fedc.js +0 -19
  357. package/dist/assets/modules.17c944d1.js +0 -69
  358. package/dist/assets/notifications.33c688c9.js +0 -153
  359. package/dist/assets/operations.22151874.js +0 -169
  360. package/dist/assets/operations.50a08aae.js +0 -1
  361. package/dist/assets/overview.3436365c.js +0 -1
  362. package/dist/assets/overview.623fafba.js +0 -1
  363. package/dist/assets/overview.dbebe94a.js +0 -1
  364. package/dist/assets/panels.385b173a.js +0 -65
  365. package/dist/assets/permissions.f84f8d42.js +0 -178
  366. package/dist/assets/pl-PL.7e448fa9.js +0 -1
  367. package/dist/assets/plesk.f7e3d5ef.js +0 -27
  368. package/dist/assets/presets-bookmarks.1b8ec70c.js +0 -1
  369. package/dist/assets/presets.b1e8b6c1.js +0 -164
  370. package/dist/assets/project-settings.d32669a9.js +0 -1
  371. package/dist/assets/projects.bb50c3df.js +0 -1
  372. package/dist/assets/pt-BR.2d6fa7cc.js +0 -1
  373. package/dist/assets/pt-PT.c28534a0.js +0 -1
  374. package/dist/assets/query.dbe0b56d.js +0 -152
  375. package/dist/assets/quickstart.01824cc9.js +0 -9
  376. package/dist/assets/quickstart.4d7c7736.js +0 -20
  377. package/dist/assets/relations.d29aa86d.js +0 -115
  378. package/dist/assets/relationships.c9c5db8a.js +0 -55
  379. package/dist/assets/resources.00028bf0.js +0 -1
  380. package/dist/assets/revisions.2898106e.js +0 -40
  381. package/dist/assets/roles.9fec37da.js +0 -171
  382. package/dist/assets/running-locally.811d0dcc.js +0 -26
  383. package/dist/assets/sdk.12cd7974.js +0 -393
  384. package/dist/assets/security.8e2a8a41.js +0 -1
  385. package/dist/assets/server.9f12ae3e.js +0 -114
  386. package/dist/assets/settings.149d1dff.js +0 -1
  387. package/dist/assets/settings.28abc1f0.js +0 -51
  388. package/dist/assets/sso.64b2717b.js +0 -22
  389. package/dist/assets/support.94e3734b.js +0 -1
  390. package/dist/assets/teams.9ff14f8f.js +0 -1
  391. package/dist/assets/themes.df7ec485.js +0 -5
  392. package/dist/assets/tr-TR.d7a7361f.js +0 -1
  393. package/dist/assets/translations.5191ab7c.js +0 -1
  394. package/dist/assets/triggers.1f1ace5f.js +0 -1
  395. package/dist/assets/ubuntu.f4c21886.js +0 -11
  396. package/dist/assets/uk-UA.473dd1c9.js +0 -1
  397. package/dist/assets/upgrades-migrations.15498a47.js +0 -1
  398. package/dist/assets/user-directory.47c8beb2.js +0 -1
  399. package/dist/assets/users-roles-permissions.005388fa.js +0 -1
  400. package/dist/assets/users.84251ab9.js +0 -252
  401. package/dist/assets/utilities.26e6a9e8.js +0 -74
  402. package/dist/assets/webhooks.4eeecb7d.js +0 -147
  403. package/dist/assets/webhooks.61b11e7d.js +0 -1
  404. package/dist/assets/zh-CN.c51e7308.js +0 -1
  405. package/dist/assets/zh-TW.8ef6cec8.js +0 -1
@@ -1,169 +0,0 @@
1
- import{a as o,o as i,b as h,w as a,g as e,e as n,B as s}from"./runtime-core.esm-bundler.b1f35d24.js";var r={};const p={class:"markdown-body"},d=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Operations are the building blocks of Data Flows within Directus.")])]),e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-operation-object"},"The Operation Object")]),e("li",null,[e("a",{href:"#list-operations"},"List Operations")]),e("li",null,[e("a",{href:"#retrieve-an-operation"},"Retrieve an operation")]),e("li",null,[e("a",{href:"#create-an-operation"},"Create an Operation")]),e("li",null,[e("a",{href:"#create-multiple-operations"},"Create Multiple Operations")]),e("li",null,[e("a",{href:"#update-an-operation"},"Update an Operation")]),e("li",null,[e("a",{href:"#update-multiple-operations"},"Update Multiple Operations")]),e("li",null,[e("a",{href:"#delete-an-operation"},"Delete an Operation")]),e("li",null,[e("a",{href:"#delete-multiple-operations"},"Delete Multiple Operations")]),e("li",null,[e("a",{href:"#triggering-an-operation"},"Triggering an operation")])])])])])],-1),u=e("hr",null,null,-1),_=e("h2",{id:"the-operation-object"},[s("The Operation Object "),e("a",{class:"header-anchor",href:"#the-operation-object"},"#")],-1),g={class:"two-up"},f={class:"left"},m={class:"definitions"},y=e("p",null,[e("code",{class:""},"id"),s(),e("strong",null,"uuid"),e("br"),s(" Primary key of the operation.")],-1),j=e("p",null,[e("code",{class:""},"name"),s(),e("strong",null,"string"),e("br"),s(" Name for the operation.")],-1),b=e("p",null,[e("code",{class:""},"key"),s(),e("strong",null,"string"),e("br"),s(" Key for the operation. Must be unique within a given flow.")],-1),q=e("p",null,[e("code",{class:""},"type"),s(),e("strong",null,"string"),e("br"),s(" Type of operation. One of "),e("code",{class:""},"log"),s(", "),e("code",{class:""},"mail"),s(", "),e("code",{class:""},"notification"),s(", "),e("code",{class:""},"create"),s(", "),e("code",{class:""},"read"),s(", "),e("code",{class:""},"request"),s(", "),e("code",{class:""},"sleep"),s(", "),e("code",{class:""},"transform"),s(", "),e("code",{class:""},"trigger"),s(", "),e("code",{class:""},"condition"),s(", or any type of custom operation extensions.")],-1),x=e("p",null,[e("code",{class:""},"options"),s(),e("strong",null,"json"),e("br"),s(" Options depending on the type of the operation.")],-1),w=e("p",null,[e("code",{class:""},"position_x"),s(),e("strong",null,"integer"),e("br"),s(" Position of the operation on the X axis within the flow workspace.")],-1),k=e("p",null,[e("code",{class:""},"position_y"),s(),e("strong",null,"integer"),e("br"),s(" Position of the operation on the Y axis within the flow workspace.")],-1),v=e("p",null,[e("code",{class:""},"date_created"),s(),e("strong",null,"timestamp"),e("br"),s(" Timestamp in ISO8601 when the operation was created.")],-1),T=e("code",{class:""},"user_created",-1),E=s(),O=e("strong",null,"many-to-one",-1),P=e("br",null,null,-1),R=s(" The user who created the operation. Many-to-one to "),S=s("users"),A=s("."),L=e("p",null,[e("code",{class:""},"resolve"),s(),e("strong",null,"uuid"),e("br"),s(" The operation triggered when the current operation succeeds (or "),e("code",{class:""},"then"),s(" logic of a condition operation). Primary key of an "),e("a",{href:"#the-operation-object"},"operation"),s(".")],-1),M=e("p",null,[e("code",{class:""},"reject"),s(),e("strong",null,"uuid"),e("br"),s(" The operation triggered when the current operation fails (or "),e("code",{class:""},"otherwise"),s(" logic of a condition operation). Primary key of an "),e("a",{href:"#the-operation-object"},"operation"),s(".")],-1),D=e("code",{class:""},"flow",-1),C=s(),I=e("strong",null,"many-to-one",-1),Q=e("br",null,null,-1),G=s(" The flow containing this operation. Many-to-one to "),B=s("flows"),U=s("."),H=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-string"},'"585b04cd-2821-4dcc-a563-ae5d29ecace2"'),s(`,
3
- `),e("span",{class:"hljs-attr"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"Log a Message"'),s(`,
4
- `),e("span",{class:"hljs-attr"},'"key"'),s(": "),e("span",{class:"hljs-string"},'"log_message"'),s(`,
5
- `),e("span",{class:"hljs-attr"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"log"'),s(`,
6
- `),e("span",{class:"hljs-attr"},'"position_x"'),s(": "),e("span",{class:"hljs-number"},"12"),s(`,
7
- `),e("span",{class:"hljs-attr"},'"position_y"'),s(": "),e("span",{class:"hljs-number"},"24"),s(`,
8
- `),e("span",{class:"hljs-attr"},'"date_created"'),s(": "),e("span",{class:"hljs-string"},'"2022-05-11T13:14:52Z"'),s(`,
9
- `),e("span",{class:"hljs-attr"},'"user_created"'),s(": "),e("span",{class:"hljs-string"},'"12e62fd0-29c7-4fd3-b3d3-c7a39933e8af"'),s(`,
10
- `),e("span",{class:"hljs-attr"},'"resolve"'),s(": "),e("span",{class:"hljs-string"},'"bf4099c0-c54c-4736-ab4e-95e2487595e4"'),s(`,
11
- `),e("span",{class:"hljs-attr"},'"reject"'),s(": "),e("span",{class:"hljs-literal"},"null"),s(`,
12
- `),e("span",{class:"hljs-attr"},'"flow"'),s(": "),e("span",{class:"hljs-string"},'"22544db5-93f7-48e2-a028-7ae02c8fe49a"'),s(`
13
- }
14
- `)])])],-1),N=e("hr",null,null,-1),V=e("h2",{id:"list-operations"},[s("List Operations "),e("a",{class:"header-anchor",href:"#list-operations"},"#")],-1),F=e("p",null,"List all operations that exist in Directus.",-1),K={class:"two-up"},X={class:"left"},Y=e("h3",{id:"query-parameters"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),Z=s("Supports all "),z=s("global query parameters"),J=s("."),W=e("h3",{id:"returns"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")],-1),$=s("An array of up to "),ee=s("limit"),se=s(),ae=e("a",{href:"#the-operation-object"},"operation objects",-1),te=s(". If no items are available, data will be an empty array."),ne={class:"right"},oe=e("h3",{id:"rest-api"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),re=e("pre",null,[e("code",{class:""},`GET /operations
15
- SEARCH /operations
16
- `)],-1),le=s("Learn more about SEARCH ->"),ce=e("h3",{id:"graphql"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")],-1),ie=e("pre",null,[e("code",{class:""},`POST /graphql/system
17
- `)],-1),he=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
18
- operations: [directus_operations]
19
- }
20
- `)])],-1),pe=e("h5",{id:"example"},[s("Example "),e("a",{class:"header-anchor",href:"#example"},"#")],-1),de=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
21
- operations {
22
- id
23
- name
24
- key
25
- }
26
- }
27
- `)])],-1),ue=e("hr",null,null,-1),_e=e("h2",{id:"retrieve-an-operation"},[s("Retrieve an operation "),e("a",{class:"header-anchor",href:"#retrieve-an-operation"},"#")],-1),ge=e("p",null,"List an existing operation by primary key.",-1),fe={class:"two-up"},me={class:"left"},ye=e("h3",{id:"query-parameters-2"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),je=s("Supports all "),be=s("global query parameters"),qe=s("."),xe=e("h3",{id:"returns-2"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),we=e("p",null,[s("Returns the requested "),e("a",{href:"#the-operation-object"},"operation object"),s(".")],-1),ke=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 /operations/:id
28
- `)]),e("h5",{id:"example-2"},[s("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",{class:""},`GET /operations/3c636d1c-4eb2-49cd-8a6d-3ec571ab3390
29
- `)]),e("h3",{id:"graphql-2"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
30
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
31
- operations_by_id(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): directus_operations
32
- }
33
- `)])]),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(` {
34
- operations_by_id(id: `),e("span",{class:"hljs-number"},"42"),s(`) {
35
- id
36
- name
37
- key
38
- }
39
- }
40
- `)])])],-1),ve=e("hr",null,null,-1),Te=e("h2",{id:"create-an-operation"},[s("Create an Operation "),e("a",{class:"header-anchor",href:"#create-an-operation"},"#")],-1),Ee=e("p",null,"Create a new operation.",-1),Oe={class:"two-up"},Pe={class:"left"},Re=e("h3",{id:"query-parameters-3"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Se=s("Supports all "),Ae=s("global query parameters"),Le=s("."),Me=e("h3",{id:"request-body"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")],-1),De=e("p",null,[s("A partial "),e("a",{href:"#the-operation-object"},"operation object"),s(".")],-1),Ce=e("h3",{id:"returns-3"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),Ie=e("p",null,[s("Returns the "),e("a",{href:"#the-operation-object"},"operation object"),s(" for the created operation.")],-1),Qe=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 /operations
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 /operations"),s(`
42
-
43
- {
44
- `),e("span",{class:"hljs-attr"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"My Log"'),s(`,
45
- `),e("span",{class:"hljs-attr"},'"key"'),s(": "),e("span",{class:"hljs-string"},'"my_log"'),s(`,
46
- `),e("span",{class:"hljs-attr"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"log"'),s(`
47
- }
48
- `)])]),e("h3",{id:"graphql-3"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
49
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
50
- create_operations_item(data: create_directus_operations_input!): directus_operations
51
- }
52
- `)])]),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(` {
53
- create_operations_item(data: { name: `),e("span",{class:"hljs-string"},'"My Log"'),s(", key: "),e("span",{class:"hljs-string"},'"my_log"'),s(", "),e("span",{class:"hljs-keyword"},"type"),s(": "),e("span",{class:"hljs-string"},'"log"'),s(` }) {
54
- id
55
- name
56
- key
57
- }
58
- }
59
- `)])])],-1),Ge=e("hr",null,null,-1),Be=e("h2",{id:"create-multiple-operations"},[s("Create Multiple Operations "),e("a",{class:"header-anchor",href:"#create-multiple-operations"},"#")],-1),Ue=e("p",null,"Create multiple new operations.",-1),He={class:"two-up"},Ne={class:"left"},Ve=e("h3",{id:"query-parameters-4"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Fe=s("Supports all "),Ke=s("global query parameters"),Xe=s("."),Ye=e("h3",{id:"request-body-2"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),Ze=e("p",null,[s("An array of partial "),e("a",{href:"#the-operation-object"},"operation objects"),s(".")],-1),ze=e("h3",{id:"returns-4"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),Je=e("p",null,[s("Returns the "),e("a",{href:"#the-operation-object"},"operation object"),s(" for the created operation.")],-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 /operations
60
- `)]),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 /operations"),s(`
61
-
62
- [
63
- {
64
- `),e("span",{class:"hljs-attr"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"My Log"'),s(`,
65
- `),e("span",{class:"hljs-attr"},'"key"'),s(": "),e("span",{class:"hljs-string"},'"my_log"'),s(`,
66
- `),e("span",{class:"hljs-attr"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"log"'),s(`
67
- },
68
- {
69
- `),e("span",{class:"hljs-attr"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"Send Notification"'),s(`,
70
- `),e("span",{class:"hljs-attr"},'"key"'),s(": "),e("span",{class:"hljs-string"},'"send_notification"'),s(`,
71
- `),e("span",{class:"hljs-attr"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"notification"'),s(`
72
- }
73
- ]
74
- `)])]),e("h3",{id:"graphql-4"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
75
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
76
- create_operations_items(data: [create_directus_operations_input!]!): [directus_operations]
77
- }
78
- `)])]),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(` {
79
- create_operations_items(
80
- data: [
81
- {
82
- `),e("span",{class:"hljs-string"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"My Log"'),s(`,
83
- `),e("span",{class:"hljs-string"},'"key"'),s(": "),e("span",{class:"hljs-string"},'"my_log"'),s(`,
84
- `),e("span",{class:"hljs-string"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"log"'),s(`
85
- },
86
- {
87
- `),e("span",{class:"hljs-string"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"Send Notification"'),s(`,
88
- `),e("span",{class:"hljs-string"},'"key"'),s(": "),e("span",{class:"hljs-string"},'"send_notification"'),s(`,
89
- `),e("span",{class:"hljs-string"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"notification"'),s(`
90
- }
91
- ]
92
- ) {
93
- id
94
- name
95
- key
96
- }
97
- }
98
- `)])])],-1),$e=e("hr",null,null,-1),es=e("h2",{id:"update-an-operation"},[s("Update an Operation "),e("a",{class:"header-anchor",href:"#update-an-operation"},"#")],-1),ss=e("p",null,"Update an existing operation.",-1),as={class:"two-up"},ts={class:"left"},ns=e("h3",{id:"query-parameters-5"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),os=s("Supports all "),rs=s("global query parameters"),ls=s("."),cs=e("h3",{id:"request-body-3"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),is=e("p",null,[s("A partial "),e("a",{href:"#the-operation-object"},"operation object"),s(".")],-1),hs=e("h3",{id:"returns-5"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),ps=e("p",null,[s("Returns the "),e("a",{href:"#the-operation-object"},"operation object"),s(" for the updated operation.")],-1),ds=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 /operation/:id
99
- `)]),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 /operation/7d62f1e9-a83f-407b-84f8-1c184f014501"),s(`
100
-
101
- {
102
- `),e("span",{class:"hljs-attr"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"My Updated Operation"'),s(`
103
- }
104
- `)])]),e("h3",{id:"graphql-5"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
105
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
106
- update_operations_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!, data: update_directus_operations_input): directus_operations
107
- }
108
- `)])]),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(` {
109
- update_operations_item(id: `),e("span",{class:"hljs-string"},'"7d62f1e9-a83f-407b-84f8-1c184f014501"'),s(", data: { name: "),e("span",{class:"hljs-string"},'"My Updated Operation"'),s(` }) {
110
- id
111
- name
112
- }
113
- }
114
- `)])])],-1),us=e("hr",null,null,-1),_s=e("h2",{id:"update-multiple-operations"},[s("Update Multiple Operations "),e("a",{class:"header-anchor",href:"#update-multiple-operations"},"#")],-1),gs=e("p",null,"Update multiple existing operations.",-1),fs={class:"two-up"},ms={class:"left"},ys=e("h3",{id:"query-parameters-6"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),js=s("Supports all "),bs=s("global query parameters"),qs=s("."),xs=e("h3",{id:"request-body-4"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),ws=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 operations 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-operation-object"},"the operation object"),s("\u2019s properties.")])],-1),ks=e("h3",{id:"returns-6"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),vs=e("p",null,[s("Returns the "),e("a",{href:"#the-operation-object"},"operation objects"),s(" for the updated operations.")],-1),Ts=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 /operations
115
- `)]),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 /operations"),s(`
116
-
117
- {
118
- `),e("span",{class:"hljs-attr"},'"keys"'),s(": ["),e("span",{class:"hljs-string"},'"6a25fb7c-26a4-4dcb-a474-d47b6a203a38"'),s(", "),e("span",{class:"hljs-string"},'"07ac467e-1900-4c62-9637-8dac2ab97f71"'),s(`],
119
- `),e("span",{class:"hljs-attr"},'"data"'),s(`: {
120
- `),e("span",{class:"hljs-attr"},'"name"'),s(": "),e("span",{class:"hljs-string"},'"Updated Operations"'),s(`
121
- }
122
- }
123
- `)])]),e("h3",{id:"graphql-6"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
124
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
125
- update_operations_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!, data: update_directus_operations_input): [directus_operations]
126
- }
127
- `)])]),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(` {
128
- update_operations_items(
129
- ids: [`),e("span",{class:"hljs-string"},'"6a25fb7c-26a4-4dcb-a474-d47b6a203a38"'),s(", "),e("span",{class:"hljs-string"},'"07ac467e-1900-4c62-9637-8dac2ab97f71"'),s(`]
130
- data: { name: `),e("span",{class:"hljs-string"},'"Updated Operations"'),s(` }
131
- ) {
132
- id
133
- name
134
- key
135
- }
136
- }
137
- `)])])],-1),Es=e("hr",null,null,-1),Os=e("h2",{id:"delete-an-operation"},[s("Delete an Operation "),e("a",{class:"header-anchor",href:"#delete-an-operation"},"#")],-1),Ps=e("p",null,"Delete an existing operation.",-1),Rs=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 /operations/:id
138
- `)]),e("h5",{id:"example-12"},[s("Example "),e("a",{class:"header-anchor",href:"#example-12"},"#")]),e("pre",null,[e("code",{class:""},`DELETE /operations/07ac467e-1900-4c62-9637-8dac2ab97f71
139
- `)]),e("h3",{id:"graphql-7"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-7"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
140
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
141
- delete_operations_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): delete_one
142
- }
143
- `)])]),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(` {
144
- delete_operations_item(id: `),e("span",{class:"hljs-string"},'"07ac467e-1900-4c62-9637-8dac2ab97f71"'),s(`) {
145
- id
146
- }
147
- }
148
- `)])])])],-1),Ss=e("hr",null,null,-1),As=e("h2",{id:"delete-multiple-operations"},[s("Delete Multiple Operations "),e("a",{class:"header-anchor",href:"#delete-multiple-operations"},"#")],-1),Ls=e("p",null,"Delete multiple existing operations.",-1),Ms=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 operations 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 /operations
149
- `)]),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 /operations"),s(`
150
- [`),e("span",{class:"hljs-string"},'"a791ce73-41a2-4fb7-8f67-c7ba176cc719"'),s(", "),e("span",{class:"hljs-string"},'"4e57ab0e-f4ec-47b5-9dad-e36f08a25642"'),s(", "),e("span",{class:"hljs-string"},'"5fe0a6f6-18ad-4bb3-94c6-2e033246c784"'),s(`]
151
- `)])]),e("h3",{id:"graphql-8"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-8"},"#")]),e("pre",null,[e("code",{class:""},`POST /graphql/system
152
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
153
- delete_operations_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!): delete_many
154
- }
155
- `)])]),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(` {
156
- delete_operations_items(
157
- ids: [
158
- `),e("span",{class:"hljs-string"},'"a791ce73-41a2-4fb7-8f67-c7ba176cc719"'),s(`
159
- `),e("span",{class:"hljs-string"},'"4e57ab0e-f4ec-47b5-9dad-e36f08a25642"'),s(`
160
- `),e("span",{class:"hljs-string"},'"5fe0a6f6-18ad-4bb3-94c6-2e033246c784"'),s(`
161
- ]
162
- ) {
163
- ids
164
- }
165
- }
166
- `)])])])],-1),Ds=e("h2",{id:"triggering-an-operation"},[s("Triggering an operation "),e("a",{class:"header-anchor",href:"#triggering-an-operation"},"#")],-1),Cs=e("p",null,"Trigger an operation based on primary key.",-1),Is=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"request-body-6"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-6"},"#")]),e("p",null,"Payload for the operation, if needed."),e("h3",{id:"returns-9"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-9"},"#")]),e("p",null,"Result of the operation, if any.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-9"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-9"},"#")]),e("pre",null,[e("code",{class:""},`POST /operations/trigger/:operation_uuid
167
- `)]),e("h5",{id:"example-16"},[s("Example "),e("a",{class:"header-anchor",href:"#example-16"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /flows/trigger/202a940b-a00b-47df-b832-369c53f13122"),s(`
168
- `),e("span",{class:"hljs-comment"},"// Payload here"),s(`
169
- `)])])])],-1),Qs={title:"Operations",modularExtension:!1,pageClass:"page-reference"},Gs={name:"operations",setup(Bs,{expose:l}){return l({frontmatter:{title:"Operations",modularExtension:!1,pageClass:"page-reference"}}),(Us,Hs)=>{const t=o("router-link"),c=o("docswrapper");return i(),h(c,{frontmatter:Qs},{default:a(()=>[e("div",p,[d,u,_,e("div",g,[e("div",f,[e("div",m,[y,j,b,q,x,w,k,v,e("p",null,[T,E,O,P,R,n(t,{to:"/docs/reference/system/users/#the-users-object"},{default:a(()=>[S]),_:1}),A]),L,M,e("p",null,[D,C,I,Q,G,n(t,{to:"/docs/reference/system/flows/#the-flow-object"},{default:a(()=>[B]),_:1}),U])])]),H]),N,V,F,e("div",K,[e("div",X,[Y,e("p",null,[Z,n(t,{to:"/docs/reference/query"},{default:a(()=>[z]),_:1}),J]),W,e("p",null,[$,n(t,{to:"/docs/reference/query/#limit"},{default:a(()=>[ee]),_:1}),se,ae,te])]),e("div",ne,[oe,re,e("p",null,[n(t,{to:"/docs/reference/introduction/#search-http-method"},{default:a(()=>[le]),_:1})]),ce,ie,he,pe,de])]),ue,_e,ge,e("div",fe,[e("div",me,[ye,e("p",null,[je,n(t,{to:"/docs/reference/query"},{default:a(()=>[be]),_:1}),qe]),xe,we]),ke]),ve,Te,Ee,e("div",Oe,[e("div",Pe,[Re,e("p",null,[Se,n(t,{to:"/docs/reference/query"},{default:a(()=>[Ae]),_:1}),Le]),Me,De,Ce,Ie]),Qe]),Ge,Be,Ue,e("div",He,[e("div",Ne,[Ve,e("p",null,[Fe,n(t,{to:"/docs/reference/query"},{default:a(()=>[Ke]),_:1}),Xe]),Ye,Ze,ze,Je]),We]),$e,es,ss,e("div",as,[e("div",ts,[ns,e("p",null,[os,n(t,{to:"/docs/reference/query"},{default:a(()=>[rs]),_:1}),ls]),cs,is,hs,ps]),ds]),us,_s,gs,e("div",fs,[e("div",ms,[ys,e("p",null,[js,n(t,{to:"/docs/reference/query"},{default:a(()=>[bs]),_:1}),qs]),xs,ws,ks,vs]),Ts]),Es,Os,Ps,Rs,Ss,As,Ls,Ms,Ds,Cs,Is])]),_:1})}}};typeof r=="function"&&r(Gs);export{Gs as default,Qs as frontmatter};
@@ -1 +0,0 @@
1
- import{a as l,o as d,b as c,w as t,g as e,e as n,B as o}from"./runtime-core.esm-bundler.b1f35d24.js";var i={};const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,"Operations are the actions performed after the Flow is triggered. Whether you need to access and create Data within Directus, send information off to outside services, create time-oriented Flows, set conditional logic or even trigger other Flows, these simple but powerful tasks can make it happen.")],-1),_=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#condition"},"Condition")]),e("li",null,[e("a",{href:"#create-data"},"Create Data")]),e("li",null,[e("a",{href:"#delete-data"},"Delete Data")]),e("li",null,[e("a",{href:"#read-data"},"Read Data")]),e("li",null,[e("a",{href:"#update-data"},"Update Data")]),e("li",null,[e("a",{href:"#log-to-console"},"Log to Console")]),e("li",null,[e("a",{href:"#send-email"},"Send Email")]),e("li",null,[e("a",{href:"#send-notification"},"Send Notification")]),e("li",null,[e("a",{href:"#webhook-%2F-request-url"},"Webhook / Request URL")]),e("li",null,[e("a",{href:"#sleep"},"Sleep")]),e("li",null,[e("a",{href:"#transform-payload"},"Transform Payload")]),e("li",null,[e("a",{href:"#trigger-flow"},"Trigger Flow")])])])],-1),p={class:"tip hint"},f=e("div",{class:"hint-title"},"Before You Begin",-1),m=o("Please be sure to read the documentation on "),g=o("Flows"),w=o(" and "),y=o("Triggers"),b=o("."),I=e("h2",{id:"condition"},[o("Condition "),e("a",{class:"header-anchor",href:"#condition"},"#")],-1),v=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/condition-20220603A.webp",alt:"Condition"})],-1),D=e("p",null,[o("Routes to the next success or failure Operation based on some conditional "),e("code",{class:""},"if"),o(" / "),e("code",{class:""},"else"),o(" logic defined by a Filter query. That means if the query condition is met, the Flow will move forward with the success Operation. Otherwise, the failure Operation will be initiated.")],-1),C=e("strong",null,"Condition Rules",-1),S=o(" \u2014 Create conditions with "),k=o("Filter Rules"),O=o("."),T=e("h2",{id:"create-data"},[o("Create Data "),e("a",{class:"header-anchor",href:"#create-data"},"#")],-1),F=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/create-data-20220603A.webp",alt:"Create Data"})],-1),A=e("p",null,"Creates some Item(s) in a Collection.",-1),q=e("li",null,[e("strong",null,"Collection"),o(" \u2014 Use the dropdown to select a Collection to create Items in.")],-1),R=e("li",null,[e("strong",null,"Permissions"),o(" \u2014 Set the scope of permissions used for this Operation.")],-1),P=e("li",null,[e("strong",null,"Emit Events"),o(" \u2014 Toggle whether the event is emitted.")],-1),U=e("strong",null,"Payload",-1),x=o(" \u2014 Create Item(s) in a Collection. To learn more, see "),E=o("API > Items"),L=o("."),N={class:"tip hint"},j=o("Make sure the Operation is scoped with the "),B=o("permissions"),M=o(" necessary to create Items."),W=e("h2",{id:"delete-data"},[o("Delete Data "),e("a",{class:"header-anchor",href:"#delete-data"},"#")],-1),J=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/delete-data-20220603A.webp",alt:"Delete Data"})],-1),Y=e("p",null,"Deletes some Item(s) from a Collection by ID or query.",-1),H=e("li",null,[e("strong",null,"Permissions"),o(" \u2014 Set the scope of permissions used for this Operation.")],-1),Q=e("li",null,[e("strong",null,"Collection"),o(" \u2014 Use the dropdown to set the Collection to delete Items from.")],-1),V=e("li",null,[e("strong",null,"IDs"),o(" \u2014 Set Item IDs and press enter to confirm. Click the ID to remove.")],-1),G=e("strong",null,"Query",-1),z=o(" \u2014 Select Items to delete with a query. To learn more, see "),K=o("Filter Rules"),X=o("."),Z={class:"tip hint"},$=o("Make sure the Operation is scoped with the "),ee=o("permissions"),oe=o(" necessary to delete Items."),te=e("h2",{id:"read-data"},[o("Read Data "),e("a",{class:"header-anchor",href:"#read-data"},"#")],-1),se=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/read-data-20220603A.webp",alt:"Read Data"})],-1),ne=e("p",null,"Reads Item(s) form a Collection and adds them onto the Flow Object. You may select Items by their ID or run a query to select the Items you wish to update.",-1),le=e("li",null,[e("strong",null,"Permissions"),o(" \u2014 Set the scope of permissions used for this Operation.")],-1),ie=e("li",null,[e("strong",null,"Collections"),o(" \u2014 Select the Collection to read Items from.")],-1),ae=e("li",null,[e("strong",null,"IDs"),o(" \u2014 Input ID for Item(s) you wish to read and press enter. Click the ID to remove.")],-1),re=e("strong",null,"Query",-1),de=o(" \u2014 Select Items with a query. To learn more, see "),ce=o("Filter Rules"),he=o("."),ue=e("h2",{id:"update-data"},[o("Update Data "),e("a",{class:"header-anchor",href:"#update-data"},"#")],-1),_e=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/update-data-20220603A.webp",alt:"Update Data"})],-1),pe=e("p",null,"Updates Item(s) in a Collection. You may select Items by their ID or run a query to select the Items you wish to update.",-1),fe=e("li",null,[e("strong",null,"Permissions"),o(" \u2014 Defines Role that this Operation will inherit permissions from.")],-1),me=e("li",null,[e("strong",null,"Collections"),o(" \u2014 Select the Collection to read Items from.")],-1),ge=e("li",null,[e("strong",null,"IDs"),o(" \u2014 Input ID for Item(s) you wish to read and press enter. Click the ID to remove.")],-1),we=e("strong",null,"Payload",-1),ye=o(" \u2014 Updates Item(s) in a Collection. To learn more, see "),be=o("API > Items"),Ie=o("."),ve=e("strong",null,"Query",-1),De=o(" \u2014 Select Items to update with a query. To learn more, see "),Ce=o("Filter Rules"),Se=o("."),ke=e("h2",{id:"log-to-console"},[o("Log to Console "),e("a",{class:"header-anchor",href:"#log-to-console"},"#")],-1),Oe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/log-to-console-20220603A.webp",alt:"Log to Console"})],-1),Te=e("p",null,"Output something to the console. This will appear in both the server side and in-app Sidebar Console Log. This is a key tool to help troubleshoot Flow configuration.",-1),Fe=e("ul",null,[e("li",null,[e("strong",null,"Message"),o(" \u2014 Sets a "),e("a",{href:"#configuration/flows/flows/logs"},"log message"),o(".")])],-1),Ae=e("div",{class:"tip hint"},[e("p",null,"This will be delivered to your in-app Log Panel and also logged to the server-side console.")],-1),qe=e("h2",{id:"send-email"},[o("Send Email "),e("a",{class:"header-anchor",href:"#send-email"},"#")],-1),Re=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/send-email-20220603A.webp",alt:"Send Email"})],-1),Pe=e("p",null,"Sends email(s). Flow Object keys can be used as variables. This means an array of emails from a previous step in Flows could be used.",-1),Ue=e("ul",null,[e("li",null,[e("strong",null,"To"),o(" \u2014 Sets email addresses. Hit "),e("code",{class:""},"\u21B5"),o(" to save the email. Click an email to remove it.")]),e("li",null,[e("strong",null,"Subject"),o(" \u2014 Set subject line.")]),e("li",null,[e("strong",null,"Body"),o(" \u2014 Provides WYSIWYG editor to create email body.")])],-1),xe=e("div",{class:"tip hint"},[e("p",null,[o("If you are testing out this Operation locally from "),e("code",{class:""},"localhost:8080"),o(", be sure to check your spam box as your email provider may send it there automatically.")])],-1),Ee=e("h2",{id:"send-notification"},[o("Send Notification "),e("a",{class:"header-anchor",href:"#send-notification"},"#")],-1),Le=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/send-notification-20220603A.webp",alt:"Send Notification"})],-1),Ne=e("p",null,"Sends a notification to an app user.",-1),je=e("strong",null,"Users",-1),Be=o(" \u2014 Defines a User by their primary key UUID. Use "),Me=o("Flow keys"),We=o(" to set this dynamically."),Je=e("li",null,[e("strong",null,"Permissions"),o(" \u2014 Defines Role that this Operation will inherit permissions from.")],-1),Ye=e("li",null,[e("strong",null,"Title"),o(" \u2014 Sets the notification title.")],-1),He=e("li",null,[e("strong",null,"Message"),o(" \u2014 Sets the main body of the notification.")],-1),Qe=e("h2",{id:"webhook-%2F-request-url"},[o("Webhook / Request URL "),e("a",{class:"header-anchor",href:"#webhook-%2F-request-url"},"#")],-1),Ve=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/webhook-20220603A.webp",alt:"Webhok / Request URL"})],-1),Ge=e("p",null,"Makes a request to another URL.",-1),ze=e("ul",null,[e("li",null,[e("strong",null,"Method"),o(" \u2014 Choose to make a GET, POST, PATCH, DELETE, or other type of request.")]),e("li",null,[e("strong",null,"URL"),o(" \u2014 Define the URL to send request to.")]),e("li",null,[e("strong",null,"Headers"),o(" \u2014 Create new "),e("code",{class:""},"header:value"),o(" to pass along with the request.")]),e("li",null,[e("strong",null,"Request Body"),o(" \u2014 Set request body data. Use any string or JSON.")])],-1),Ke=e("h2",{id:"sleep"},[o("Sleep "),e("a",{class:"header-anchor",href:"#sleep"},"#")],-1),Xe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/sleep-20220603A.webp",alt:"Sleep"})],-1),Ze=e("p",null,"Pauses Operation Execution on the Flow for a given amount of milliseconds. Then continues to the next Operation.",-1),$e=e("ul",null,[e("li",null,[e("strong",null,"Milliseconds"),o(" \u2014 Define the number of milliseconds to pause.")])],-1),eo=e("h2",{id:"transform-payload"},[o("Transform Payload "),e("a",{class:"header-anchor",href:"#transform-payload"},"#")],-1),oo=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/transform-payload-20220603A.webp",alt:"Transform Payload"})],-1),to=e("p",null,[o("Transform Payload simply creates a new key on the Flow Object with nested JSON data. This provides a clean space where you can combine data from multiple Flow keys all into one object. So for example, if you needed to use the same data multiple times "),e("em",null,"(e.g. send it in a web request and also use it to create an Item in a Collection)"),o(", you can combine the data one time with Transform Payload, then use its Operation key again and again.")],-1),so=e("ul",null,[e("li",null,[e("strong",null,"JSON"),o(" \u2014 Define JSON to insert into the Flow Object.")])],-1),no=e("h2",{id:"trigger-flow"},[o("Trigger Flow "),e("a",{class:"header-anchor",href:"#trigger-flow"},"#")],-1),lo=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/operations/operations-20220603A/trigger-flow-20220603A.webp",alt:"Trigger Flow"})],-1),io=o("This Operation starts another Flow and passes data to it. It should be used in combination with the "),ao=o("Another Flow"),ro=o(" Trigger."),co=e("ul",null,[e("li",null,[e("strong",null,"Flow"),o(" \u2014 Define a Flow by its primary key UUID.")]),e("li",null,[e("strong",null,"Payload"),o(" \u2014 Define JSON to insert into the Flow Object.")])],-1),ho={title:"Operations",modularExtension:!1},uo={name:"operations",setup(_o,{expose:a}){return a({frontmatter:{title:"Operations",modularExtension:!1}}),(po,fo)=>{const s=l("router-link"),r=l("docswrapper");return d(),c(r,{frontmatter:ho},{default:t(()=>[e("div",h,[u,_,e("div",p,[f,e("p",null,[m,n(s,{to:"/docs/configuration/flows/flows"},{default:t(()=>[g]),_:1}),w,n(s,{to:"/docsflows/triggers"},{default:t(()=>[y]),_:1}),b])]),I,v,D,e("ul",null,[e("li",null,[C,S,n(s,{to:"/docs/configuration/filter-rules"},{default:t(()=>[k]),_:1}),O])]),T,F,A,e("ul",null,[q,R,P,e("li",null,[U,x,n(s,{to:"/docsreference/items/"},{default:t(()=>[E]),_:1}),L])]),e("div",N,[e("p",null,[j,n(s,{to:"/docsconfiguration/users-roles-permissions"},{default:t(()=>[B]),_:1}),M])]),W,J,Y,e("ul",null,[H,Q,V,e("li",null,[G,z,n(s,{to:"/docs/configuration/filter-rules"},{default:t(()=>[K]),_:1}),X])]),e("div",Z,[e("p",null,[$,n(s,{to:"/docsconfiguration/users-roles-permissions"},{default:t(()=>[ee]),_:1}),oe])]),te,se,ne,e("ul",null,[le,ie,ae,e("li",null,[re,de,n(s,{to:"/docs/configuration/filter-rules"},{default:t(()=>[ce]),_:1}),he])]),ue,_e,pe,e("ul",null,[fe,me,ge,e("li",null,[we,ye,n(s,{to:"/docsreference/items/"},{default:t(()=>[be]),_:1}),Ie]),e("li",null,[ve,De,n(s,{to:"/docs/configuration/filter-rules"},{default:t(()=>[Ce]),_:1}),Se])]),ke,Oe,Te,Fe,Ae,qe,Re,Pe,Ue,xe,Ee,Le,Ne,e("ul",null,[e("li",null,[je,Be,n(s,{to:"/docs/configuration/flows/flows/#the-flow-object"},{default:t(()=>[Me]),_:1}),We]),Je,Ye,He]),Qe,Ve,Ge,ze,Ke,Xe,Ze,$e,eo,oo,to,so,no,lo,e("p",null,[io,n(s,{to:"/docs/configuration/triggers/#another-flow"},{default:t(()=>[ao]),_:1}),ro]),co])]),_:1})}}};typeof i=="function"&&i(uo);export{uo as default,ho 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};