@directus/app 9.12.1 → 9.12.2
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/{active-line.b42e95d2.js → active-line.ff3bc705.js} +1 -1
- package/dist/assets/{collections.1c745e99.css → activity-log.496fa2f2.css} +0 -0
- package/dist/assets/{apl.a10fee96.js → apl.cc4825c6.js} +1 -1
- package/dist/assets/architecture.6e6f13a7.js +1 -0
- package/dist/assets/{asciiarmor.3440160d.js → asciiarmor.30bbdfc8.js} +1 -1
- package/dist/assets/{asn.1.bdf78f70.js → asn.1.499e838e.js} +1 -1
- package/dist/assets/{asterisk.88ae33f0.js → asterisk.a2fa7dc3.js} +1 -1
- package/dist/assets/{autorefresh.fa8b7b34.js → autorefresh.d36f34c8.js} +1 -1
- package/dist/assets/backing-directus.0003d237.js +1 -0
- package/dist/assets/bg-BG.749c86ae.js +1 -0
- package/dist/assets/{brainfuck.af40cbfc.js → brainfuck.dab31c46.js} +1 -1
- package/dist/assets/{clike.75f55953.js → clike.7aacd908.js} +1 -1
- package/dist/assets/{clojure.f44f8182.js → clojure.c8d9937a.js} +1 -1
- package/dist/assets/{cmake.dc51a5f4.js → cmake.e0408576.js} +1 -1
- package/dist/assets/{cobol.bd572fbc.js → cobol.86241640.js} +1 -1
- package/dist/assets/{coffeescript.903da3d2.js → coffeescript.6090d9e8.js} +1 -1
- package/dist/assets/{commonlisp.0c024da5.js → commonlisp.eb3c5619.js} +1 -1
- package/dist/assets/{crystal.80f7e1ba.js → crystal.01db8e68.js} +1 -1
- package/dist/assets/{css.eb89b9da.js → css.b1894218.js} +1 -1
- package/dist/assets/{cypher.f649c40f.js → cypher.c0cbf899.js} +1 -1
- package/dist/assets/{d.3e286089.js → d.54d4201d.js} +1 -1
- package/dist/assets/{dart.5b9bb9bb.js → dart.2218881c.js} +1 -1
- package/dist/assets/de-DE.a4271e4f.js +1 -0
- package/dist/assets/{diff.c63eafa7.js → diff.d7f03886.js} +1 -1
- package/dist/assets/{django.3a6905fc.js → django.913379d3.js} +1 -1
- package/dist/assets/{dockerfile.a9f614c8.js → dockerfile.9c7cf88b.js} +1 -1
- package/dist/assets/{dtd.5b2d40ab.js → dtd.dbc97bdb.js} +1 -1
- package/dist/assets/{dylan.744cd79f.js → dylan.0c2df43b.js} +1 -1
- package/dist/assets/{ebnf.6637a8f6.js → ebnf.4c778620.js} +1 -1
- package/dist/assets/{ecl.cdabfae6.js → ecl.778611ac.js} +1 -1
- package/dist/assets/{eiffel.60b61e7f.js → eiffel.2a73cd14.js} +1 -1
- package/dist/assets/{elm.74b68fc8.js → elm.90002323.js} +1 -1
- package/dist/assets/{erlang.d6cd5265.js → erlang.c8e3989e.js} +1 -1
- package/dist/assets/es-MX.b9c72674.js +1 -0
- package/dist/assets/{factor.965cfdad.js → factor.a2db9c26.js} +1 -1
- package/dist/assets/{fcl.e515f605.js → fcl.02d85986.js} +1 -1
- package/dist/assets/{file-library.3e651030.js → file-library.b55c53fe.js} +1 -1
- package/dist/assets/filter-rules.aec0af01.js +76 -0
- package/dist/assets/flows.22228af1.js +172 -0
- package/dist/assets/flows.3ea1b90f.js +15 -0
- package/dist/assets/{forth.c62ab807.js → forth.725698ea.js} +1 -1
- package/dist/assets/{fortran.c0e428c5.js → fortran.e9ba7b47.js} +1 -1
- package/dist/assets/fr-CA.caa3fc8d.js +1 -0
- package/dist/assets/fr-FR.615da1bd.js +1 -0
- package/dist/assets/{gas.fd59e425.js → gas.25b17a72.js} +1 -1
- package/dist/assets/{gfm.8125a8e6.js → gfm.a7b6e273.js} +1 -1
- package/dist/assets/{gherkin.c9a9f9d2.js → gherkin.1db310b6.js} +1 -1
- package/dist/assets/glossary.312e2401.js +1 -0
- package/dist/assets/{go.31390264.js → go.a0c64ca2.js} +1 -1
- package/dist/assets/{groovy.c940d48b.js → groovy.b0ac2a1f.js} +1 -1
- package/dist/assets/{haml.1a456af6.js → haml.233c9608.js} +1 -1
- package/dist/assets/{handlebars.d3c0e9e6.js → handlebars.b13fc00f.js} +1 -1
- package/dist/assets/{haskell-literate.06d0d330.js → haskell-literate.af8f88ee.js} +1 -1
- package/dist/assets/{haskell.f83a5b48.js → haskell.adcf73db.js} +1 -1
- package/dist/assets/{haxe.cf38bc86.js → haxe.f1a75c2e.js} +1 -1
- package/dist/assets/{htmlembedded.4765ab1f.js → htmlembedded.145e9718.js} +1 -1
- package/dist/assets/{htmlmixed.a4506ee0.js → htmlmixed.6794685c.js} +1 -1
- package/dist/assets/{http.cf2042b8.js → http.5bb61ef1.js} +1 -1
- package/dist/assets/{idl.2b562d7a.js → idl.f52ce6c3.js} +1 -1
- 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.70f6f88a.entry.js → index.133de9ba.entry.js} +158 -158
- 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.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.9b42e31d.js → index.55cf7b0a.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.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.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.ef58525d.css +1 -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.817ccf8b.css} +1 -1
- package/dist/assets/input-rich-text-html.e9e92552.js +239 -0
- package/dist/assets/introduction.8a589eb0.js +1 -0
- package/dist/assets/introduction.fd7c08ac.js +1 -0
- package/dist/assets/it-IT.7b7f58ec.js +1 -0
- package/dist/assets/{javascript-hint.29e9b67f.js → javascript-hint.d8a99d8e.js} +1 -1
- package/dist/assets/{javascript.d2db845f.js → javascript.357d6ab4.js} +1 -1
- package/dist/assets/{jinja2.f97723a0.js → jinja2.64181acd.js} +1 -1
- package/dist/assets/{jsx.3f2b01c1.js → jsx.ba14fb9d.js} +1 -1
- package/dist/assets/{julia.fa920089.js → julia.06a9ee42.js} +1 -1
- package/dist/assets/ko-KR.5a129780.js +1 -0
- package/dist/assets/{livescript.2ec2e5ab.js → livescript.687f6ca6.js} +1 -1
- package/dist/assets/{lua.5e0c8497.js → lua.40597bfe.js} +1 -1
- package/dist/assets/{mark-selection.54726b3f.js → mark-selection.feeab6e5.js} +1 -1
- package/dist/assets/{match-highlighter.218123e7.js → match-highlighter.8afd3316.js} +1 -1
- package/dist/assets/{mathematica.df44764c.js → mathematica.6569f1d2.js} +1 -1
- package/dist/assets/{mbox.491dfb6c.js → mbox.d8c16b77.js} +1 -1
- package/dist/assets/{mirc.a9dca563.js → mirc.5f909857.js} +1 -1
- package/dist/assets/{mllike.0a469a43.js → mllike.393c4525.js} +1 -1
- package/dist/assets/{modelica.306697a8.js → modelica.1180cc4d.js} +1 -1
- package/dist/assets/{mscgen.a45d586b.js → mscgen.429d47df.js} +1 -1
- package/dist/assets/{multiplex.26e09ed5.js → multiplex.23c498d1.js} +1 -1
- package/dist/assets/{mumps.ae29c70e.js → mumps.f94bba13.js} +1 -1
- package/dist/assets/{nginx.52e6bfcd.js → nginx.72bf7bab.js} +1 -1
- package/dist/assets/{nsis.5869c4bd.js → nsis.68fe2711.js} +1 -1
- package/dist/assets/{ntriples.c7dd54df.js → ntriples.964a7402.js} +1 -1
- package/dist/assets/{octave.ef49cef7.js → octave.26aad7e7.js} +1 -1
- package/dist/assets/operations.22151874.js +169 -0
- package/dist/assets/operations.50a08aae.js +1 -0
- package/dist/assets/{overlay.9a3d0cba.js → overlay.b4b97f23.js} +1 -1
- package/dist/assets/{oz.6a13c27c.js → oz.1076911f.js} +1 -1
- package/dist/assets/{pascal.77947c82.js → pascal.8ad1e64f.js} +1 -1
- package/dist/assets/{pegjs.fb3674fc.js → pegjs.c362f9d1.js} +1 -1
- package/dist/assets/{perl.bd20c5e2.js → perl.afe37b4f.js} +1 -1
- package/dist/assets/{php.f7000a8d.js → php.2fcb5b78.js} +1 -1
- package/dist/assets/{pig.7044156f.js → pig.1047d3c6.js} +1 -1
- package/dist/assets/pl-PL.7e448fa9.js +1 -0
- package/dist/assets/{powershell.d6251d29.js → powershell.a493c1a9.js} +1 -1
- package/dist/assets/{projects.b0451bed.js → projects.bb50c3df.js} +1 -1
- package/dist/assets/{properties.21d46a91.js → properties.2ccd56b8.js} +1 -1
- package/dist/assets/{protobuf.0595884b.js → protobuf.a0e463a0.js} +1 -1
- package/dist/assets/{pug.02047604.js → pug.3909bb70.js} +1 -1
- package/dist/assets/{puppet.7c07ba75.js → puppet.298e3717.js} +1 -1
- package/dist/assets/{python.fe6c7a24.js → python.099f62ce.js} +1 -1
- package/dist/assets/{q.bfdf1988.js → q.64763e8e.js} +1 -1
- package/dist/assets/{r.d6b5ac21.js → r.f2c0470b.js} +1 -1
- package/dist/assets/resources.00028bf0.js +1 -0
- package/dist/assets/{rpm.92483469.js → rpm.cf84a89e.js} +1 -1
- package/dist/assets/{rst.b2603799.js → rst.26def927.js} +1 -1
- package/dist/assets/ru-RU.94a64be6.js +1 -0
- package/dist/assets/{ruby.0246dbd5.js → ruby.5fdee9b4.js} +1 -1
- package/dist/assets/{rust.dd8abd8d.js → rust.ab31720a.js} +1 -1
- package/dist/assets/{sas.d26b2302.js → sas.d35671d3.js} +1 -1
- package/dist/assets/{sass.a791aa27.js → sass.be16b14c.js} +1 -1
- package/dist/assets/{scheme.ef2b1440.js → scheme.da057889.js} +1 -1
- package/dist/assets/{shell.2f3bc735.js → shell.ba07ff2f.js} +1 -1
- package/dist/assets/{show-hint.6fa4d537.js → show-hint.4c3405db.js} +1 -1
- package/dist/assets/{sieve.99fca314.js → sieve.9a88af42.js} +1 -1
- package/dist/assets/{simple.0e90a38e.js → simple.306c97cf.js} +1 -1
- package/dist/assets/{slim.92d997b6.js → slim.11e72018.js} +1 -1
- package/dist/assets/{smalltalk.a9b3ffec.js → smalltalk.802facc0.js} +1 -1
- package/dist/assets/{smarty.c54a652c.js → smarty.410c0c8d.js} +1 -1
- package/dist/assets/{solr.1356a877.js → solr.43e14cbf.js} +1 -1
- package/dist/assets/{soy.e1b19eef.js → soy.18418f41.js} +1 -1
- package/dist/assets/{sparql.1335f7a5.js → sparql.5169332f.js} +1 -1
- package/dist/assets/{spreadsheet.e9096343.js → spreadsheet.2a7e9b13.js} +1 -1
- package/dist/assets/{sql.ac45a460.js → sql.53c1d1ba.js} +1 -1
- package/dist/assets/{stex.fb7fd990.js → stex.7c4e0033.js} +1 -1
- package/dist/assets/{stylus.d0281b2a.js → stylus.dfe1c737.js} +1 -1
- package/dist/assets/{swift.a9fd2d64.js → swift.e9cb43f5.js} +1 -1
- package/dist/assets/{tcl.8f7bdfb5.js → tcl.7cc3bef5.js} +1 -1
- package/dist/assets/{textile.ae199003.js → textile.353c8497.js} +1 -1
- package/dist/assets/{tiddlywiki.52caa0ed.js → tiddlywiki.f4ebe8db.js} +1 -1
- package/dist/assets/{tiki.831b9315.js → tiki.95dd78e4.js} +1 -1
- package/dist/assets/{toml.6f660b6b.js → toml.f50bb93a.js} +1 -1
- package/dist/assets/{tornado.01563722.js → tornado.3e0cfd8c.js} +1 -1
- package/dist/assets/triggers.1f1ace5f.js +1 -0
- package/dist/assets/{troff.f5f797f2.js → troff.a2834e8f.js} +1 -1
- package/dist/assets/{ttcn-cfg.a6927435.js → ttcn-cfg.447f138c.js} +1 -1
- package/dist/assets/{ttcn.24c6b925.js → ttcn.7d877404.js} +1 -1
- package/dist/assets/{turtle.d0e831a8.js → turtle.3b4898fd.js} +1 -1
- package/dist/assets/{twig.d5e90842.js → twig.53dd7cbe.js} +1 -1
- package/dist/assets/use-sync.c0f4dfab.js +28 -0
- package/dist/assets/{vb.bb33c7a5.js → vb.c3313898.js} +1 -1
- package/dist/assets/{vbscript.d8f8d95e.js → vbscript.0b106bed.js} +1 -1
- package/dist/assets/{velocity.26721ec5.js → velocity.c20bb29d.js} +1 -1
- package/dist/assets/{verilog.24512a86.js → verilog.2f6698b4.js} +1 -1
- package/dist/assets/{vhdl.6e64552d.js → vhdl.6127eef7.js} +1 -1
- package/dist/assets/{vue.4450af40.js → vue.bb756ea0.js} +1 -1
- package/dist/assets/{wast.79f64b4c.js → wast.66661aa3.js} +1 -1
- package/dist/assets/{webidl.860cea4e.js → webidl.0a42319e.js} +1 -1
- package/dist/assets/{xquery.23f4fa34.js → xquery.44dd200c.js} +1 -1
- package/dist/assets/{yacas.0d60e6b0.js → yacas.6f3863db.js} +1 -1
- package/dist/assets/{yaml-frontmatter.70ea956b.js → yaml-frontmatter.42fca60b.js} +1 -1
- package/dist/assets/{yaml.9d5c3ac9.js → yaml.d85fc2b2.js} +1 -1
- package/dist/assets/{z80.527b7cb8.js → z80.2bbe85a7.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +6 -6
- package/dist/assets/backing-directus.1ed89e33.js +0 -1
- package/dist/assets/bg-BG.0eca7613.js +0 -2
- package/dist/assets/de-DE.d1197f4c.js +0 -1
- package/dist/assets/es-MX.956444f4.js +0 -1
- package/dist/assets/filter-rules.e442e006.js +0 -76
- package/dist/assets/fr-CA.6d6d8d1f.js +0 -1
- package/dist/assets/fr-FR.7fa01b32.js +0 -1
- package/dist/assets/glossary.bf083fb1.js +0 -1
- package/dist/assets/index.40c42250.css +0 -1
- package/dist/assets/input-rich-text-html.1550fe06.js +0 -240
- 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/ko-KR.30f60079.js +0 -1
- package/dist/assets/pl-PL.22d5965f.js +0 -1
- package/dist/assets/ru-RU.39540ee0.js +0 -1
- package/dist/assets/use-sync.ded22f96.js +0 -28
- package/dist/robots.txt +0 -2
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import{a as s,o as i,b as c,w as n,g as t,e as u,B as l}from"./runtime-core.esm-bundler.b1f35d24.js";var e={};const d={class:"markdown-body"},h=t("blockquote",null,[t("p",null,[l("Permissions, validation, and the API\u2019s "),t("code",{class:""},"filter"),l(" parameter all rely on a specific JSON structure to define their rules. This page describes the syntax for creating flat, relational, or complex filter rules.")])],-1),p=t("p",null,[t("div",{class:"table-of-contents"},[t("ul",null,[t("li",null,[t("a",{href:"#syntax"},"Syntax")]),t("li",null,[t("a",{href:"#filter-operators"},"Filter Operators")]),t("li",null,[t("a",{href:"#relational"},"Relational")]),t("li",null,[t("a",{href:"#logical-operators"},"Logical Operators")]),t("li",null,[t("a",{href:"#dynamic-variables"},"Dynamic Variables")])])])],-1),_=t("h2",{id:"syntax"},[l("Syntax "),t("a",{class:"header-anchor",href:"#syntax"},"#")],-1),f=t("ul",null,[t("li",null,[t("strong",null,"Field"),l(" \u2014 Any valid root field, "),t("a",{href:"#relational"},"relational field"),l(", or "),t("a",{href:"#logical-operators"},"logical operator")]),t("li",null,[t("strong",null,"Operator"),l(" \u2014 Any valid "),t("a",{href:"#filter-operators"},"filter operator")]),t("li",null,[t("strong",null,"Value"),l(" \u2014 Any valid static value, or "),t("a",{href:"#dynamic-variables"},"dynamic variable")])],-1),g=t("pre",null,[t("code",{class:""},`{
|
|
2
|
+
<field>: {
|
|
3
|
+
<operator>: <value>
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
`)],-1),m=t("h3",{id:"examples"},[l("Examples "),t("a",{class:"header-anchor",href:"#examples"},"#")],-1),y=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
7
|
+
`),t("span",{class:"hljs-attr"},'"title"'),l(`: {
|
|
8
|
+
`),t("span",{class:"hljs-attr"},'"_contains"'),l(": "),t("span",{class:"hljs-string"},'"Directus"'),l(`
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`)])],-1),b=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
12
|
+
`),t("span",{class:"hljs-attr"},'"owner"'),l(`: {
|
|
13
|
+
`),t("span",{class:"hljs-attr"},'"_eq"'),l(": "),t("span",{class:"hljs-string"},'"$CURRENT_USER"'),l(`
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`)])],-1),v=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
17
|
+
`),t("span",{class:"hljs-attr"},'"datetime"'),l(`: {
|
|
18
|
+
`),t("span",{class:"hljs-attr"},'"_lte"'),l(": "),t("span",{class:"hljs-string"},'"$NOW"'),l(`
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`)])],-1),j=t("h2",{id:"filter-operators"},[l("Filter Operators "),t("a",{class:"header-anchor",href:"#filter-operators"},"#")],-1),R=t("table",null,[t("thead",null,[t("tr",null,[t("th",null,[l("Operator Title "),t("em",null,"(in app)")]),t("th",null,"Operator"),t("th",null,"Description")])]),t("tbody",null,[t("tr",null,[t("td",null,"Equals"),t("td",null,[t("code",{class:""},"_eq")]),t("td",null,"Equal to")]),t("tr",null,[t("td",null,"Doesn\u2019t equal"),t("td",null,[t("code",{class:""},"_neq")]),t("td",null,"Not equal to")]),t("tr",null,[t("td",null,"Less than"),t("td",null,[t("code",{class:""},"_lt")]),t("td",null,"Less than")]),t("tr",null,[t("td",null,"Less than or equal to"),t("td",null,[t("code",{class:""},"_lte")]),t("td",null,"Less than or equal to")]),t("tr",null,[t("td",null,"Greater than"),t("td",null,[t("code",{class:""},"_gt")]),t("td",null,"Greater than")]),t("tr",null,[t("td",null,"Greater than or equal to"),t("td",null,[t("code",{class:""},"_gte")]),t("td",null,"Greater than or equal to")]),t("tr",null,[t("td",null,"Is one of"),t("td",null,[t("code",{class:""},"_in")]),t("td",null,"Matches any of the values")]),t("tr",null,[t("td",null,"Is not one of"),t("td",null,[t("code",{class:""},"_nin")]),t("td",null,"Doesn\u2019t match any of the values")]),t("tr",null,[t("td",null,"Is null"),t("td",null,[t("code",{class:""},"_null")]),t("td",null,[l("Is "),t("code",{class:""},"null")])]),t("tr",null,[t("td",null,"Isn\u2019t null"),t("td",null,[t("code",{class:""},"_nnull")]),t("td",null,[l("Is not "),t("code",{class:""},"null")])]),t("tr",null,[t("td",null,"Contains"),t("td",null,[t("code",{class:""},"_contains")]),t("td",null,"Contains the substring")]),t("tr",null,[t("td",null,"Doesn\u2019t contain"),t("td",null,[t("code",{class:""},"_ncontains")]),t("td",null,"Doesn\u2019t contain the substring")]),t("tr",null,[t("td",null,"Starts with"),t("td",null,[t("code",{class:""},"_starts_with")]),t("td",null,"Starts with")]),t("tr",null,[t("td",null,"Doesn\u2019t start with"),t("td",null,[t("code",{class:""},"_nstarts_with")]),t("td",null,"Doesn\u2019t start with")]),t("tr",null,[t("td",null,"Ends with"),t("td",null,[t("code",{class:""},"_ends_with")]),t("td",null,"Ends with")]),t("tr",null,[t("td",null,"Doesn\u2019t end with"),t("td",null,[t("code",{class:""},"_nends_with")]),t("td",null,"Doesn\u2019t end with")]),t("tr",null,[t("td",null,"Is between"),t("td",null,[t("code",{class:""},"_between")]),t("td",null,"Is between two values (inclusive)")]),t("tr",null,[t("td",null,"Isn\u2019t between"),t("td",null,[t("code",{class:""},"_nbetween")]),t("td",null,"Is not between two values (inclusive)")]),t("tr",null,[t("td",null,"Is empty"),t("td",null,[t("code",{class:""},"_empty")]),t("td",null,[l("Is empty ("),t("code",{class:""},"null"),l(" or falsy)")])]),t("tr",null,[t("td",null,"Isn\u2019t empty"),t("td",null,[t("code",{class:""},"_nempty")]),t("td",null,[l("Is not empty ("),t("code",{class:""},"null"),l(" or falsy)")])]),t("tr",null,[t("td",null,"Intersects"),t("td",null,[t("code",{class:""},"_intersects"),l(),t("sup",null,"[1]")]),t("td",null,"Value intersects a given point")]),t("tr",null,[t("td",null,"Doesn\u2019t intersect"),t("td",null,[t("code",{class:""},"_nintersects"),l(),t("sup",null,"[1]")]),t("td",null,"Value does not intersect a given point")]),t("tr",null,[t("td",null,"Intersects Bounding box"),t("td",null,[t("code",{class:""},"_intersects_bbox"),l(),t("sup",null,"[1]")]),t("td",null,"Value is in a bounding box")]),t("tr",null,[t("td",null,"Doesn\u2019t intersect bounding box"),t("td",null,[t("code",{class:""},"_nintersects_bbox"),l(),t("sup",null,"[1]")]),t("td",null,"Value is not in a bounding box")])])],-1),w=t("p",null,[l("The following operator has no Title on the Filter Interface as it is "),t("strong",null,"only available in validation permissions"),l(":")],-1),x=t("table",null,[t("thead",null,[t("tr",null,[t("th",null,"Operator"),t("th",null,"Description")])]),t("tbody",null,[t("tr",null,[t("td",null,[t("code",{class:""},"_regex"),l(),t("sup",null,"[2]")]),t("td",null,"Field has to match regex")])])],-1),E=t("p",null,[t("sup",null,"[1]"),l(" Only available on Geometry types."),t("br"),t("sup",null,"[2]"),l(" JavaScript \u201Cflavor\u201D regex. Make sure to escape backslashes.")],-1),N=t("h2",{id:"relational"},[l("Relational "),t("a",{class:"header-anchor",href:"#relational"},"#")],-1),O=t("p",null,[l("You can target related values by nesting field names. For example, if you have a relational Many-to-One "),t("code",{class:""},"author"),l(" field, you can set a rule for the "),t("code",{class:""},"author.name"),l(" field using the following syntax.")],-1),I=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
22
|
+
`),t("span",{class:"hljs-attr"},'"author"'),l(`: {
|
|
23
|
+
`),t("span",{class:"hljs-attr"},'"name"'),l(`: {
|
|
24
|
+
`),t("span",{class:"hljs-attr"},'"_eq"'),l(": "),t("span",{class:"hljs-string"},'"Rijk van Zanten"'),l(`
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`)])],-1),T=t("h2",{id:"logical-operators"},[l("Logical Operators "),t("a",{class:"header-anchor",href:"#logical-operators"},"#")],-1),q=t("p",null,[l("You can nest or group multiple rules using the "),t("code",{class:""},"_and"),l(" or "),t("code",{class:""},"_or"),l(" logical operators. Each logical operator holds an array of Filter Rules, allowing for more complex filtering. Also note in the example that Logical Operators can be sub-nested into Logical Operators. However, they cannot be sub-nested into Filter Rules.")],-1),D=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
29
|
+
`),t("span",{class:"hljs-attr"},'"_or"'),l(`: [
|
|
30
|
+
{
|
|
31
|
+
`),t("span",{class:"hljs-attr"},'"_and"'),l(`: [
|
|
32
|
+
{
|
|
33
|
+
`),t("span",{class:"hljs-attr"},'"user_created"'),l(`: {
|
|
34
|
+
`),t("span",{class:"hljs-attr"},'"_eq"'),l(": "),t("span",{class:"hljs-string"},'"$CURRENT_USER"'),l(`
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
`),t("span",{class:"hljs-attr"},'"status"'),l(`: {
|
|
39
|
+
`),t("span",{class:"hljs-attr"},'"_in"'),l(": ["),t("span",{class:"hljs-string"},'"published"'),l(", "),t("span",{class:"hljs-string"},'"draft"'),l(`]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
`),t("span",{class:"hljs-attr"},'"_and"'),l(`: [
|
|
46
|
+
{
|
|
47
|
+
`),t("span",{class:"hljs-attr"},'"user_created"'),l(`: {
|
|
48
|
+
`),t("span",{class:"hljs-attr"},'"_neq"'),l(": "),t("span",{class:"hljs-string"},'"$CURRENT_USER"'),l(`
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
`),t("span",{class:"hljs-attr"},'"status"'),l(`: {
|
|
53
|
+
`),t("span",{class:"hljs-attr"},'"_in"'),l(": ["),t("span",{class:"hljs-string"},'"published"'),l(`]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
`)])],-1),U=t("h3",{id:"some-vs-none-in-one-to-many"},[l("Some vs None in One-to-Many "),t("a",{class:"header-anchor",href:"#some-vs-none-in-one-to-many"},"#")],-1),F=t("p",null,"When applying filters to a one-to-many field, Directus will default to a \u201Csome\u201D search, for example in:",-1),$=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
61
|
+
`),t("span",{class:"hljs-attr"},'"categories"'),l(`: {
|
|
62
|
+
`),t("span",{class:"hljs-attr"},'"name"'),l(`: {
|
|
63
|
+
`),t("span",{class:"hljs-attr"},'"_eq"'),l(": "),t("span",{class:"hljs-string"},'"Recipe"'),l(`
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`)])],-1),C=t("p",null,[l("the top level parent will be returned if "),t("em",null,"one of"),l(" the categories has the name "),t("code",{class:""},"Recipe"),l(". This behavior can be overridden by using the explicit "),t("code",{class:""},"_some"),l(" and "),t("code",{class:""},"_none"),l(" operators, for example:")],-1),S=t("pre",null,[t("code",{class:"language-json"},[l(`{
|
|
68
|
+
`),t("span",{class:"hljs-attr"},'"categories"'),l(`: {
|
|
69
|
+
`),t("span",{class:"hljs-attr"},'"_none"'),l(`: {
|
|
70
|
+
`),t("span",{class:"hljs-attr"},'"name"'),l(`: {
|
|
71
|
+
`),t("span",{class:"hljs-attr"},'"_eq"'),l(": "),t("span",{class:"hljs-string"},'"Recipe"'),l(`
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`)])],-1),k=t("p",null,"will fetch all parent items that don\u2019t have the category \u201CRecipe\u201D",-1),L=t("h2",{id:"dynamic-variables"},[l("Dynamic Variables "),t("a",{class:"header-anchor",href:"#dynamic-variables"},"#")],-1),V=t("p",null,[l("In addition to static values, you can also filter against "),t("em",null,"dynamic"),l(" values using the following variables.")],-1),W=t("ul",null,[t("li",null,[t("code",{class:""},"$CURRENT_USER"),l(" \u2014 The primary key of the currently authenticated user")]),t("li",null,[t("code",{class:""},"$CURRENT_ROLE"),l(" \u2014 The primary key of the role for the currently authenticated user")]),t("li",null,[t("code",{class:""},"$NOW"),l(" \u2014 The current timestamp")]),t("li",null,[t("code",{class:""},"$NOW(<adjustment>)"),l(" - The current timestamp plus/minus a given distance, for example "),t("code",{class:""},"$NOW(-1 year)"),l(", "),t("code",{class:""},"$NOW(+2 hours)")])],-1),A={class:"tip hint"},B=t("div",{class:"hint-title"},"Functions",-1),G=l("You can also use "),M=l("Function Parameters"),P=l(" when building Filters."),Y=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Nested User / Role variables in Permissions"),t("p",null,[l("When configuring permissions, "),t("code",{class:""},"$CURRENT_USER"),l(" and "),t("code",{class:""},"$CURRENT_ROLE"),l(" allow you to specify any (nested) field under the current user/role as well as the root ID. For example: "),t("code",{class:""},"$CURRENT_ROLE.name"),l(" or "),t("code",{class:""},"$CURRENT_USER.avatar.filesize"),l(". This includes custom fields that were added to the directus_users/directus_roles tables.")]),t("p",null,"Note: This feature is only available for permissions, validation, and presets. Regular filters and conditional fields currently only support the root ID.")],-1),J={title:"Filter Rules",modularExtension:!1},z={name:"filter-rules",setup(H,{expose:a}){return a({frontmatter:{title:"Filter Rules",modularExtension:!1}}),(Z,K)=>{const o=s("router-link"),r=s("docswrapper");return i(),c(r,{frontmatter:J},{default:n(()=>[t("div",d,[h,p,_,f,g,m,y,b,v,j,R,w,x,E,N,O,I,T,q,D,U,F,$,C,S,k,L,V,W,t("div",A,[B,t("p",null,[G,u(o,{to:"/docs/reference/query/#functions"},{default:n(()=>[M]),_:1}),P])]),Y])]),_:1})}}};typeof e=="function"&&e(z);export{z as default,J as frontmatter};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import{a as n,o as h,b as d,w as a,g as s,e as l,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";var o={};const i={class:"markdown-body"},p=s("div",{class:"two-up"},[s("div",{class:"left"},[s("blockquote",null,[s("p",null,"Flows enable custom, event-driven data processing and task automation within Directus.")])]),s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-flow-object"},"The Flow Object")]),s("li",null,[s("a",{href:"#list-flows"},"List Flows")]),s("li",null,[s("a",{href:"#retrieve-a-flow"},"Retrieve a flow")]),s("li",null,[s("a",{href:"#create-a-flow"},"Create a Flow")]),s("li",null,[s("a",{href:"#create-multiple-flows"},"Create Multiple Flows")]),s("li",null,[s("a",{href:"#update-a-flow"},"Update a Flow")]),s("li",null,[s("a",{href:"#update-multiple-flows"},"Update Multiple Flows")]),s("li",null,[s("a",{href:"#delete-a-flow"},"Delete a Flow")]),s("li",null,[s("a",{href:"#delete-multiple-flows"},"Delete Multiple Flows")]),s("li",null,[s("a",{href:"#flow-with-get-webhook-trigger"},"Flow with GET webhook trigger")]),s("li",null,[s("a",{href:"#flow-with-post-webhook-trigger"},"Flow with POST webhook trigger")])])])])])],-1),u=s("hr",null,null,-1),f=s("h2",{id:"the-flow-object"},[e("The Flow Object "),s("a",{class:"header-anchor",href:"#the-flow-object"},"#")],-1),_={class:"two-up"},g={class:"left"},w={class:"definitions"},m=s("p",null,[s("code",{class:""},"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the flow.")],-1),j=s("p",null,[s("code",{class:""},"name"),e(),s("strong",null,"string"),s("br"),e(" Name for the flow.")],-1),y=s("p",null,[s("code",{class:""},"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon displayed in the Admin App for the flow.")],-1),b=s("p",null,[s("code",{class:""},"color"),e(),s("strong",null,"string"),s("br"),e(" Color of the icon displayed in the Admin App for the flow.")],-1),q=s("p",null,[s("code",{class:""},"note"),e(),s("strong",null,"text"),s("br"),e(" Short description displayed in the Admin App.")],-1),x=s("p",null,[s("code",{class:""},"status"),e(),s("strong",null,"string"),s("br"),e(" Current status of the flow. One of "),s("code",{class:""},"active"),e(", "),s("code",{class:""},"inactive"),e(". Defaults to "),s("code",{class:""},"active"),e(" when not specified.")],-1),v=s("p",null,[s("code",{class:""},"trigger"),e(),s("strong",null,"string"),s("br"),e(" Type of trigger for the flow. One of "),s("code",{class:""},"hook"),e(", "),s("code",{class:""},"webhook"),e(", "),s("code",{class:""},"operation"),e(", "),s("code",{class:""},"schedule"),e(", "),s("code",{class:""},"manual"),e(".")],-1),E=s("p",null,[s("code",{class:""},"options"),e(),s("strong",null,"json"),s("br"),e(" Options of the selected trigger for the flow.")],-1),T=s("p",null,[s("code",{class:""},"accountability"),e(),s("strong",null,"string"),s("br"),e(" The permission used during the flow. One of "),s("code",{class:""},"$public"),e(", "),s("code",{class:""},"$trigger"),e(", "),s("code",{class:""},"$full"),e(", or UUID of a role.")],-1),k=s("p",null,[s("code",{class:""},"date_created"),e(),s("strong",null,"timestamp"),s("br"),e(" Timestamp in ISO8601 when the flow was created.")],-1),P=s("code",{class:""},"user_created",-1),S=e(),R=s("strong",null,"many-to-one",-1),F=s("br",null,null,-1),A=e(" The user who created the flow. Many-to-one to "),O=e("users"),D=e("."),I=s("p",null,[s("code",{class:""},"operation"),e(),s("strong",null,"string"),s("br"),e(" UUID of the operation connected to the trigger in the flow.")],-1),M=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-string"},'"2fab3b9d-0543-4b87-8a30-3c5ee66fedf1"'),e(`,
|
|
3
|
+
`),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"My Flow"'),e(`,
|
|
4
|
+
`),s("span",{class:"hljs-attr"},'"icon"'),e(": "),s("span",{class:"hljs-string"},'"bolt"'),e(`,
|
|
5
|
+
`),s("span",{class:"hljs-attr"},'"color"'),e(": "),s("span",{class:"hljs-string"},'"#112233"'),e(`,
|
|
6
|
+
`),s("span",{class:"hljs-attr"},'"note"'),e(": "),s("span",{class:"hljs-string"},'"Note for my flow"'),e(`,
|
|
7
|
+
`),s("span",{class:"hljs-attr"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
|
|
8
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"manual"'),e(`,
|
|
9
|
+
`),s("span",{class:"hljs-attr"},'"accountability"'),e(": "),s("span",{class:"hljs-string"},'"$trigger"'),e(`,
|
|
10
|
+
`),s("span",{class:"hljs-attr"},'"date_created"'),e(": "),s("span",{class:"hljs-string"},'"2022-05-11T13:14:52Z"'),e(`,
|
|
11
|
+
`),s("span",{class:"hljs-attr"},'"user_created"'),e(": "),s("span",{class:"hljs-string"},'"12e62fd0-29c7-4fd3-b3d3-c7a39933e8af"'),e(`,
|
|
12
|
+
`),s("span",{class:"hljs-attr"},'"operation"'),e(": "),s("span",{class:"hljs-string"},'"92e82998-e421-412f-a513-13701e83e4ce"'),e(`
|
|
13
|
+
}
|
|
14
|
+
`)])])],-1),C=s("hr",null,null,-1),L=s("h2",{id:"list-flows"},[e("List Flows "),s("a",{class:"header-anchor",href:"#list-flows"},"#")],-1),G=s("p",null,"List all flows that exist in Directus.",-1),Q={class:"two-up"},U={class:"left"},B=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),H=e("Supports all "),N=e("global query parameters"),$=e("."),V=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),Z=e("An array of up to "),z=e("limit"),J=e(),K=s("a",{href:"#the-flow-object"},"flow objects",-1),W=e(". If no items are available, data will be an empty array."),X={class:"right"},Y=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),ss=s("pre",null,[s("code",{class:""},`GET /flows
|
|
15
|
+
SEARCH /flows
|
|
16
|
+
`)],-1),es=e("Learn more about SEARCH ->"),as=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),ts=s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
17
|
+
`)],-1),ls=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
18
|
+
flows: [directus_flows]
|
|
19
|
+
}
|
|
20
|
+
`)])],-1),ns=s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")],-1),os=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
21
|
+
flows {
|
|
22
|
+
id
|
|
23
|
+
name
|
|
24
|
+
status
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`)])],-1),rs=s("hr",null,null,-1),cs=s("h2",{id:"retrieve-a-flow"},[e("Retrieve a flow "),s("a",{class:"header-anchor",href:"#retrieve-a-flow"},"#")],-1),hs=s("p",null,"List an existing flow by primary key.",-1),ds={class:"two-up"},is={class:"left"},ps=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),us=e("Supports all "),fs=e("global query parameters"),_s=e("."),gs=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),ws=s("p",null,[e("Returns the requested "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),ms=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 /flows/:id
|
|
28
|
+
`)]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:""},`GET /flows/2fc325fb-299b-4d20-a9e7-a34349dee8b2
|
|
29
|
+
`)]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
30
|
+
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
31
|
+
flows_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_flows
|
|
32
|
+
}
|
|
33
|
+
`)])]),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(` {
|
|
34
|
+
flows_by_id(id: `),s("span",{class:"hljs-string"},'"2fc325fb-299b-4d20-a9e7-a34349dee8b2"'),e(`) {
|
|
35
|
+
id
|
|
36
|
+
name
|
|
37
|
+
status
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`)])])],-1),js=s("hr",null,null,-1),ys=s("h2",{id:"create-a-flow"},[e("Create a Flow "),s("a",{class:"header-anchor",href:"#create-a-flow"},"#")],-1),bs=s("p",null,"Create a new flow.",-1),qs={class:"two-up"},xs={class:"left"},vs=s("h3",{id:"query-parameters-3"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Es=e("Supports all "),Ts=e("global query parameters"),ks=e("."),Ps=s("h3",{id:"request-body"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Ss=s("p",null,[e("A partial "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),Rs=s("h3",{id:"returns-3"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),Fs=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the created flow.")],-1),As=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 /flows
|
|
41
|
+
`)]),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"},"// POST /flows"),e(`
|
|
42
|
+
|
|
43
|
+
{
|
|
44
|
+
`),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"My Flow"'),e(`,
|
|
45
|
+
`),s("span",{class:"hljs-attr"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
|
|
46
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"manual"'),e(`
|
|
47
|
+
}
|
|
48
|
+
`)])]),s("h3",{id:"graphql-3"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-3"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
49
|
+
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
50
|
+
create_flows_item(data: create_directus_flows_input!): directus_flows
|
|
51
|
+
}
|
|
52
|
+
`)])]),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(` {
|
|
53
|
+
create_flows_item(data: { name: `),s("span",{class:"hljs-string"},'"My Flow"'),e(", status: "),s("span",{class:"hljs-string"},'"active"'),e(", trigger: "),s("span",{class:"hljs-string"},'"manual"'),e(` }) {
|
|
54
|
+
id
|
|
55
|
+
name
|
|
56
|
+
status
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`)])])],-1),Os=s("hr",null,null,-1),Ds=s("h2",{id:"create-multiple-flows"},[e("Create Multiple Flows "),s("a",{class:"header-anchor",href:"#create-multiple-flows"},"#")],-1),Is=s("p",null,"Create multiple new flows.",-1),Ms={class:"two-up"},Cs={class:"left"},Ls=s("h3",{id:"query-parameters-4"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Gs=e("Supports all "),Qs=e("global query parameters"),Us=e("."),Bs=s("h3",{id:"request-body-2"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),Hs=s("p",null,[e("An array of partial "),s("a",{href:"#the-flow-object"},"flow objects"),e(".")],-1),Ns=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),$s=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the created flow.")],-1),Vs=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 /flows
|
|
60
|
+
`)]),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"},"// POST /flows"),e(`
|
|
61
|
+
|
|
62
|
+
[
|
|
63
|
+
{
|
|
64
|
+
`),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"My Flow"'),e(`,
|
|
65
|
+
`),s("span",{class:"hljs-attr"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
|
|
66
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"manual"'),e(`
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
`),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"Another Flow"'),e(`,
|
|
70
|
+
`),s("span",{class:"hljs-attr"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
|
|
71
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"webhook"'),e(`
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
`)])]),s("h3",{id:"graphql-4"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
75
|
+
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
76
|
+
create_flows_items(data: [create_directus_flows_input!]!): [directus_flows]
|
|
77
|
+
}
|
|
78
|
+
`)])]),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(` {
|
|
79
|
+
create_flows_items(
|
|
80
|
+
data: [
|
|
81
|
+
{
|
|
82
|
+
`),s("span",{class:"hljs-string"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"My Flow"'),e(`,
|
|
83
|
+
`),s("span",{class:"hljs-string"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
|
|
84
|
+
`),s("span",{class:"hljs-string"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"manual"'),e(`
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
`),s("span",{class:"hljs-string"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"Another Flow"'),e(`,
|
|
88
|
+
`),s("span",{class:"hljs-string"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
|
|
89
|
+
`),s("span",{class:"hljs-string"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"webhook"'),e(`
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
) {
|
|
93
|
+
id
|
|
94
|
+
name
|
|
95
|
+
status
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`)])])],-1),Zs=s("hr",null,null,-1),zs=s("h2",{id:"update-a-flow"},[e("Update a Flow "),s("a",{class:"header-anchor",href:"#update-a-flow"},"#")],-1),Js=s("p",null,"Update an existing flow.",-1),Ks={class:"two-up"},Ws={class:"left"},Xs=s("h3",{id:"query-parameters-5"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),Ys=e("Supports all "),se=e("global query parameters"),ee=e("."),ae=s("h3",{id:"request-body-3"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),te=s("p",null,[e("A partial "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),le=s("h3",{id:"returns-5"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),ne=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the updated flow.")],-1),oe=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 /flows/:id
|
|
99
|
+
`)]),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 /flows/2fc325fb-299b-4d20-a9e7-a34349dee8b2"),e(`
|
|
100
|
+
|
|
101
|
+
{
|
|
102
|
+
`),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"My Updated Flow"'),e(`
|
|
103
|
+
}
|
|
104
|
+
`)])]),s("h3",{id:"graphql-5"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-5"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
105
|
+
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
106
|
+
update_flows_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_flows_input): directus_flows
|
|
107
|
+
}
|
|
108
|
+
`)])]),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(` {
|
|
109
|
+
update_flows_item(id: `),s("span",{class:"hljs-string"},'"2fc325fb-299b-4d20-a9e7-a34349dee8b2"'),e(", data: { name: "),s("span",{class:"hljs-string"},'"My Updated Flow"'),e(` }) {
|
|
110
|
+
id
|
|
111
|
+
name
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`)])])],-1),re=s("hr",null,null,-1),ce=s("h2",{id:"update-multiple-flows"},[e("Update Multiple Flows "),s("a",{class:"header-anchor",href:"#update-multiple-flows"},"#")],-1),he=s("p",null,"Update multiple existing flows.",-1),de={class:"two-up"},ie={class:"left"},pe=s("h3",{id:"query-parameters-6"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),ue=e("Supports all "),fe=e("global query parameters"),_e=e("."),ge=s("h3",{id:"request-body-4"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),we=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 flows 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-flow-object"},"the flow object"),e("\u2019s properties.")])],-1),me=s("h3",{id:"returns-6"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),je=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow objects"),e(" for the updated flows.")],-1),ye=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 /flows
|
|
115
|
+
`)]),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 /flows"),e(`
|
|
116
|
+
|
|
117
|
+
{
|
|
118
|
+
`),s("span",{class:"hljs-attr"},'"keys"'),e(": ["),s("span",{class:"hljs-string"},'"3f2facab-7f05-4ee8-a7a3-d8b9c634a1fc"'),e(", "),s("span",{class:"hljs-string"},'"7259bfa8-3786-45c6-8c08-cc688e7ba229"'),e(`],
|
|
119
|
+
`),s("span",{class:"hljs-attr"},'"data"'),e(`: {
|
|
120
|
+
`),s("span",{class:"hljs-attr"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"inactive"'),e(`
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`)])]),s("h3",{id:"graphql-6"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-6"},"#")]),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_flows_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_flows_input): [directus_flows]
|
|
126
|
+
}
|
|
127
|
+
`)])]),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(` {
|
|
128
|
+
update_flows_items(
|
|
129
|
+
ids: [`),s("span",{class:"hljs-string"},'"3f2facab-7f05-4ee8-a7a3-d8b9c634a1fc"'),e(", "),s("span",{class:"hljs-string"},'"7259bfa8-3786-45c6-8c08-cc688e7ba229"'),e(`]
|
|
130
|
+
data: { status: `),s("span",{class:"hljs-string"},'"inactive"'),e(` }
|
|
131
|
+
) {
|
|
132
|
+
id
|
|
133
|
+
name
|
|
134
|
+
status
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`)])])],-1),be=s("hr",null,null,-1),qe=s("h2",{id:"delete-a-flow"},[e("Delete a Flow "),s("a",{class:"header-anchor",href:"#delete-a-flow"},"#")],-1),xe=s("p",null,"Delete an existing flow.",-1),ve=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 /flows/:id
|
|
138
|
+
`)]),s("h5",{id:"example-12"},[e("Example "),s("a",{class:"header-anchor",href:"#example-12"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /flows/12204ee2-2c82-4d9a-b044-2f4842a11dba
|
|
139
|
+
`)]),s("h3",{id:"graphql-7"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-7"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
140
|
+
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
141
|
+
delete_flows_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): delete_one
|
|
142
|
+
}
|
|
143
|
+
`)])]),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(` {
|
|
144
|
+
delete_flows_item(id: `),s("span",{class:"hljs-string"},'"12204ee2-2c82-4d9a-b044-2f4842a11dba"'),e(`) {
|
|
145
|
+
id
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`)])])])],-1),Ee=s("hr",null,null,-1),Te=s("h2",{id:"delete-multiple-flows"},[e("Delete Multiple Flows "),s("a",{class:"header-anchor",href:"#delete-multiple-flows"},"#")],-1),ke=s("p",null,"Delete multiple existing flows.",-1),Pe=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-5"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-5"},"#")]),s("p",null,"An array of flows 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 /flows
|
|
149
|
+
`)]),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 /flows"),e(`
|
|
150
|
+
[`),s("span",{class:"hljs-string"},'"25821236-8c2a-4f89-8fdc-c7d01f35877d"'),e(", "),s("span",{class:"hljs-string"},'"02b9486e-4273-4fd5-b94b-e18fd923d1ed"'),e(", "),s("span",{class:"hljs-string"},'"7d62f1e9-a83f-407b-84f8-1c184f014501"'),e(`]
|
|
151
|
+
`)])]),s("h3",{id:"graphql-8"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-8"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
|
|
152
|
+
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
|
|
153
|
+
delete_flows_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
|
|
154
|
+
}
|
|
155
|
+
`)])]),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(` {
|
|
156
|
+
delete_flows_items(
|
|
157
|
+
ids: [
|
|
158
|
+
`),s("span",{class:"hljs-string"},'"25821236-8c2a-4f89-8fdc-c7d01f35877d"'),e(`
|
|
159
|
+
`),s("span",{class:"hljs-string"},'"02b9486e-4273-4fd5-b94b-e18fd923d1ed"'),e(`
|
|
160
|
+
`),s("span",{class:"hljs-string"},'"7d62f1e9-a83f-407b-84f8-1c184f014501"'),e(`
|
|
161
|
+
]
|
|
162
|
+
) {
|
|
163
|
+
ids
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`)])])])],-1),Se=s("h2",{id:"flow-with-get-webhook-trigger"},[e("Flow with GET webhook trigger "),s("a",{class:"header-anchor",href:"#flow-with-get-webhook-trigger"},"#")],-1),Re=s("p",null,"Start a flow with GET webhook trigger.",-1),Fe=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-9"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-9"},"#")]),s("p",null,"Result of the flow, if any.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-9"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-9"},"#")]),s("pre",null,[s("code",{class:""},`GET /flows/trigger/:flow_uuid
|
|
167
|
+
`)]),s("h5",{id:"example-16"},[e("Example "),s("a",{class:"header-anchor",href:"#example-16"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// GET /flows/trigger/202a940b-a00b-47df-b832-369c53f13122"),e(`
|
|
168
|
+
`),s("span",{class:"hljs-comment"},"// Payload here"),e(`
|
|
169
|
+
`)])])])],-1),Ae=s("h2",{id:"flow-with-post-webhook-trigger"},[e("Flow with POST webhook trigger "),s("a",{class:"header-anchor",href:"#flow-with-post-webhook-trigger"},"#")],-1),Oe=s("p",null,"Start a flow with POST webhook trigger.",-1),De=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,"Payload for the POST request."),s("h3",{id:"returns-10"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-10"},"#")]),s("p",null,"Result of the flow, if any.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-10"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-10"},"#")]),s("pre",null,[s("code",{class:""},`POST /flows/trigger/:flow_uuid
|
|
170
|
+
`)]),s("h5",{id:"example-17"},[e("Example "),s("a",{class:"header-anchor",href:"#example-17"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /flows/trigger/202a940b-a00b-47df-b832-369c53f13122"),e(`
|
|
171
|
+
`),s("span",{class:"hljs-comment"},"// Payload here"),e(`
|
|
172
|
+
`)])])])],-1),Ie={title:"Flows",modularExtension:!1,pageClass:"page-reference"},Me={name:"flows",setup(Ce,{expose:r}){return r({frontmatter:{title:"Flows",modularExtension:!1,pageClass:"page-reference"}}),(Le,Ge)=>{const t=n("router-link"),c=n("docswrapper");return h(),d(c,{frontmatter:Ie},{default:a(()=>[s("div",i,[p,u,f,s("div",_,[s("div",g,[s("div",w,[m,j,y,b,q,x,v,E,T,k,s("p",null,[P,S,R,F,A,l(t,{to:"/docs/reference/system/users/#the-users-object"},{default:a(()=>[O]),_:1}),D]),I])]),M]),C,L,G,s("div",Q,[s("div",U,[B,s("p",null,[H,l(t,{to:"/docs/reference/query"},{default:a(()=>[N]),_:1}),$]),V,s("p",null,[Z,l(t,{to:"/docs/reference/query/#limit"},{default:a(()=>[z]),_:1}),J,K,W])]),s("div",X,[Y,ss,s("p",null,[l(t,{to:"/docs/reference/introduction/#search-http-method"},{default:a(()=>[es]),_:1})]),as,ts,ls,ns,os])]),rs,cs,hs,s("div",ds,[s("div",is,[ps,s("p",null,[us,l(t,{to:"/docs/reference/query"},{default:a(()=>[fs]),_:1}),_s]),gs,ws]),ms]),js,ys,bs,s("div",qs,[s("div",xs,[vs,s("p",null,[Es,l(t,{to:"/docs/reference/query"},{default:a(()=>[Ts]),_:1}),ks]),Ps,Ss,Rs,Fs]),As]),Os,Ds,Is,s("div",Ms,[s("div",Cs,[Ls,s("p",null,[Gs,l(t,{to:"/docs/reference/query"},{default:a(()=>[Qs]),_:1}),Us]),Bs,Hs,Ns,$s]),Vs]),Zs,zs,Js,s("div",Ks,[s("div",Ws,[Xs,s("p",null,[Ys,l(t,{to:"/docs/reference/query"},{default:a(()=>[se]),_:1}),ee]),ae,te,le,ne]),oe]),re,ce,he,s("div",de,[s("div",ie,[pe,s("p",null,[ue,l(t,{to:"/docs/reference/query"},{default:a(()=>[fe]),_:1}),_e]),ge,we,me,je]),ye]),be,qe,xe,ve,Ee,Te,ke,Pe,Se,Re,Fe,Ae,Oe,De])]),_:1})}}};typeof o=="function"&&o(Me);export{Me as default,Ie as frontmatter};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{a,o as c,b as d,w as o,g as e,e as n,B as t}from"./runtime-core.esm-bundler.b1f35d24.js";var l={};const h={class:"markdown-body"},_=e("blockquote",null,[e("p",null,"Flows enable custom, event-driven data processing and task automation within Directus. Each Flow is composed of one Trigger, followed by a series of Operations.")],-1),u=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#what's-a-flow%3F"},"What's a Flow?")]),e("li",null,[e("a",{href:"#create-a-flow"},"Create a Flow")]),e("li",null,[e("a",{href:"#the-flow-object"},"The Flow Object")]),e("li",null,[e("a",{href:"#logs"},"Logs")])])])],-1),p=t(" ::: Before You Begin [Learn Directus](/getting-started/learn-directus) ::: "),f=e("h2",{id:"what%E2%80%99s-a-flow%3F"},[t("What\u2019s a Flow? "),e("a",{class:"header-anchor",href:"#what%E2%80%99s-a-flow%3F"},"#")],-1),w=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/flows/flows/flows-20220603A/whats-a-flow-20220603A.webp",alt:"What's a Flow?"})],-1),g=t("Each Flow begins with one Trigger, which defines the actions that start the Flow. Triggers can be some event or action within the app, an incoming webhook, a cron job, or manual click of a button. Please see the documentation on "),m=t("Triggers"),b=t(" for more details."),O=t("Operations are the actions performed after the Trigger, which include things like creating new Items in a Collection, sending off emails, pushing "),y=e("em",null,"in-app",-1),F=t(" notifications, or sending webhooks, just to name a few options. You can even set up divergent chains of Flow Operations, which execute conditionally, based on whether one Operation passed or failed. To ensure data is passed on as expected, a "),v=t("console log"),j=t(" is also included to help design and troubleshoot your Flows. Please see the documentation on "),k=t("Operations"),T=t(" for more details."),x=e("p",null,[t("Once a Flow is triggered, a "),e("a",{href:"#the-flow-object"},"Flow JSON Object"),t(" is created which stores data from the Trigger event. Then as each Operation in the flow executes, the data generated is added onto this Flow Object. Every Operation in a Flow has access to this Flow Object.")],-1),A=e("h2",{id:"create-a-flow"},[t("Create a Flow "),e("a",{class:"header-anchor",href:"#create-a-flow"},"#")],-1),S=e("video",{title:"",autoplay:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/configuration/flows/flows/flows-20220603A/create-a-flow-20220603A.mp4",type:"video/mp4"})],-1),P=e("p",null,"To create a Flow, follow these steps:",-1),C=e("li",null,[t("Navigate to "),e("strong",null,"\u201CSettings > Flows\u201D"),t(" and click "),e("span",{mi:"",btn:""},"add"),t(" in the Page Header. A side menu will appear.")],-1),N=e("li",null,[t("Under "),e("strong",null,"Flow Setup"),t(", fill in a name for the Flow."),e("br"),t(" Optional: Set a status, material icon, description or color to help remember the Flow.")],-1),E=t("Select your "),$=e("strong",null,"Activity and Logs Tracking",-1),B=t(" preference as desired."),L=e("br",null,null,-1),V=t(" To learn more, please see "),W=t("Activity"),D=t(" and "),J=t("Logs"),I=t("."),G=t("Click "),H=e("span",{mi:"",btn:""},"arrow_forward",-1),Y=t(" to navigate to "),q=e("strong",null,"Trigger Setup",-1),z=t(", select a "),R=t("Trigger"),U=t(" type and configure as desired."),K=e("li",null,[t("Click "),e("span",{mi:"",btn:""},"done"),t(" in the Menu Header and you will be taken to the Flow Grid Area."),e("br"),t(" A Trigger Panel will be on the Flow Grid.")],-1),M=e("li",null,[t("On the Trigger Panel, click "),e("span",{mi:""},"add"),t(" and the "),e("strong",null,"Create Operation"),t(" side menu will open.")],-1),Q=t("Set a name, select the "),X=t("Operation"),Z=t(" type, and configure as desired."),ee=e("br",null,null,-1),te=t(" The unique name will be converted into an Operation Key, used on the "),oe=e("a",{href:"#the-flow-object"},"Flow Object",-1),se=t("."),ne=e("br",null,null,-1),ae=t(" If no name is set, a name and key will be auto-generated."),le=e("li",null,[t("When done, click "),e("span",{mi:"",btn:""},"done"),t(" in the Page Header to confirm and return to the Flow Grid Area.")],-1),ie=e("li",null,[t("On the newly created Operation Panel: "),e("ul",null,[e("li",null,[t("Click "),e("span",{mi:"",icon:""},"add"),t(" to add Operation after successful execution of the current Operation.")]),e("li",null,[t("Click "),e("span",{mi:"",icon:""},"remove"),t(" to add Operation after a failed execution of the the current Operation.")])])],-1),re=e("li",null,"Repeat steps 8-10 to create your Flow as desired.",-1),ce=e("li",null,[e("strong",null,"Optional:"),t(" To edit a Trigger or Operation Panel, click "),e("span",{mi:"",icon:""},"edit"),t(" and make edits as desired.")],-1),de=e("li",null,[e("strong",null,"Optional:"),t(" To delete an Operation Panel, click "),e("span",{mi:"",icon:""},"more_vert"),t(" and click "),e("span",{mi:"",icon:"",dngr:""},"delete"),t(".")],-1),he=e("h2",{id:"the-flow-object"},[t("The Flow Object "),e("a",{class:"header-anchor",href:"#the-flow-object"},"#")],-1),_e=e("p",null,"When a Flow is triggered, a JSON object is created to store all data generated within the Flow. When you create an Operation, a key is generated. This key is appended to the Flow Object when the Operation executes. It is used to add the associated Operation\u2019s data onto the Flows Object. As each Operation in the Flow executes, it has access to the Flow Object and therefore the data generated from preceding Operations.",-1),ue=e("p",null,[t("The following JSON object is a simple example of a Flow with two Operations. The "),e("code",{class:""},"$trigger"),t(", "),e("code",{class:""},"$last"),t(", and "),e("code",{class:""},"$accountability"),t(" keys are included on every Flow. An Operation key will be generated for each Operation that executes successfully.")],-1),pe=t(" @TODO: Uncomment once Azzy's doc is live: For more details, see the API Reference for [Flows](reference/system/flows) and [Operations](reference/system/operations). "),fe=e("pre",null,[e("code",{class:"language-JSON"},[t(`{
|
|
2
|
+
`),e("span",{class:"hljs-attr"},'"$trigger"'),t(": {}, "),e("span",{class:"hljs-comment"},"// Data generated by the Flow's Trigger."),t(`
|
|
3
|
+
`),e("span",{class:"hljs-attr"},'"$last"'),t(": "),e("span",{class:"hljs-literal"},"null"),t(", "),e("span",{class:"hljs-comment"},"// Data from the last Operation in the flow, for easy access!"),t(`
|
|
4
|
+
`),e("span",{class:"hljs-attr"},'"$accountability"'),t(": {}, "),e("span",{class:"hljs-comment"},"// Provides details on who/what tripped the Trigger and generated this Flow Object."),t(`
|
|
5
|
+
`),e("span",{class:"hljs-attr"},'"operation_key"'),t(": { "),e("span",{class:"hljs-comment"},"// The data (if any) generated by the first Operation."),t(`
|
|
6
|
+
`),e("span",{class:"hljs-attr"},'"some_nested_key"'),t(": "),e("span",{class:"hljs-string"},'"Some nested value."'),t(`,
|
|
7
|
+
},
|
|
8
|
+
`),e("span",{class:"hljs-attr"},'"operation_key_2"'),t(": "),e("span",{class:"hljs-literal"},"null"),t(", "),e("span",{class:"hljs-comment"},"// Value is null if no data was generated during an Operation."),t(`
|
|
9
|
+
}
|
|
10
|
+
`)])],-1),we=e("h3",{id:"flow-variables"},[t("Flow Variables "),e("a",{class:"header-anchor",href:"#flow-variables"},"#")],-1),ge=e("p",null,"The Flow Object keys serve as variables, allowing data access from every Flow Operation. Variables must be passed using the following double-moustache syntax. You can even use dot-notation to extract sub-nested values.",-1),me=e("pre",null,[e("code",{class:"language-JSON"},[t(`{
|
|
11
|
+
`),e("span",{class:"hljs-attr"},'"operation_key_3"'),t(`: {
|
|
12
|
+
`),e("span",{class:"hljs-attr"},'"user"'),t(": "),e("span",{class:"hljs-string"},'"{{ $accountability.user }}"'),t(`,
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`)])],-1),be=e("h2",{id:"logs"},[t("Logs "),e("a",{class:"header-anchor",href:"#logs"},"#")],-1),Oe=e("video",{title:"",autoplay:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/configuration/flows/flows/flows-20220603A/logs-20220603A.mp4",type:"video/mp4"})],-1),ye=e("p",null,"Logs, accessed from the Sidebar, store a log of information for each Flow execution. Each log will display information from Triggers as well as each Operation.",-1),Fe={title:"Flows",modularExtension:!1},ve={name:"flows",setup(je,{expose:i}){return i({frontmatter:{title:"Flows",modularExtension:!1}}),(ke,Te)=>{const s=a("router-link"),r=a("docswrapper");return c(),d(r,{frontmatter:Fe},{default:o(()=>[e("div",h,[_,u,p,f,w,e("p",null,[g,n(s,{to:"/docs/configuration/flows/triggers"},{default:o(()=>[m]),_:1}),b]),e("p",null,[O,y,F,n(s,{to:"/docsconfiguration/flows/operations/#log-to-console"},{default:o(()=>[v]),_:1}),j,n(s,{to:"/docs/configuration/flows/operations"},{default:o(()=>[k]),_:1}),T]),x,A,S,P,e("ol",null,[C,N,e("li",null,[E,$,B,L,V,n(s,{to:"/docs/reference/system/activity/"},{default:o(()=>[W]),_:1}),D,n(s,{to:"/docs/#logs"},{default:o(()=>[J]),_:1}),I]),e("li",null,[G,H,Y,q,z,n(s,{to:"/docsconfiguration/flows/triggers"},{default:o(()=>[R]),_:1}),U]),K,M,e("li",null,[Q,n(s,{to:"/docsconfiguration/flows/operations"},{default:o(()=>[X]),_:1}),Z,ee,te,oe,se,ne,ae]),le,ie,re,ce,de]),he,_e,ue,pe,fe,we,ge,me,be,Oe,ye])]),_:1})}}};typeof l=="function"&&l(ve);export{ve as default,Fe as frontmatter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A}from"./index.
|
|
1
|
+
import{A}from"./index.133de9ba.entry.js";function S(f,O){return O.forEach(function(E){E&&typeof E!="string"&&!Array.isArray(E)&&Object.keys(E).forEach(function(i){if(i!=="default"&&!(i in f)){var R=Object.getOwnPropertyDescriptor(E,i);Object.defineProperty(f,i,R.get?R:{enumerable:!0,get:function(){return E[i]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(f,O){(function(E){E(A.exports)})(function(E){function i(n){var r=[];return n.split(" ").forEach(function(e){r.push({name:e})}),r}var R=i("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),a=i("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");E.defineMode("forth",function(){function n(r,e){var t;for(t=r.length-1;t>=0;t--)if(r[t].name===e.toUpperCase())return r[t]}return{startState:function(){return{state:"",base:10,coreWordList:R,immediateWordList:a,wordList:[]}},token:function(r,e){var t;if(r.eatSpace())return null;if(e.state===""){if(r.match(/^(\]|:NONAME)(\s|$)/i))return e.state=" compilation","builtin compilation";if(t=r.match(/^(\:)\s+(\S+)(\s|$)+/),t)return e.wordList.push({name:t[2].toUpperCase()}),e.state=" compilation","def"+e.state;if(t=r.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i),t)return e.wordList.push({name:t[2].toUpperCase()}),"def"+e.state;if(t=r.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/),t)return"builtin"+e.state}else{if(r.match(/^(\;|\[)(\s)/))return e.state="",r.backUp(1),"builtin compilation";if(r.match(/^(\;|\[)($)/))return e.state="","builtin compilation";if(r.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}if(t=r.match(/^(\S+)(\s+|$)/),t)return n(e.wordList,t[1])!==void 0?"variable"+e.state:t[1]==="\\"?(r.skipToEnd(),"comment"+e.state):n(e.coreWordList,t[1])!==void 0?"builtin"+e.state:n(e.immediateWordList,t[1])!==void 0?"keyword"+e.state:t[1]==="("?(r.eatWhile(function(o){return o!==")"}),r.eat(")"),"comment"+e.state):t[1]===".("?(r.eatWhile(function(o){return o!==")"}),r.eat(")"),"string"+e.state):t[1]==='S"'||t[1]==='."'||t[1]==='C"'?(r.eatWhile(function(o){return o!=='"'}),r.eat('"'),"string"+e.state):t[1]-68719476735?"number"+e.state:"atom"+e.state}}}),E.defineMIME("text/x-forth","forth")})})();var T=u.exports,D=S({__proto__:null,default:T},[u.exports]);export{D as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as h}from"./index.
|
|
1
|
+
import{A as h}from"./index.133de9ba.entry.js";function x(o,s){return s.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in o)){var c=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(o,i,c.get?c:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(o,s){(function(n){n(h.exports)})(function(n){n.defineMode("fortran",function(){function i(t){for(var r={},e=0;e<t.length;++e)r[t[e]]=!0;return r}var c=i(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),f=i(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),p=i(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),d=/[+\-*&=<>\/\:]/,m=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function g(t,r){if(t.match(m))return"operator";var e=t.next();if(e=="!")return t.skipToEnd(),"comment";if(e=='"'||e=="'")return r.tokenize=b(e),r.tokenize(t,r);if(/[\[\]\(\),]/.test(e))return null;if(/\d/.test(e))return t.eatWhile(/[\w\.]/),"number";if(d.test(e))return t.eatWhile(d),"operator";t.eatWhile(/[\w\$_]/);var a=t.current().toLowerCase();return c.hasOwnProperty(a)?"keyword":f.hasOwnProperty(a)||p.hasOwnProperty(a)?"builtin":"variable"}function b(t){return function(r,e){for(var a=!1,l,_=!1;(l=r.next())!=null;){if(l==t&&!a){_=!0;break}a=!a&&l=="\\"}return(_||!a)&&(e.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(t,r){if(t.eatSpace())return null;var e=(r.tokenize||g)(t,r);return e=="comment"||e=="meta",e}}}),n.defineMIME("text/x-fortran","fortran")})})();var y=u.exports,k=x({__proto__:null,default:y},[u.exports]);export{k as f};
|