@directus/app 9.15.0 → 9.16.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.
- package/dist/assets/accounts.2e114db8.js +1 -0
- package/dist/assets/{active-line.37204566.js → active-line.c78f18d1.js} +1 -1
- package/dist/assets/activity-log.86a173c5.js +1 -0
- package/dist/assets/activity.5589dea9.js +80 -0
- package/dist/assets/af-ZA.2bf28c7c.js +1 -0
- package/dist/assets/{apl.aa72adb8.js → apl.3bd507ca.js} +1 -1
- package/dist/assets/ar-SA.a723a027.js +1 -0
- package/dist/assets/{architecture.a1dad632.js → architecture.d16e36b1.js} +1 -1
- package/dist/assets/{asciiarmor.67b12091.js → asciiarmor.23cc7d28.js} +1 -1
- package/dist/assets/{asn.1.c5725a55.js → asn.1.914dce71.js} +1 -1
- package/dist/assets/{asterisk.0f667406.js → asterisk.960196ef.js} +1 -1
- package/dist/assets/authentication.ee6465fd.js +73 -0
- package/dist/assets/{autorefresh.e9c801fd.js → autorefresh.9c9423b3.js} +1 -1
- package/dist/assets/avatar-placeholder.446bf113.svg +6 -0
- package/dist/assets/aws.8fa603ce.js +1 -0
- package/dist/assets/backing-directus.450274bb.js +1 -0
- package/dist/assets/bg-BG.6ccbe392.js +1 -0
- package/dist/assets/br-FR.cfebb858.js +1 -0
- package/dist/assets/{brainfuck.e73b74b2.js → brainfuck.652d067a.js} +1 -1
- package/dist/assets/ca-ES.4c8abcd5.js +1 -0
- package/dist/assets/ckb-IR.51f9d580.js +1 -0
- package/dist/assets/cli.495194f0.js +19 -0
- package/dist/assets/{cli.acbc6a21.js → cli.f4f23732.js} +4 -4
- package/dist/assets/{clike.296c3a16.js → clike.d1e347d7.js} +1 -1
- package/dist/assets/{clojure.d9687d7c.js → clojure.0ed660e3.js} +1 -1
- package/dist/assets/cloudron.aa3368a8.js +1 -0
- package/dist/assets/{cmake.c00d972a.js → cmake.795b52a3.js} +1 -1
- package/dist/assets/{cobol.029a8cf3.js → cobol.dadc6a67.js} +1 -1
- package/dist/assets/codebase-overview.cf29e0f6.js +1 -0
- package/dist/assets/{coffeescript.8aefc36c.js → coffeescript.ebb229e0.js} +1 -1
- package/dist/assets/collections.74218877.js +2 -0
- package/dist/assets/collections.7776a374.js +2 -0
- package/dist/assets/collections.9e3af468.js +106 -0
- package/dist/assets/{commonlisp.0b15e5a5.js → commonlisp.3ab42a16.js} +1 -1
- package/dist/assets/conditions.1d6c9ac3.js +1 -0
- package/dist/assets/config-options.3845d956.js +138 -0
- package/dist/assets/content.84d14f92.js +1 -0
- package/dist/assets/{creating-extensions.028151bd.js → creating-extensions.50afb69b.js} +3 -3
- package/dist/assets/{crystal.e19a3a38.js → crystal.efbb1bd7.js} +1 -1
- package/dist/assets/cs-CZ.3f25becd.js +1 -0
- package/dist/assets/{css.2715c204.js → css.6fb39c02.js} +1 -1
- package/dist/assets/{cypher.00e9acae.js → cypher.62403d7d.js} +1 -1
- package/dist/assets/{d.5a35cc30.js → d.3e09de4f.js} +1 -1
- package/dist/assets/da-DK.3460bab1.js +1 -0
- package/dist/assets/{dart.a107f6c3.js → dart.41841dee.js} +1 -1
- package/dist/assets/data-model.ef4eedaf.js +45 -0
- package/dist/assets/de-DE.980a9df8.js +1 -0
- package/dist/assets/{diff.035b0e41.js → diff.545183ee.js} +1 -1
- package/dist/assets/{digitalocean-app-platform.542bac85.js → digitalocean-app-platform.5dd9a78b.js} +2 -2
- package/dist/assets/display-templates.6412d9bf.js +1 -0
- package/dist/assets/display.c9e4c238.js +1 -0
- package/dist/assets/{displays.027c9ffc.js → displays.c3b9934b.js} +4 -4
- package/dist/assets/{django.771bf030.js → django.17509d05.js} +1 -1
- package/dist/assets/{docker.ce60011d.js → docker.2130afa6.js} +3 -3
- package/dist/assets/{dockerfile.69a18e53.js → dockerfile.8e4c8627.js} +1 -1
- package/dist/assets/{documentation.d5124166.js → documentation.e232fdb2.js} +1 -1
- package/dist/assets/{dtd.df94c92f.js → dtd.c5634f07.js} +1 -1
- package/dist/assets/{dylan.4f1df30d.js → dylan.ed64e93d.js} +1 -1
- package/dist/assets/{ebnf.5b209db0.js → ebnf.f0a160c2.js} +1 -1
- package/dist/assets/{ecl.7e72deb8.js → ecl.f410edf0.js} +1 -1
- package/dist/assets/{eiffel.9bf84ee8.js → eiffel.fc6fa090.js} +1 -1
- package/dist/assets/{el-GR.60ea8245.js → el-GR.99b9567f.js} +1 -1
- package/dist/assets/{elm.46445fd8.js → elm.d1f7e66b.js} +1 -1
- package/dist/assets/email-templates.0aa59541.js +2 -0
- package/dist/assets/en-CA.25c4512b.js +1 -0
- package/dist/assets/en-GB.24d2e667.js +1 -0
- package/dist/assets/{endpoints.0f025685.js → endpoints.b664ef10.js} +1 -1
- package/dist/assets/{erlang.50accc38.js → erlang.f5c5e431.js} +1 -1
- package/dist/assets/es-419.b77b2103.js +1 -0
- package/dist/assets/es-CL.e5af69da.js +1 -0
- package/dist/assets/es-ES.7fd65f45.js +1 -0
- package/dist/assets/es-MX.84fb11f1.js +1 -0
- package/dist/assets/et-EE.e10031cf.js +3 -0
- package/dist/assets/extensions.e511fc6d.js +12 -0
- package/dist/assets/fa-IR.3c0a7985.js +1 -0
- package/dist/assets/{factor.164d6f9d.js → factor.fdee7d27.js} +1 -1
- package/dist/assets/faq.cc159e10.js +2 -0
- package/dist/assets/{fcl.2c3dc0b9.js → fcl.8ef841db.js} +1 -1
- package/dist/assets/fi-FI.f2ba369a.js +1 -0
- package/dist/assets/field-types.129a2c41.js +1 -0
- package/dist/assets/field.3061af3d.js +1 -0
- package/dist/assets/fields.1a3f05d2.js +1 -0
- package/dist/assets/fields.9e13d3e0.js +135 -0
- package/dist/assets/file-library.531c267c.js +1 -0
- package/dist/assets/files.af2c1a43.js +189 -0
- package/dist/assets/{filter-rules.f7296d23.js → filter-rules.454352d1.js} +17 -8
- package/dist/assets/filters.57f37ec6.js +1 -0
- package/dist/assets/flows.4d2856ca.js +172 -0
- package/dist/assets/flows.c21cd837.js +16 -0
- package/dist/assets/folders.10accc4b.js +132 -0
- package/dist/assets/{forth.49d85bf7.js → forth.2b2f71e9.js} +1 -1
- package/dist/assets/{fortran.12803734.js → fortran.eeb26d81.js} +1 -1
- package/dist/assets/fr-CA.bd73b96f.js +1 -0
- package/dist/assets/fr-FR.f86a9f41.js +1 -0
- package/dist/assets/{gas.912b174f.js → gas.12f084f2.js} +1 -1
- package/dist/assets/{gcp.8ca78211.js → gcp.c7937b1a.js} +6 -6
- package/dist/assets/{gfm.95f7b838.js → gfm.3b66480c.js} +1 -1
- package/dist/assets/{gherkin.ef890b31.js → gherkin.91e46d93.js} +1 -1
- package/dist/assets/{github-ci.40c9d16d.js → github-ci.f7ee57b8.js} +2 -2
- package/dist/assets/glossary.80e53e05.js +1 -0
- package/dist/assets/glossary.c84cb559.js +1 -0
- package/dist/assets/{go.ec5a1c94.js → go.b86f91ab.js} +1 -1
- package/dist/assets/{groovy.0da0e846.js → groovy.cd378bb4.js} +1 -1
- package/dist/assets/{haml.0ccf17af.js → haml.a6cabf01.js} +1 -1
- package/dist/assets/{handlebars.c8657b1d.js → handlebars.5c6be823.js} +1 -1
- package/dist/assets/{haskell-literate.8c4cf534.js → haskell-literate.c38a1697.js} +1 -1
- package/dist/assets/{haskell.0a0dfa79.js → haskell.a43190de.js} +1 -1
- package/dist/assets/{haxe.72a9d4fd.js → haxe.67ea76a0.js} +1 -1
- package/dist/assets/{hooks.5488f34d.js → hooks.d1b00fc1.js} +2 -2
- package/dist/assets/hr-HR.649970ba.js +1 -0
- package/dist/assets/{htmlembedded.ea02349b.js → htmlembedded.d7fc4ddf.js} +1 -1
- package/dist/assets/{htmlmixed.71c55a95.js → htmlmixed.42236134.js} +1 -1
- package/dist/assets/{http.e373a3b6.js → http.8876645f.js} +1 -1
- package/dist/assets/{hu-HU.3c8e2cdc.js → hu-HU.2407b23f.js} +1 -1
- package/dist/assets/id-ID.46c8c32a.js +1 -0
- package/dist/assets/{idl.9bc82209.js → idl.1e06cb13.js} +1 -1
- package/dist/assets/{iis.9e682df0.js → iis.2b991a80.js} +1 -1
- package/dist/assets/import-export.74a08d53.js +2 -0
- package/dist/assets/index.03840c13.css +1 -0
- package/dist/assets/index.4894f51e.js +1 -0
- package/dist/assets/{index.e00d2c6d.entry.js → index.5552d1ba.entry.js} +188 -185
- package/dist/assets/{index.ec7b5840.js → index.791e9a3d.js} +1 -1
- package/dist/assets/index.cd90c757.js +1 -0
- package/dist/assets/{input-rich-text-html.0b6df824.js → input-rich-text-html.c3a5d829.js} +42 -42
- package/dist/assets/{input-rich-text-html.49906812.css → input-rich-text-html.c883b2df.css} +1 -1
- package/dist/assets/insights.0f2b188e.js +2 -0
- package/dist/assets/installation.131e828a.js +1 -0
- package/dist/assets/interface.aa4f61a0.js +1 -0
- package/dist/assets/{interfaces.38099de0.js → interfaces.fc4c7384.js} +3 -3
- package/dist/assets/introduction.0f06a30b.js +1 -0
- package/dist/assets/introduction.24acabd2.js +90 -0
- package/dist/assets/{introduction.e6dc6284.js → introduction.b1da78a4.js} +2 -2
- package/dist/assets/introduction.e8ce5583.js +1 -0
- package/dist/assets/it-IT.922112b6.js +1 -0
- package/dist/assets/items.b5bb1efd.js +1 -0
- package/dist/assets/items.cc5ed80d.js +136 -0
- package/dist/assets/{ja-JP.bfb2f81a.js → ja-JP.01e593ca.js} +1 -1
- package/dist/assets/{javascript-hint.bd8ca2b7.js → javascript-hint.6d6f81e5.js} +1 -1
- package/dist/assets/{javascript.498e8ddb.js → javascript.b46feeed.js} +1 -1
- package/dist/assets/{jinja2.54efd8a5.js → jinja2.b4f1b6ad.js} +1 -1
- package/dist/assets/{jsx.efc77b84.js → jsx.211683b6.js} +1 -1
- package/dist/assets/{julia.90341379.js → julia.baee0bfc.js} +1 -1
- package/dist/assets/kmr-TR.2c6e59b8.js +1 -0
- package/dist/assets/layouts.1b59a4c4.js +1 -0
- package/dist/assets/{layouts.f9cfede4.js → layouts.2759613b.js} +4 -4
- package/dist/assets/{livescript.cb85e981.js → livescript.cce15eeb.js} +1 -1
- package/dist/assets/localization.854fe2a6.js +1 -0
- package/dist/assets/lt-LT.18f09ae6.js +1 -0
- package/dist/assets/{lua.cc15c79a.js → lua.2285f263.js} +1 -1
- package/dist/assets/{manual.cc05cff9.js → manual.e19c207e.js} +5 -5
- package/dist/assets/{mark-selection.cfa3fcec.js → mark-selection.4abbe02e.js} +1 -1
- package/dist/assets/{match-highlighter.bd16b014.js → match-highlighter.28d31a20.js} +1 -1
- package/dist/assets/{mathematica.17c84e9b.js → mathematica.326d84f6.js} +1 -1
- package/dist/assets/{mbox.c07261a5.js → mbox.0bf9befe.js} +1 -1
- package/dist/assets/migrations.70984e94.js +19 -0
- package/dist/assets/{mirc.6c81e0d9.js → mirc.6eedfef8.js} +1 -1
- package/dist/assets/{mllike.647fee7d.js → mllike.96a9792b.js} +1 -1
- package/dist/assets/{modelica.7f095a0c.js → modelica.a729f46d.js} +1 -1
- package/dist/assets/{modules.aed8795b.js → modules.368e658d.js} +3 -3
- package/dist/assets/{mscgen.e7ec6db0.js → mscgen.fcbf244c.js} +1 -1
- package/dist/assets/{multiplex.b20d59d9.js → multiplex.e75d927b.js} +1 -1
- package/dist/assets/{mumps.e1926e1a.js → mumps.b063975e.js} +1 -1
- package/dist/assets/{nginx.3e60b1d8.js → nginx.486ac0b3.js} +1 -1
- package/dist/assets/nl-NL.57220fbc.js +1 -0
- package/dist/assets/{no-NO.59f9d425.js → no-NO.3bb25fb7.js} +1 -1
- package/dist/assets/notifications.71793dcb.js +153 -0
- package/dist/assets/{nsis.b4d2f79d.js → nsis.1f1f7f19.js} +1 -1
- package/dist/assets/{ntriples.23fe57b5.js → ntriples.23df3a06.js} +1 -1
- package/dist/assets/{octave.bc18fbba.js → octave.a7c39dfd.js} +1 -1
- package/dist/assets/operations.3a53915d.js +169 -0
- package/dist/assets/{operations.a263ba49.js → operations.687b2da1.js} +1 -1
- package/dist/assets/operations.845da620.js +1 -0
- package/dist/assets/{overlay.914efac4.js → overlay.25718331.js} +1 -1
- package/dist/assets/overview.2aef2737.js +1 -0
- package/dist/assets/overview.42c9bc71.js +1 -0
- package/dist/assets/{overview.21a42c2e.js → overview.77c84906.js} +0 -0
- package/dist/assets/{oz.467f2daf.js → oz.50920854.js} +1 -1
- package/dist/assets/{panels.d307c197.js → panels.1c9e59a5.js} +3 -3
- package/dist/assets/{pascal.3b07fc1d.js → pascal.254524bf.js} +1 -1
- package/dist/assets/{pegjs.d8aa363f.js → pegjs.109b328f.js} +1 -1
- package/dist/assets/{perl.5b744b42.js → perl.a6a13b0b.js} +1 -1
- package/dist/assets/permissions.7c6e7d90.js +178 -0
- package/dist/assets/{php.139f8b23.js → php.ffc2eaca.js} +1 -1
- package/dist/assets/{pig.df6cedd4.js → pig.5098455f.js} +1 -1
- package/dist/assets/pl-PL.dfc1a032.js +1 -0
- package/dist/assets/plesk.09c47961.js +27 -0
- package/dist/assets/{powershell.b3b5efd9.js → powershell.1a2fb8e0.js} +1 -1
- package/dist/assets/{presets-bookmarks.668779cf.js → presets-bookmarks.3d6f189f.js} +1 -1
- package/dist/assets/presets.a6220515.js +164 -0
- package/dist/assets/project-settings.5ba0a483.js +1 -0
- package/dist/assets/projects.7b210ac2.js +1 -0
- package/dist/assets/{properties.7b21f6e1.js → properties.f55a4bf0.js} +1 -1
- package/dist/assets/{protobuf.a9cd2a14.js → protobuf.9cc87b15.js} +1 -1
- package/dist/assets/pt-BR.a8e95f48.js +1 -0
- package/dist/assets/pt-PT.2233fb43.js +1 -0
- package/dist/assets/{pug.1187ae8d.js → pug.09de4b33.js} +1 -1
- package/dist/assets/{puppet.19c616b8.js → puppet.7cd5c3df.js} +1 -1
- package/dist/assets/{python.ccb55c13.js → python.8647bbb6.js} +1 -1
- package/dist/assets/{q.24958204.js → q.83eacee3.js} +1 -1
- package/dist/assets/query.b72e23c9.js +152 -0
- package/dist/assets/quickstart.0e152d2a.js +20 -0
- package/dist/assets/quickstart.1d485356.js +9 -0
- package/dist/assets/{r.acb07d5a.js → r.22d59660.js} +1 -1
- package/dist/assets/readme.a5652282.js +1 -0
- package/dist/assets/relations.804b318b.js +115 -0
- package/dist/assets/relationship.040a5095.js +1 -0
- package/dist/assets/relationships.ff02a9ff.js +82 -0
- package/dist/assets/resources.efe9810e.js +1 -0
- package/dist/assets/revisions.121cb7de.js +40 -0
- package/dist/assets/ro-RO.52012f13.js +1 -0
- package/dist/assets/roles.680acff2.js +171 -0
- package/dist/assets/{rpm.f085c147.js → rpm.45123b1f.js} +1 -1
- package/dist/assets/{rst.d419af03.js → rst.0d2ffa96.js} +1 -1
- package/dist/assets/ru-RU.9f19c25d.js +1 -0
- package/dist/assets/{ruby.43be0a34.js → ruby.0befbc72.js} +1 -1
- package/dist/assets/running-locally.4b4aa0d8.js +27 -0
- package/dist/assets/{rust.cce3b400.js → rust.0aadcb17.js} +1 -1
- package/dist/assets/{sas.16484722.js → sas.6509cc75.js} +1 -1
- package/dist/assets/{sass.7051c1f1.js → sass.3fef2c5c.js} +1 -1
- package/dist/assets/schema.5f5eb18e.js +1 -0
- package/dist/assets/{scheme.ca9d730a.js → scheme.6583195f.js} +1 -1
- package/dist/assets/{sdk.ea5b0946.js → sdk.84d76266.js} +76 -70
- package/dist/assets/security.6a8942ba.js +1 -0
- package/dist/assets/server.b24a421b.js +114 -0
- package/dist/assets/settings.d3a9b46c.js +58 -0
- package/dist/assets/settings.d91e399d.js +1 -0
- package/dist/assets/shares.6bb87993.js +1 -0
- package/dist/assets/{shell.459f40ee.js → shell.c33a256a.js} +1 -1
- package/dist/assets/{show-hint.e01428dd.js → show-hint.e10f26ff.js} +1 -1
- package/dist/assets/{sieve.0bc80c89.js → sieve.adb9c5cd.js} +1 -1
- package/dist/assets/sl-SI.8f397c20.js +2 -0
- package/dist/assets/{slim.2d290285.js → slim.34875ef9.js} +1 -1
- package/dist/assets/{smalltalk.41636747.js → smalltalk.ce10cb5f.js} +1 -1
- package/dist/assets/{smarty.d1631985.js → smarty.42882935.js} +1 -1
- package/dist/assets/{solr.b1df9d52.js → solr.5286f18c.js} +1 -1
- package/dist/assets/{soy.99e75aa8.js → soy.4f95bef4.js} +1 -1
- package/dist/assets/{sparql.d5b1eee4.js → sparql.771a3939.js} +1 -1
- package/dist/assets/{spreadsheet.29a03e30.js → spreadsheet.84749884.js} +1 -1
- package/dist/assets/{sql.3413d6f9.js → sql.e6ae0ded.js} +1 -1
- package/dist/assets/sr-CS.8082fb81.js +1 -0
- package/dist/assets/sr-SP.3f95d056.js +1 -0
- package/dist/assets/{sso-examples.ad647c9c.js → sso-examples.eb8e7423.js} +2 -2
- package/dist/assets/{sso.cf805e38.js → sso.c929d07f.js} +3 -3
- package/dist/assets/{stex.7276068b.js → stex.248311c6.js} +1 -1
- package/dist/assets/{stylus.ed00f8db.js → stylus.75da53bc.js} +1 -1
- package/dist/assets/support.09b549ef.js +1 -0
- package/dist/assets/sv-SE.08585432.js +1 -0
- package/dist/assets/{swift.26ec0a65.js → swift.9d07c193.js} +1 -1
- package/dist/assets/{tcl.ebb4437a.js → tcl.7a1d8f5e.js} +1 -1
- package/dist/assets/teams.ab67345b.js +1 -0
- package/dist/assets/{textile.7ff1ea5c.js → textile.3f318174.js} +1 -1
- package/dist/assets/th-TH.8a058ef9.js +2 -0
- package/dist/assets/{themes.3d802c3b.js → themes.078e9124.js} +2 -2
- package/dist/assets/{tiddlywiki.36daf39b.js → tiddlywiki.70063591.js} +1 -1
- package/dist/assets/{tiki.c1a7e00c.js → tiki.be5148f3.js} +1 -1
- package/dist/assets/{toml.16e84917.js → toml.1c4a2454.js} +1 -1
- package/dist/assets/{tornado.9b8dbfb8.js → tornado.2951da45.js} +1 -1
- package/dist/assets/tr-TR.039a12a9.js +1 -0
- package/dist/assets/translation-strings.2e3ee87a.js +1 -0
- package/dist/assets/translations.36a34606.js +1 -0
- package/dist/assets/translations.fb062afb.js +1 -0
- package/dist/assets/triggers.44226865.js +1 -0
- package/dist/assets/{troff.a86a07b9.js → troff.87ee9d68.js} +1 -1
- package/dist/assets/{ttcn-cfg.df680d6a.js → ttcn-cfg.c84cc180.js} +1 -1
- package/dist/assets/{ttcn.33574dcc.js → ttcn.2e4df029.js} +1 -1
- package/dist/assets/{turtle.93ac23eb.js → turtle.95894809.js} +1 -1
- package/dist/assets/{twig.04df7bbf.js → twig.d66473bf.js} +1 -1
- package/dist/assets/ubuntu.79ece84b.js +11 -0
- package/dist/assets/uk-UA.e0916a2f.js +1 -0
- package/dist/assets/upgrades-migrations.ea8bea7b.js +1 -0
- package/dist/assets/user-directory.bac5f2ee.js +1 -0
- package/dist/assets/users-roles-permissions.e36d0bc8.js +1 -0
- package/dist/assets/users.a9ad4dd9.js +252 -0
- package/dist/assets/utilities.00432834.js +74 -0
- package/dist/assets/validation.2c0c5444.js +1 -0
- package/dist/assets/{vb.44c875a2.js → vb.6fa3f35c.js} +1 -1
- package/dist/assets/{vbscript.87bdeb77.js → vbscript.9733613a.js} +1 -1
- package/dist/assets/{velocity.cc1dfc19.js → velocity.01fb0be3.js} +1 -1
- package/dist/assets/{verilog.0f07ab6c.js → verilog.424d22ca.js} +1 -1
- package/dist/assets/{vhdl.41fb7cf9.js → vhdl.f35cfe5f.js} +1 -1
- package/dist/assets/vi-VN.fff05bda.js +1 -0
- package/dist/assets/{vue.5d653ac7.js → vue.00bb2733.js} +1 -1
- package/dist/assets/{wast.0d4923e5.js → wast.70fe5a84.js} +1 -1
- package/dist/assets/webhooks.e7e122b7.js +147 -0
- package/dist/assets/webhooks.f0dfc270.js +1 -0
- package/dist/assets/{webidl.e399c0a3.js → webidl.b85758c5.js} +1 -1
- package/dist/assets/{xquery.45a960e6.js → xquery.ac0d6186.js} +1 -1
- package/dist/assets/{yacas.842e0a74.js → yacas.bbc1de95.js} +1 -1
- package/dist/assets/{yaml-frontmatter.93f99653.js → yaml-frontmatter.bcf994b4.js} +1 -1
- package/dist/assets/{yaml.da4da1d2.js → yaml.aa565fd3.js} +1 -1
- package/dist/assets/{z80.e8d0aed2.js → z80.6ef87436.js} +1 -1
- package/dist/assets/zh-CN.e03e0e56.js +1 -0
- package/dist/assets/zh-TW.453f1e60.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/dist/assets/accounts.8fbf8699.js +0 -1
- package/dist/assets/activity-log.edaa174f.js +0 -1
- package/dist/assets/activity.f03e4c50.js +0 -80
- package/dist/assets/af-ZA.c9c94fcd.js +0 -1
- package/dist/assets/app-overview.6445a201.svg +0 -86
- package/dist/assets/ar-SA.52ee85f9.js +0 -1
- package/dist/assets/authentication.a37290ac.js +0 -73
- package/dist/assets/aws.81dde688.js +0 -1
- package/dist/assets/backing-directus.877781ff.js +0 -1
- package/dist/assets/bg-BG.8d8c105a.js +0 -1
- package/dist/assets/br-FR.d3564938.js +0 -1
- package/dist/assets/ca-ES.f3dfdef6.js +0 -1
- package/dist/assets/cli.e9c97474.js +0 -19
- package/dist/assets/cloudron.ccb9f60b.js +0 -1
- package/dist/assets/codebase-overview.2867468d.js +0 -1
- package/dist/assets/collections.09fe8eef.js +0 -106
- package/dist/assets/collections.d440e2c1.js +0 -2
- package/dist/assets/config-options.592aab17.js +0 -138
- package/dist/assets/content.d6024fae.js +0 -1
- package/dist/assets/cs-CZ.ba778ad2.js +0 -1
- package/dist/assets/da-DK.38409d46.js +0 -1
- package/dist/assets/data-model.b806a25a.js +0 -1
- package/dist/assets/de-DE.8d6a71ed.js +0 -1
- package/dist/assets/display-templates.af38b75d.js +0 -1
- package/dist/assets/email-templates.cf7de2aa.js +0 -2
- package/dist/assets/en-CA.9ad3a3ab.js +0 -1
- package/dist/assets/en-GB.61c87be5.js +0 -1
- package/dist/assets/es-419.ca94d216.js +0 -1
- package/dist/assets/es-CL.ae584c00.js +0 -1
- package/dist/assets/es-ES.3ff9088e.js +0 -1
- package/dist/assets/es-MX.059cc750.js +0 -1
- package/dist/assets/et-EE.fb46a361.js +0 -3
- package/dist/assets/extensions.27ee4742.js +0 -12
- package/dist/assets/fa-IR.b864f77c.js +0 -1
- package/dist/assets/faq.633c25f1.js +0 -2
- package/dist/assets/fi-FI.14f31cb4.js +0 -1
- package/dist/assets/fields.47aabeca.js +0 -135
- package/dist/assets/file-library.82e96a16.js +0 -1
- package/dist/assets/files.97dd14f6.js +0 -189
- package/dist/assets/filters.b1397c95.js +0 -1
- package/dist/assets/flows.0173f6d4.js +0 -172
- package/dist/assets/flows.7116f535.js +0 -15
- package/dist/assets/folders.0622ae98.js +0 -132
- package/dist/assets/fr-CA.87857f82.js +0 -1
- package/dist/assets/fr-FR.43594476.js +0 -1
- package/dist/assets/glossary.38068d72.js +0 -1
- package/dist/assets/glossary.ecc8e7cf.js +0 -1
- package/dist/assets/hr-HR.467388ee.js +0 -1
- package/dist/assets/id-ID.8089647c.js +0 -1
- package/dist/assets/import-export.2114c732.js +0 -2
- package/dist/assets/index.8627ddb4.js +0 -1
- package/dist/assets/index.b9f1c213.css +0 -1
- package/dist/assets/insights.7988716a.js +0 -2
- package/dist/assets/installation.5215ce07.js +0 -1
- package/dist/assets/introduction.807bce52.js +0 -1
- package/dist/assets/introduction.a173e7ad.js +0 -90
- package/dist/assets/introduction.a6b2c1f0.js +0 -1
- package/dist/assets/it-IT.39e71c5e.js +0 -1
- package/dist/assets/items.02ad4f11.js +0 -1
- package/dist/assets/items.ba1efbf4.js +0 -136
- package/dist/assets/layouts.dded37a5.js +0 -1
- package/dist/assets/localization.f384f316.js +0 -1
- package/dist/assets/lt-LT.f2d719ff.js +0 -1
- package/dist/assets/migrations.fa20b23d.js +0 -19
- package/dist/assets/nl-NL.e613d40a.js +0 -1
- package/dist/assets/notifications.5186ee54.js +0 -153
- package/dist/assets/operations.51c06345.js +0 -1
- package/dist/assets/operations.eaacfa1d.js +0 -169
- package/dist/assets/overview.0fe284a4.js +0 -1
- package/dist/assets/overview.a1598534.js +0 -1
- package/dist/assets/permissions.355cb88d.js +0 -178
- package/dist/assets/pl-PL.91a0c1e6.js +0 -1
- package/dist/assets/plesk-screenshot.00f26a33.png +0 -0
- package/dist/assets/plesk.c1379970.js +0 -27
- package/dist/assets/presets.0d5dc9c6.js +0 -164
- package/dist/assets/project-settings.2a64f071.js +0 -1
- package/dist/assets/projects.f82931e8.js +0 -1
- package/dist/assets/pt-BR.ce1fdc59.js +0 -1
- package/dist/assets/pt-PT.f5bc9b8e.js +0 -1
- package/dist/assets/query.8fb6cf04.js +0 -152
- package/dist/assets/quickstart.c0e4b8bd.js +0 -20
- package/dist/assets/quickstart.f2432960.js +0 -9
- package/dist/assets/relations.2dfa7993.js +0 -115
- package/dist/assets/relationships.eb7e340c.js +0 -55
- package/dist/assets/resources.b4808e35.js +0 -1
- package/dist/assets/revisions.cf799486.js +0 -40
- package/dist/assets/ro-RO.a1adfb6a.js +0 -1
- package/dist/assets/roles.b0107422.js +0 -171
- package/dist/assets/ru-RU.74ac881b.js +0 -1
- package/dist/assets/running-locally.a3ec7567.js +0 -27
- package/dist/assets/security.b7fcc1c2.js +0 -1
- package/dist/assets/server.22f6f2c1.js +0 -114
- package/dist/assets/settings.509b7560.js +0 -1
- package/dist/assets/settings.c4a634ae.js +0 -51
- package/dist/assets/shares.4d7659d8.js +0 -1
- package/dist/assets/sl-SI.632899f8.js +0 -2
- package/dist/assets/sr-CS.2e5b18be.js +0 -1
- package/dist/assets/sr-SP.f91eaaca.js +0 -1
- package/dist/assets/support.6594facf.js +0 -1
- package/dist/assets/sv-SE.d485ddd3.js +0 -1
- package/dist/assets/teams.f575332d.js +0 -1
- package/dist/assets/th-TH.1e9ab13f.js +0 -2
- package/dist/assets/tr-TR.feb24957.js +0 -1
- package/dist/assets/translation-strings.fe88793b.js +0 -1
- package/dist/assets/translations.4be9ec77.js +0 -1
- package/dist/assets/triggers.c34177a3.js +0 -1
- package/dist/assets/ubuntu.cc908491.js +0 -11
- package/dist/assets/uk-UA.0e92f9a4.js +0 -1
- package/dist/assets/upgrades-migrations.a57ef987.js +0 -1
- package/dist/assets/user-directory.7b875602.js +0 -1
- package/dist/assets/users-roles-permissions.00ffdc25.js +0 -1
- package/dist/assets/users.0638ab5f.js +0 -252
- package/dist/assets/utilities.b2f15bfd.js +0 -74
- package/dist/assets/vi-VN.3e9c985f.js +0 -1
- package/dist/assets/webhooks.1f89f80a.js +0 -147
- package/dist/assets/webhooks.3d6334e9.js +0 -1
- package/dist/assets/zh-CN.5f89875e.js +0 -1
- package/dist/assets/zh-TW.2ac2bb07.js +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import{a as o,o as h,b as i,w as t,g as s,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},p=s("blockquote",null,[s("p",null,"Flows enable custom, event-driven data processing and task automation within Directus.")],-1),u=s("hr",null,null,-1),_=s("h2",{id:"the-flow-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-flow-object"},"#"),e(" The Flow Object")],-1),f=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the flow.")],-1),g=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name for the flow.")],-1),j=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon displayed in the Admin App for the flow.")],-1),m=s("p",null,[s("code",null,"color"),e(),s("strong",null,"string"),s("br"),e(" Color of the icon displayed in the Admin App for the flow.")],-1),w=s("p",null,[s("code",null,"note"),e(),s("strong",null,"text"),s("br"),e(" Short description displayed in the Admin App.")],-1),b=s("p",null,[s("code",null,"status"),e(),s("strong",null,"string"),s("br"),e(" Current status of the flow. One of "),s("code",null,"active"),e(", "),s("code",null,"inactive"),e(". Defaults to "),s("code",null,"active"),e(" when not specified.")],-1),y=s("p",null,[s("code",null,"trigger"),e(),s("strong",null,"string"),s("br"),e(" Type of trigger for the flow. One of "),s("code",null,"hook"),e(", "),s("code",null,"webhook"),e(", "),s("code",null,"operation"),e(", "),s("code",null,"schedule"),e(", "),s("code",null,"manual"),e(".")],-1),x=s("p",null,[s("code",null,"options"),e(),s("strong",null,"json"),s("br"),e(" Options of the selected trigger for the flow.")],-1),q=s("p",null,[s("code",null,"accountability"),e(),s("strong",null,"string"),s("br"),e(" The permission used during the flow. One of "),s("code",null,"$public"),e(", "),s("code",null,"$trigger"),e(", "),s("code",null,"$full"),e(", or UUID of a role.")],-1),E=s("p",null,[s("code",null,"date_created"),e(),s("strong",null,"timestamp"),s("br"),e(" Timestamp in ISO8601 when the flow was created.")],-1),T=s("code",null,"user_created",-1),P=e(),k=s("strong",null,"many-to-one",-1),S=s("br",null,null,-1),R=e(" The user who created the flow. Many-to-one to "),A=e("users"),F=e("."),O=s("p",null,[s("code",null,"operation"),e(),s("strong",null,"string"),s("br"),e(" UUID of the operation connected to the trigger in the flow.")],-1),I=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
2
|
+
`),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2fab3b9d-0543-4b87-8a30-3c5ee66fedf1"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
3
|
+
`),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
4
|
+
`),s("span",{class:"hljs-attr"},'"icon"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"bolt"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
5
|
+
`),s("span",{class:"hljs-attr"},'"color"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"#112233"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
6
|
+
`),s("span",{class:"hljs-attr"},'"note"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Note for my flow"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
7
|
+
`),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
8
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"manual"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
9
|
+
`),s("span",{class:"hljs-attr"},'"accountability"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"$trigger"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
10
|
+
`),s("span",{class:"hljs-attr"},'"date_created"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2022-05-11T13:14:52Z"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
11
|
+
`),s("span",{class:"hljs-attr"},'"user_created"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"12e62fd0-29c7-4fd3-b3d3-c7a39933e8af"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
12
|
+
`),s("span",{class:"hljs-attr"},'"operation"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"92e82998-e421-412f-a513-13701e83e4ce"'),e(`
|
|
13
|
+
`),s("span",{class:"hljs-punctuation"},"}"),e(`
|
|
14
|
+
`)])],-1),v=s("hr",null,null,-1),D=s("h2",{id:"list-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-flows"},"#"),e(" List Flows")],-1),L=s("p",null,"List all flows that exist in Directus.",-1),Q=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),G=e("Supports all "),M=e("global query parameters"),C=e("."),B=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),U=e("An array of up to "),H=e("limit"),N=e(),$=s("a",{href:"#the-flow-object"},"flow objects",-1),V=e(". If no items are available, data will be an empty array."),Z=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),z=s("pre",null,[s("code",null,`GET /flows
|
|
15
|
+
SEARCH /flows
|
|
16
|
+
`)],-1),J=e("Learn more about SEARCH ->"),K=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),e(" GraphQL")],-1),W=s("pre",null,[s("code",null,`POST /graphql/system
|
|
17
|
+
`)],-1),X=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),Y=s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),e(" Example")],-1),ss=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),es=s("hr",null,null,-1),ts=s("h2",{id:"retrieve-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-flow"},"#"),e(" Retrieve a flow")],-1),as=s("p",null,"List an existing flow by primary key.",-1),ns=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),e(" Query Parameters")],-1),ls=e("Supports all "),os=e("global query parameters"),cs=e("."),rs=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),e(" Returns")],-1),hs=s("p",null,[e("Returns the requested "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),is=s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),e(" REST API")],-1),ds=s("pre",null,[s("code",null,`GET /flows/:id
|
|
28
|
+
`)],-1),ps=s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),e(" Example")],-1),us=s("pre",null,[s("code",null,`GET /flows/2fc325fb-299b-4d20-a9e7-a34349dee8b2
|
|
29
|
+
`)],-1),_s=s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),e(" GraphQL")],-1),fs=s("pre",null,[s("code",null,`POST /graphql/system
|
|
30
|
+
`)],-1),gs=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
|
+
`)])],-1),js=s("h5",{id:"example-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-2"},"#"),e(" Example")],-1),ms=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),ws=s("hr",null,null,-1),bs=s("h2",{id:"create-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-a-flow"},"#"),e(" Create a Flow")],-1),ys=s("p",null,"Create a new flow.",-1),xs=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),qs=e("Supports all "),Es=e("global query parameters"),Ts=e("."),Ps=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),ks=s("p",null,[e("A partial "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),Ss=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),Rs=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the created flow.")],-1),As=s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")],-1),Fs=s("pre",null,[s("code",null,`POST /flows
|
|
41
|
+
`)],-1),Os=s("h5",{id:"example-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-3"},"#"),e(" Example")],-1),Is=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /flows"),e(`
|
|
42
|
+
|
|
43
|
+
`),s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
44
|
+
`),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
45
|
+
`),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
46
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"manual"'),e(`
|
|
47
|
+
`),s("span",{class:"hljs-punctuation"},"}"),e(`
|
|
48
|
+
`)])],-1),vs=s("h3",{id:"graphql-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-2"},"#"),e(" GraphQL")],-1),Ds=s("pre",null,[s("code",null,`POST /graphql/system
|
|
49
|
+
`)],-1),Ls=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
|
+
`)])],-1),Qs=s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),e(" Example")],-1),Gs=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),Ms=s("hr",null,null,-1),Cs=s("h2",{id:"create-multiple-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-multiple-flows"},"#"),e(" Create Multiple Flows")],-1),Bs=s("p",null,"Create multiple new flows.",-1),Us=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),e(" Query Parameters")],-1),Hs=e("Supports all "),Ns=e("global query parameters"),$s=e("."),Vs=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),e(" Request Body")],-1),Zs=s("p",null,[e("An array of partial "),s("a",{href:"#the-flow-object"},"flow objects"),e(".")],-1),zs=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),e(" Returns")],-1),Js=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the created flow.")],-1),Ks=s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),e(" REST API")],-1),Ws=s("pre",null,[s("code",null,`POST /flows
|
|
60
|
+
`)],-1),Xs=s("h5",{id:"example-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-5"},"#"),e(" Example")],-1),Ys=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /flows"),e(`
|
|
61
|
+
|
|
62
|
+
`),s("span",{class:"hljs-punctuation"},"["),e(`
|
|
63
|
+
`),s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
64
|
+
`),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
65
|
+
`),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
66
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"manual"'),e(`
|
|
67
|
+
`),s("span",{class:"hljs-punctuation"},"}"),s("span",{class:"hljs-punctuation"},","),e(`
|
|
68
|
+
`),s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
69
|
+
`),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Another Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
70
|
+
`),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
|
|
71
|
+
`),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"webhook"'),e(`
|
|
72
|
+
`),s("span",{class:"hljs-punctuation"},"}"),e(`
|
|
73
|
+
`),s("span",{class:"hljs-punctuation"},"]"),e(`
|
|
74
|
+
`)])],-1),se=s("h3",{id:"graphql-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-3"},"#"),e(" GraphQL")],-1),ee=s("pre",null,[s("code",null,`POST /graphql/system
|
|
75
|
+
`)],-1),te=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
|
+
`)])],-1),ae=s("h5",{id:"example-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-6"},"#"),e(" Example")],-1),ne=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),le=s("hr",null,null,-1),oe=s("h2",{id:"update-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-flow"},"#"),e(" Update a Flow")],-1),ce=s("p",null,"Update an existing flow.",-1),re=s("h3",{id:"query-parameters-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),e(" Query Parameters")],-1),he=e("Supports all "),ie=e("global query parameters"),de=e("."),pe=s("h3",{id:"request-body-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-2"},"#"),e(" Request Body")],-1),ue=s("p",null,[e("A partial "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),_e=s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),e(" Returns")],-1),fe=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the updated flow.")],-1),ge=s("h3",{id:"rest-api-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-4"},"#"),e(" REST API")],-1),je=s("pre",null,[s("code",null,`PATCH /flows/:id
|
|
99
|
+
`)],-1),me=s("h5",{id:"example-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-7"},"#"),e(" Example")],-1),we=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /flows/2fc325fb-299b-4d20-a9e7-a34349dee8b2"),e(`
|
|
100
|
+
|
|
101
|
+
`),s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
102
|
+
`),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Updated Flow"'),e(`
|
|
103
|
+
`),s("span",{class:"hljs-punctuation"},"}"),e(`
|
|
104
|
+
`)])],-1),be=s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),e(" GraphQL")],-1),ye=s("pre",null,[s("code",null,`POST /graphql/system
|
|
105
|
+
`)],-1),xe=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
|
+
`)])],-1),qe=s("h5",{id:"example-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-8"},"#"),e(" Example")],-1),Ee=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),Te=s("hr",null,null,-1),Pe=s("h2",{id:"update-multiple-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-multiple-flows"},"#"),e(" Update Multiple Flows")],-1),ke=s("p",null,"Update multiple existing flows.",-1),Se=s("h3",{id:"query-parameters-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-5"},"#"),e(" Query Parameters")],-1),Re=e("Supports all "),Ae=e("global query parameters"),Fe=e("."),Oe=s("h3",{id:"request-body-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-3"},"#"),e(" Request Body")],-1),Ie=s("p",null,[s("code",null,"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the flows you\u2019d like to update.")],-1),ve=s("p",null,[s("code",null,"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-flow-object"},"the flow object"),e("\u2019s properties.")],-1),De=s("h3",{id:"returns-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-5"},"#"),e(" Returns")],-1),Le=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow objects"),e(" for the updated flows.")],-1),Qe=s("h3",{id:"rest-api-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-5"},"#"),e(" REST API")],-1),Ge=s("pre",null,[s("code",null,`PATCH /flows
|
|
115
|
+
`)],-1),Me=s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")],-1),Ce=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /flows"),e(`
|
|
116
|
+
|
|
117
|
+
`),s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
118
|
+
`),s("span",{class:"hljs-attr"},'"keys"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"3f2facab-7f05-4ee8-a7a3-d8b9c634a1fc"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"7259bfa8-3786-45c6-8c08-cc688e7ba229"'),s("span",{class:"hljs-punctuation"},"]"),s("span",{class:"hljs-punctuation"},","),e(`
|
|
119
|
+
`),s("span",{class:"hljs-attr"},'"data"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"{"),e(`
|
|
120
|
+
`),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"inactive"'),e(`
|
|
121
|
+
`),s("span",{class:"hljs-punctuation"},"}"),e(`
|
|
122
|
+
`),s("span",{class:"hljs-punctuation"},"}"),e(`
|
|
123
|
+
`)])],-1),Be=s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),e(" GraphQL")],-1),Ue=s("pre",null,[s("code",null,`POST /graphql/system
|
|
124
|
+
`)],-1),He=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
|
+
`)])],-1),Ne=s("h5",{id:"example-10",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-10"},"#"),e(" Example")],-1),$e=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),Ve=s("hr",null,null,-1),Ze=s("h2",{id:"delete-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-a-flow"},"#"),e(" Delete a Flow")],-1),ze=s("p",null,"Delete an existing flow.",-1),Je=s("h3",{id:"returns-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-6"},"#"),e(" Returns")],-1),Ke=s("p",null,"Empty body.",-1),We=s("h3",{id:"rest-api-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-6"},"#"),e(" REST API")],-1),Xe=s("pre",null,[s("code",null,`DELETE /flows/:id
|
|
138
|
+
`)],-1),Ye=s("h5",{id:"example-11",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-11"},"#"),e(" Example")],-1),st=s("pre",null,[s("code",null,`DELETE /flows/12204ee2-2c82-4d9a-b044-2f4842a11dba
|
|
139
|
+
`)],-1),et=s("h3",{id:"graphql-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-6"},"#"),e(" GraphQL")],-1),tt=s("pre",null,[s("code",null,`POST /graphql/system
|
|
140
|
+
`)],-1),at=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
|
+
`)])],-1),nt=s("h5",{id:"example-12",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-12"},"#"),e(" Example")],-1),lt=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),ot=s("hr",null,null,-1),ct=s("h2",{id:"delete-multiple-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-multiple-flows"},"#"),e(" Delete Multiple Flows")],-1),rt=s("p",null,"Delete multiple existing flows.",-1),ht=s("h3",{id:"request-body-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-4"},"#"),e(" Request Body")],-1),it=s("p",null,"An array of flows primary keys",-1),dt=s("h3",{id:"returns-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-7"},"#"),e(" Returns")],-1),pt=s("p",null,"Empty body.",-1),ut=s("h3",{id:"rest-api-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-7"},"#"),e(" REST API")],-1),_t=s("pre",null,[s("code",null,`DELETE /flows
|
|
149
|
+
`)],-1),ft=s("h5",{id:"example-13",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-13"},"#"),e(" Example")],-1),gt=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /flows"),e(`
|
|
150
|
+
`),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"25821236-8c2a-4f89-8fdc-c7d01f35877d"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"02b9486e-4273-4fd5-b94b-e18fd923d1ed"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"7d62f1e9-a83f-407b-84f8-1c184f014501"'),s("span",{class:"hljs-punctuation"},"]"),e(`
|
|
151
|
+
`)])],-1),jt=s("h3",{id:"graphql-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-7"},"#"),e(" GraphQL")],-1),mt=s("pre",null,[s("code",null,`POST /graphql/system
|
|
152
|
+
`)],-1),wt=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
|
+
`)])],-1),bt=s("h5",{id:"example-14",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-14"},"#"),e(" Example")],-1),yt=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),xt=s("h2",{id:"flow-with-get-webhook-trigger",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#flow-with-get-webhook-trigger"},"#"),e(" Flow with GET webhook trigger")],-1),qt=s("p",null,"Start a flow with GET webhook trigger.",-1),Et=s("h3",{id:"returns-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-8"},"#"),e(" Returns")],-1),Tt=s("p",null,"Result of the flow, if any.",-1),Pt=s("h3",{id:"rest-api-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-8"},"#"),e(" REST API")],-1),kt=s("pre",null,[s("code",null,`GET /flows/trigger/:flow_uuid
|
|
167
|
+
`)],-1),St=s("h5",{id:"example-15",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-15"},"#"),e(" Example")],-1),Rt=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),At=s("h2",{id:"flow-with-post-webhook-trigger",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#flow-with-post-webhook-trigger"},"#"),e(" Flow with POST webhook trigger")],-1),Ft=s("p",null,"Start a flow with POST webhook trigger.",-1),Ot=s("h3",{id:"request-body-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-5"},"#"),e(" Request Body")],-1),It=s("p",null,"Payload for the POST request.",-1),vt=s("h3",{id:"returns-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-9"},"#"),e(" Returns")],-1),Dt=s("p",null,"Result of the flow, if any.",-1),Lt=s("h3",{id:"rest-api-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-9"},"#"),e(" REST API")],-1),Qt=s("pre",null,[s("code",null,`POST /flows/trigger/:flow_uuid
|
|
170
|
+
`)],-1),Gt=s("h5",{id:"example-16",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-16"},"#"),e(" Example")],-1),Mt=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),Nt="Flows",$t=!1,Vt="REST and GraphQL API documentation on the Flows collection in Directus.",Zt="5 min read",zt="page-reference",Jt={name:"flows",setup(Ct,{expose:c}){const l={title:"Flows",modularExtension:!1,description:"REST and GraphQL API documentation on the Flows collection in Directus.",readTime:"5 min read",pageClass:"page-reference"};return c({frontmatter:l}),(Bt,Ut)=>{const a=o("router-link"),r=o("docs-wrapper");return h(),i(r,{frontmatter:l},{default:t(()=>[s("div",d,[p,u,_,f,g,j,m,w,b,y,x,q,E,s("p",null,[T,P,k,S,R,n(a,{to:"/docs/reference/system/users#the-users-object"},{default:t(()=>[A]),_:1}),F]),O,I,v,D,L,Q,s("p",null,[G,n(a,{to:"/docs/reference/query"},{default:t(()=>[M]),_:1}),C]),B,s("p",null,[U,n(a,{to:"/docs/reference/query#limit"},{default:t(()=>[H]),_:1}),N,$,V]),Z,z,s("p",null,[n(a,{to:"/docs/reference/introduction#search-http-method"},{default:t(()=>[J]),_:1})]),K,W,X,Y,ss,es,ts,as,ns,s("p",null,[ls,n(a,{to:"/docs/reference/query"},{default:t(()=>[os]),_:1}),cs]),rs,hs,is,ds,ps,us,_s,fs,gs,js,ms,ws,bs,ys,xs,s("p",null,[qs,n(a,{to:"/docs/reference/query"},{default:t(()=>[Es]),_:1}),Ts]),Ps,ks,Ss,Rs,As,Fs,Os,Is,vs,Ds,Ls,Qs,Gs,Ms,Cs,Bs,Us,s("p",null,[Hs,n(a,{to:"/docs/reference/query"},{default:t(()=>[Ns]),_:1}),$s]),Vs,Zs,zs,Js,Ks,Ws,Xs,Ys,se,ee,te,ae,ne,le,oe,ce,re,s("p",null,[he,n(a,{to:"/docs/reference/query"},{default:t(()=>[ie]),_:1}),de]),pe,ue,_e,fe,ge,je,me,we,be,ye,xe,qe,Ee,Te,Pe,ke,Se,s("p",null,[Re,n(a,{to:"/docs/reference/query"},{default:t(()=>[Ae]),_:1}),Fe]),Oe,Ie,ve,De,Le,Qe,Ge,Me,Ce,Be,Ue,He,Ne,$e,Ve,Ze,ze,Je,Ke,We,Xe,Ye,st,et,tt,at,nt,lt,ot,ct,rt,ht,it,dt,pt,ut,_t,ft,gt,jt,mt,wt,bt,yt,xt,qt,Et,Tt,Pt,kt,St,Rt,At,Ft,Ot,It,vt,Dt,Lt,Qt,Gt,Mt])]),_:1})}}};export{Jt as default,Vt as description,$t as modularExtension,zt as pageClass,Zt as readTime,Nt as title};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{a as l,o as r,b as d,w as s,g as e,e as n,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=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),p={class:"tip hint"},_=e("div",{class:"hint-title"},"Learn More",-1),w=t("There is also dedicated API documentation on "),f=t("Flows"),g=t(" and "),m=t("Operations"),b=t("."),j=e("h2",{id:"what%E2%80%99s-a-flow%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#what%E2%80%99s-a-flow%3F"},"#"),t(" What\u2019s a Flow?")],-1),y=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),O=t("Each Flow begins with one Trigger, which defines the actions that start the Flow. Triggers can be an event or action within the app, an incoming webhook, a cron job, or a manual click of a button. Please see the documentation on "),F=t("Triggers"),v=t(" for more details."),k=t("Operations are the actions performed after the Trigger. An operation can be creating new Items in a Collection, sending off emails, pushing "),T=e("em",null,"in-app",-1),x=t(" notifications, or sending webhooks, just to name a few. You can even set up divergent chains of Flow Operations, which execute conditionally, based on whether one Operation passed or failed. A "),A=t("console log"),C=t(" is also included to help design and troubleshoot your Flows and ensure data is passed on as intended. Check out the documentation on "),P=t("Operations"),E=t(" for more details."),S=e("p",null,[t("Once a Flow is triggered, Directus creates a "),e("a",{href:"#the-flow-object"},"Flow Object"),t(", which stores data from the Trigger event. As each Operation in the flow executes, the data generated is added onto this Flow Object, and every Operation in a Flow has access to it.")],-1),D=e("h2",{id:"create-a-flow",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-flow"},"#"),t(" Create a Flow")],-1),N=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Create a Flow"},[e("source",{src:"https://cdn.directus.io/docs/v9/configuration/flows/flows/flows-20220603A/create-a-flow-20220603A.mp4",type:"video/mp4"})],-1),$=e("p",null,"To create a Flow, follow these steps:",-1),V=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),L=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),B=t("Select your "),W=e("strong",null,"Activity and Logs Tracking",-1),G=t(" preference as desired."),H=e("br",null,null,-1),I=t(" To learn more, please see "),Y=t("Activity"),q=t(" and "),J=e("a",{href:"#logs"},"Logs",-1),M=t("."),K=t("Click "),R=e("span",{mi:"",btn:""},"arrow_forward",-1),U=t(" to navigate to "),z=e("strong",null,"Trigger Setup",-1),Q=t(", select a "),X=t("Trigger"),Z=t(" type and configure as desired."),ee=e("li",null,[t("Click "),e("span",{mi:"",btn:""},"done"),t(" in the Menu Header to be taken to the Flow Grid Area."),e("br"),t(" You\u2019ll see the Trigger Panel on the Flow Grid.")],-1),te=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),se=t("Choose a name and the "),oe=t("Operation"),ne=t(" type, and configure as desired."),ae=e("br",null,null,-1),le=t(" Directus will convert the unique name into an Operation Key, used on the "),ie=e("a",{href:"#the-flow-object"},"Flow Object",-1),ce=t("."),re=e("br",null,null,-1),de=t(" If you don\u2019t choose a name, the system will auto-generate a name and key."),he=e("li",null,[t("Next, click "),e("span",{mi:"",btn:""},"done"),t(" in the Page Header to confirm your choices and return to the Flow Grid Area.")],-1),ue=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 an Operation to follow the successful execution of the current Operation.")]),e("li",null,[t("Click "),e("span",{mi:"",icon:""},"remove"),t(" to add an Operation should the current Operation fail.")])])],-1),pe=e("li",null,"Repeat steps 8-10 to add to your Flow.",-1),_e=e("li",null,[e("strong",null,"Optional:"),t(" To edit a Trigger or Operation Panel, click "),e("span",{mi:"",icon:""},"edit"),t(" and make any necessary edits.")],-1),we=e("li",null,[e("strong",null,"Optional:"),t(" To delete an Operation Panel, click "),e("span",{mi:"",icon:""},"more_vert"),t(" then "),e("span",{mi:"",icon:"",dngr:""},"delete"),t(".")],-1),fe=e("h2",{id:"the-flow-object",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#the-flow-object"},"#"),t(" The Flow Object")],-1),ge=e("p",null,"When a Flow is triggered, Directus creates a JSON object to store all data generated within the Flow. When you create an Operation, this generates a key that appends to the Flow Object when the Operation executes. The key 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),me=e("p",null,[t("The following JSON object is a simple example of a Flow with two Operations. The "),e("code",null,"$trigger"),t(", "),e("code",null,"$last"),t(", and "),e("code",null,"$accountability"),t(" keys are included on every Flow. An Operation key will be generated for each Operation that executes successfully.")],-1),be=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),t(`
|
|
2
|
+
`),e("span",{class:"hljs-attr"},'"$trigger"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-punctuation"},"{"),e("span",{class:"hljs-punctuation"},"}"),e("span",{class:"hljs-punctuation"},","),t(),e("span",{class:"hljs-comment"},"// Data generated by the Flow's Trigger."),t(`
|
|
3
|
+
`),e("span",{class:"hljs-attr"},'"$last"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-literal"},[e("span",{class:"hljs-keyword"},"null")]),e("span",{class:"hljs-punctuation"},","),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"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-punctuation"},"{"),e("span",{class:"hljs-punctuation"},"}"),e("span",{class:"hljs-punctuation"},","),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"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-punctuation"},"{"),t(`
|
|
6
|
+
`),e("span",{class:"hljs-comment"},"// The data (if any) generated by the first Operation."),t(`
|
|
7
|
+
`),e("span",{class:"hljs-attr"},'"some_nested_key"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-string"},'"Some nested value."'),t(`
|
|
8
|
+
`),e("span",{class:"hljs-punctuation"},"}"),e("span",{class:"hljs-punctuation"},","),t(`
|
|
9
|
+
`),e("span",{class:"hljs-attr"},'"operation_key_2"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-literal"},[e("span",{class:"hljs-keyword"},"null")]),t(),e("span",{class:"hljs-comment"},"// Value is null if no data was generated during an Operation."),t(`
|
|
10
|
+
`),e("span",{class:"hljs-punctuation"},"}"),t(`
|
|
11
|
+
`)])],-1),je=e("h3",{id:"flow-variables",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#flow-variables"},"#"),t(" Flow Variables")],-1),ye=e("p",null,"The Flow Object keys serve as variables that allow 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),Oe=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),t(`
|
|
12
|
+
`),e("span",{class:"hljs-attr"},'"operation_key_3"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-punctuation"},"{"),t(`
|
|
13
|
+
`),e("span",{class:"hljs-attr"},'"user"'),e("span",{class:"hljs-punctuation"},":"),t(),e("span",{class:"hljs-string"},'"{{ $accountability.user }}"'),t(`
|
|
14
|
+
`),e("span",{class:"hljs-punctuation"},"}"),t(`
|
|
15
|
+
`),e("span",{class:"hljs-punctuation"},"}"),t(`
|
|
16
|
+
`)])],-1),Fe=e("h2",{id:"logs",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#logs"},"#"),t(" Logs")],-1),ve=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:""},[e("source",{src:"https://cdn.directus.io/docs/v9/configuration/flows/flows/flows-20220603A/logs-20220603A.mp4",type:"video/mp4"})],-1),ke=e("p",null,"Accessible from the Sidebar, Logs store information for each Flow execution. Each log will display information from Triggers as well as each Operation in the Flow.",-1),Pe="Flows",Ee=!1,Se="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.",De="5 min read",Ne={name:"flows",setup(Te,{expose:i}){const a={title:"Flows",modularExtension:!1,description:"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.",readTime:"5 min read"};return i({frontmatter:a}),(xe,Ae)=>{const o=l("router-link"),c=l("docs-wrapper");return r(),d(c,{frontmatter:a},{default:s(()=>[e("div",h,[u,e("div",p,[_,e("p",null,[w,n(o,{to:"/docs/reference/system/flows"},{default:s(()=>[f]),_:1}),g,n(o,{to:"/docs/reference/system/operations"},{default:s(()=>[m]),_:1}),b])]),j,y,e("p",null,[O,n(o,{to:"/docs/configuration/flows/triggers"},{default:s(()=>[F]),_:1}),v]),e("p",null,[k,T,x,n(o,{to:"/docs/configuration/flows/operations#log-to-console"},{default:s(()=>[A]),_:1}),C,n(o,{to:"/docs/configuration/flows/operations"},{default:s(()=>[P]),_:1}),E]),S,D,N,$,e("ol",null,[V,L,e("li",null,[B,W,G,H,I,n(o,{to:"/docs/reference/system/activity"},{default:s(()=>[Y]),_:1}),q,J,M]),e("li",null,[K,R,U,z,Q,n(o,{to:"/docs/configuration/flows/triggers"},{default:s(()=>[X]),_:1}),Z]),ee,te,e("li",null,[se,n(o,{to:"/docs/configuration/flows/operations"},{default:s(()=>[oe]),_:1}),ne,ae,le,ie,ce,re,de]),he,ue,pe,_e,we]),fe,ge,me,be,je,ye,Oe,Fe,ve,ke])]),_:1})}}};export{Ne as default,Se as description,Ee as modularExtension,De as readTime,Pe as title};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import{a as o,o as c,b as h,w as a,g as e,e as n,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const i={class:"markdown-body"},p=e("blockquote",null,[e("p",null,"Folders can be used to organize files within the platform. Folders are virtual, and aren\u2019t mirrored within the storage adapter.")],-1),u=e("hr",null,null,-1),_=e("h2",{id:"the-folder-object",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#the-folder-object"},"#"),s(" The Folder Object")],-1),f=e("p",null,[e("code",null,"id"),s(),e("strong",null,"uuid"),e("br"),s(" Primary key of the folder.")],-1),b=e("p",null,[e("code",null,"name"),s(),e("strong",null,"string"),e("br"),s(" Name of the folder.")],-1),m=e("p",null,[e("code",null,"parent"),s(),e("strong",null,"many-to-one"),e("br"),s(" Parent folder. Many-to-one to folders (recursive).")],-1),j=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
2
|
+
`),e("span",{class:"hljs-attr"},'"data"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
3
|
+
`),e("span",{class:"hljs-attr"},'"id"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"fc02d733-95b8-4e27-bd4b-08a32cbe4e66"'),e("span",{class:"hljs-punctuation"},","),s(`
|
|
4
|
+
`),e("span",{class:"hljs-attr"},'"name"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"Test"'),e("span",{class:"hljs-punctuation"},","),s(`
|
|
5
|
+
`),e("span",{class:"hljs-attr"},'"parent"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-literal"},[e("span",{class:"hljs-keyword"},"null")]),s(`
|
|
6
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
7
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
8
|
+
`)])],-1),g=e("hr",null,null,-1),y=e("h2",{id:"list-folders",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#list-folders"},"#"),s(" List Folders")],-1),x=e("p",null,"List all folders that exist in Directus.",-1),q=e("h3",{id:"query-parameters",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters"},"#"),s(" Query Parameters")],-1),E=s("Supports all "),T=s("global query parameters"),w=s("."),P=e("h3",{id:"returns",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns"},"#"),s(" Returns")],-1),R=s("An array of up to "),k=s("limit"),S=s(),A=e("a",{href:"#the-folder-object"},"folder objects",-1),v=s(". If no items are available, data will be an empty array."),L=e("h3",{id:"rest-api",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api"},"#"),s(" REST API")],-1),Q=e("pre",null,[e("code",null,`GET /folders
|
|
9
|
+
SEARCH /folders
|
|
10
|
+
`)],-1),D=s("Learn more about SEARCH ->"),F=e("h3",{id:"graphql",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql"},"#"),s(" GraphQL")],-1),C=e("pre",null,[e("code",null,`POST /graphql/system
|
|
11
|
+
`)],-1),I=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
|
|
12
|
+
folders: directus_folders
|
|
13
|
+
}
|
|
14
|
+
`)])],-1),G=e("h5",{id:"example",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example"},"#"),s(" Example")],-1),O=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
|
|
15
|
+
folders {
|
|
16
|
+
name
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`)])],-1),M=e("hr",null,null,-1),B=e("h2",{id:"retrieve-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#retrieve-a-folder"},"#"),s(" Retrieve a Folder")],-1),N=e("p",null,"List all folders that exist in Directus.",-1),H=e("h3",{id:"query-parameters-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),s(" Query Parameters")],-1),U=s("Supports all "),V=s("global query parameters"),z=s("."),J=e("h3",{id:"returns-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-1"},"#"),s(" Returns")],-1),K=e("p",null,[s("Returns a "),e("a",{href:"#the-folder-object"},"folder object"),s(" if a valid primary key was provided.")],-1),W=e("h3",{id:"rest-api-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-1"},"#"),s(" REST API")],-1),X=e("pre",null,[e("code",null,`GET /folders/:id
|
|
20
|
+
`)],-1),Y=e("h5",{id:"example-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-1"},"#"),s(" Example")],-1),Z=e("pre",null,[e("code",null,`GET /folders/fc02d733-95b8-4e27-bd4b-08a32cbe4e66
|
|
21
|
+
`)],-1),$=e("h3",{id:"graphql-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-1"},"#"),s(" GraphQL")],-1),ee=e("pre",null,[e("code",null,`POST /graphql/system
|
|
22
|
+
`)],-1),se=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
|
|
23
|
+
folders_by_id(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): directus_folders
|
|
24
|
+
}
|
|
25
|
+
`)])],-1),ae=e("h5",{id:"example-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-2"},"#"),s(" Example")],-1),te=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
|
|
26
|
+
folders_by_id(id: `),e("span",{class:"hljs-string"},'"fc02d733-95b8-4e27-bd4b-08a32cbe4e66"'),s(`) {
|
|
27
|
+
name
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`)])],-1),ne=e("hr",null,null,-1),le=e("h2",{id:"create-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-folder"},"#"),s(" Create a Folder")],-1),oe=e("p",null,"Create a new (virtual) folder.",-1),re=e("h3",{id:"query-parameters-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),s(" Query Parameters")],-1),de=s("Supports all "),ce=s("global query parameters"),he=s("."),ie=e("h3",{id:"request-body",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body"},"#"),s(" Request Body")],-1),pe=e("p",null,[s("A partial "),e("a",{href:"#the-folder-object"},"folder object"),s(". "),e("code",null,"name"),s(" is required.")],-1),ue=e("h3",{id:"returns-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-2"},"#"),s(" Returns")],-1),_e=e("p",null,[s("Returns the "),e("a",{href:"#the-folder-object"},"folder object"),s(" of the folder that was created.")],-1),fe=e("h3",{id:"rest-api-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-2"},"#"),s(" REST API")],-1),be=e("pre",null,[e("code",null,`POST /folders
|
|
31
|
+
`)],-1),me=e("h5",{id:"example-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-3"},"#"),s(" Example")],-1),je=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /folders"),s(`
|
|
32
|
+
|
|
33
|
+
`),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
34
|
+
`),e("span",{class:"hljs-attr"},'"name"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"Nature"'),s(`
|
|
35
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
36
|
+
`)])],-1),ge=e("h3",{id:"graphql-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-2"},"#"),s(" GraphQL")],-1),ye=e("pre",null,[e("code",null,`POST /graphql/system
|
|
37
|
+
`)],-1),xe=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
38
|
+
create_folders_item(data: create_directus_folders_input): directus_folders
|
|
39
|
+
}
|
|
40
|
+
`)])],-1),qe=e("h5",{id:"example-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-4"},"#"),s(" Example")],-1),Ee=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
41
|
+
create_folders_item(data: { name: `),e("span",{class:"hljs-string"},'"Nature"'),s(` }) {
|
|
42
|
+
id
|
|
43
|
+
name
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`)])],-1),Te=e("hr",null,null,-1),we=e("h2",{id:"create-multiple-folders",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-multiple-folders"},"#"),s(" Create Multiple Folders")],-1),Pe=e("p",null,"Create multiple new (virtual) folders.",-1),Re=e("h3",{id:"query-parameters-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),s(" Query Parameters")],-1),ke=s("Supports all "),Se=s("global query parameters"),Ae=s("."),ve=e("h3",{id:"request-body-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body-1"},"#"),s(" Request Body")],-1),Le=e("p",null,[s("An array of partial "),e("a",{href:"#the-folder-object"},"folder objects"),s(". "),e("code",null,"name"),s(" is required.")],-1),Qe=e("h3",{id:"returns-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-3"},"#"),s(" Returns")],-1),De=e("p",null,[s("Returns the "),e("a",{href:"#the-folder-object"},"folder object"),s(" of the folder that was created.")],-1),Fe=e("h3",{id:"rest-api-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-3"},"#"),s(" REST API")],-1),Ce=e("pre",null,[e("code",null,`POST /folders
|
|
47
|
+
`)],-1),Ie=e("h5",{id:"example-5",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-5"},"#"),s(" Example")],-1),Ge=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /folders"),s(`
|
|
48
|
+
|
|
49
|
+
`),e("span",{class:"hljs-punctuation"},"["),s(`
|
|
50
|
+
`),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
51
|
+
`),e("span",{class:"hljs-attr"},'"name"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"Nature"'),s(`
|
|
52
|
+
`),e("span",{class:"hljs-punctuation"},"}"),e("span",{class:"hljs-punctuation"},","),s(`
|
|
53
|
+
`),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
54
|
+
`),e("span",{class:"hljs-attr"},'"name"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"Cities"'),s(`
|
|
55
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
56
|
+
`),e("span",{class:"hljs-punctuation"},"]"),s(`
|
|
57
|
+
`)])],-1),Oe=e("h3",{id:"graphql-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-3"},"#"),s(" GraphQL")],-1),Me=e("pre",null,[e("code",null,`POST /graphql/system
|
|
58
|
+
`)],-1),Be=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
59
|
+
create_folders_items(data: [create_directus_folders_input]): [directus_folders]
|
|
60
|
+
}
|
|
61
|
+
`)])],-1),Ne=e("h5",{id:"example-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-6"},"#"),s(" Example")],-1),He=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
62
|
+
create_folders_items(data: [{ name: `),e("span",{class:"hljs-string"},'"Nature"'),s(" }, { name: "),e("span",{class:"hljs-string"},'"Cities"'),s(` }]) {
|
|
63
|
+
id
|
|
64
|
+
name
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`)])],-1),Ue=e("hr",null,null,-1),Ve=e("h2",{id:"update-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#update-a-folder"},"#"),s(" Update a Folder")],-1),ze=e("p",null,"Update an existing folder.",-1),Je=e("h3",{id:"query-parameters-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),s(" Query Parameters")],-1),Ke=s("Supports all "),We=s("global query parameters"),Xe=s("."),Ye=e("h3",{id:"request-body-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body-2"},"#"),s(" Request Body")],-1),Ze=e("p",null,[s("A partial "),e("a",{href:"#the-folder-object"},"folder object"),s(".")],-1),$e=e("h3",{id:"returns-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-4"},"#"),s(" Returns")],-1),es=e("p",null,[s("Returns the "),e("a",{href:"#the-folder-object"},"folder object"),s(" of the folder that was updated.")],-1),ss=e("h3",{id:"rest-api-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-4"},"#"),s(" REST API")],-1),as=e("pre",null,[e("code",null,`PATCH /folders/:id
|
|
68
|
+
`)],-1),ts=e("h5",{id:"example-7",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-7"},"#"),s(" Example")],-1),ns=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /folders/fac21847-d5ce-4e4b-a288-9abafbdfbc87"),s(`
|
|
69
|
+
|
|
70
|
+
`),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
71
|
+
`),e("span",{class:"hljs-attr"},'"parent"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"d97c2e0e-293d-4eb5-9e1c-27d3460ad29d"'),s(`
|
|
72
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
73
|
+
`)])],-1),ls=e("h3",{id:"graphql-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-4"},"#"),s(" GraphQL")],-1),os=e("pre",null,[e("code",null,`POST /graphql/system
|
|
74
|
+
`)],-1),rs=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
75
|
+
update_folders_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!, data: update_directus_folders_input): directus_folders
|
|
76
|
+
}
|
|
77
|
+
`)])],-1),ds=e("h5",{id:"example-8",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-8"},"#"),s(" Example")],-1),cs=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
78
|
+
update_folders_item(
|
|
79
|
+
id: `),e("span",{class:"hljs-string"},'"fac21847-d5ce-4e4b-a288-9abafbdfbc87"'),s(`
|
|
80
|
+
data: { parent: `),e("span",{class:"hljs-string"},'"d97c2e0e-293d-4eb5-9e1c-27d3460ad29d"'),s(` }
|
|
81
|
+
) {
|
|
82
|
+
id
|
|
83
|
+
name
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`)])],-1),hs=e("hr",null,null,-1),is=e("h2",{id:"update-multiple-folders",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#update-multiple-folders"},"#"),s(" Update Multiple Folders")],-1),ps=e("p",null,"Update multiple existing folders.",-1),us=e("h3",{id:"query-parameters-5",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-5"},"#"),s(" Query Parameters")],-1),_s=s("Supports all "),fs=s("global query parameters"),bs=s("."),ms=e("h3",{id:"request-body-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body-3"},"#"),s(" Request Body")],-1),js=e("p",null,[e("code",null,"keys"),s(),e("strong",null,"Required"),e("br"),s(" Array of primary keys of the folders you\u2019d like to update.")],-1),gs=e("p",null,[e("code",null,"data"),s(),e("strong",null,"Required"),e("br"),s(" Any of "),e("a",{href:"#the-folder-object"},"the folder object"),s("\u2019s properties.")],-1),ys=e("h3",{id:"returns-5",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-5"},"#"),s(" Returns")],-1),xs=e("p",null,[s("Returns the "),e("a",{href:"#the-folder-object"},"folder objects"),s(" of the folders that were updated.")],-1),qs=e("h3",{id:"rest-api-5",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-5"},"#"),s(" REST API")],-1),Es=e("pre",null,[e("code",null,`PATCH /folders
|
|
87
|
+
`)],-1),Ts=e("h5",{id:"example-9",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-9"},"#"),s(" Example")],-1),ws=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /folders"),s(`
|
|
88
|
+
|
|
89
|
+
`),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
90
|
+
`),e("span",{class:"hljs-attr"},'"keys"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-punctuation"},"["),e("span",{class:"hljs-string"},'"fac21847-d5ce-4e4b-a288-9abafbdfbc87"'),e("span",{class:"hljs-punctuation"},","),s(),e("span",{class:"hljs-string"},'"a5bdb793-dd85-4ac9-882a-b42862092983"'),e("span",{class:"hljs-punctuation"},"]"),e("span",{class:"hljs-punctuation"},","),s(`
|
|
91
|
+
`),e("span",{class:"hljs-attr"},'"data"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
92
|
+
`),e("span",{class:"hljs-attr"},'"parent"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"d97c2e0e-293d-4eb5-9e1c-27d3460ad29d"'),s(`
|
|
93
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
94
|
+
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
95
|
+
`)])],-1),Ps=e("h3",{id:"graphql-5",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-5"},"#"),s(" GraphQL")],-1),Rs=e("pre",null,[e("code",null,`POST /graphql/system
|
|
96
|
+
`)],-1),ks=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
97
|
+
update_folders_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!, data: update_directus_folders_input): [directus_folders]
|
|
98
|
+
}
|
|
99
|
+
`)])],-1),Ss=e("h5",{id:"example-10",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-10"},"#"),s(" Example")],-1),As=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
100
|
+
update_folders_items(
|
|
101
|
+
ids: [`),e("span",{class:"hljs-string"},'"fac21847-d5ce-4e4b-a288-9abafbdfbc87"'),s(", "),e("span",{class:"hljs-string"},'"a5bdb793-dd85-4ac9-882a-b42862092983"'),s(`]
|
|
102
|
+
data: { parent: `),e("span",{class:"hljs-string"},'"d97c2e0e-293d-4eb5-9e1c-27d3460ad29d"'),s(` }
|
|
103
|
+
) {
|
|
104
|
+
id
|
|
105
|
+
name
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`)])],-1),vs=e("hr",null,null,-1),Ls=e("h2",{id:"delete-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-a-folder"},"#"),s(" Delete a Folder")],-1),Qs=e("p",null,"Delete an existing folder.",-1),Ds=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Files"),e("p",null,"Any files in this folder will be moved to the root folder.")],-1),Fs=e("h3",{id:"returns-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-6"},"#"),s(" Returns")],-1),Cs=e("p",null,"Empty body.",-1),Is=e("h3",{id:"rest-api-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-6"},"#"),s(" REST API")],-1),Gs=e("pre",null,[e("code",null,`DELETE /folders/:id
|
|
109
|
+
`)],-1),Os=e("h5",{id:"example-11",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-11"},"#"),s(" Example")],-1),Ms=e("pre",null,[e("code",null,`// DELETE /folders/a5bdb793-dd85-4ac9-882a-b42862092983
|
|
110
|
+
`)],-1),Bs=e("h3",{id:"graphql-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-6"},"#"),s(" GraphQL")],-1),Ns=e("pre",null,[e("code",null,`POST /graphql/system
|
|
111
|
+
`)],-1),Hs=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
112
|
+
delete_folders_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): delete_one
|
|
113
|
+
}
|
|
114
|
+
`)])],-1),Us=e("h5",{id:"example-12",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-12"},"#"),s(" Example")],-1),Vs=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
115
|
+
delete_folders_item(id: `),e("span",{class:"hljs-string"},'"fac21847-d5ce-4e4b-a288-9abafbdfbc87"'),s(`) {
|
|
116
|
+
id
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`)])],-1),zs=e("hr",null,null,-1),Js=e("h2",{id:"delete-multiple-folders",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-multiple-folders"},"#"),s(" Delete Multiple Folders")],-1),Ks=e("p",null,"Delete multiple existing folders.",-1),Ws=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Files"),e("p",null,"Any files in these folders will be moved to the root folder.")],-1),Xs=e("h3",{id:"request-body-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body-4"},"#"),s(" Request Body")],-1),Ys=e("p",null,"An array of folder primary keys.",-1),Zs=e("h3",{id:"returns-7",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-7"},"#"),s(" Returns")],-1),$s=e("p",null,"Empty body.",-1),ea=e("h3",{id:"rest-api-7",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-7"},"#"),s(" REST API")],-1),sa=e("pre",null,[e("code",null,`DELETE /folders
|
|
120
|
+
`)],-1),aa=e("h5",{id:"example-13",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-13"},"#"),s(" Example")],-1),ta=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// DELETE /folders"),s(`
|
|
121
|
+
|
|
122
|
+
`),e("span",{class:"hljs-punctuation"},"["),e("span",{class:"hljs-string"},'"d97c2e0e-293d-4eb5-9e1c-27d3460ad29d"'),e("span",{class:"hljs-punctuation"},","),s(),e("span",{class:"hljs-string"},'"fc02d733-95b8-4e27-bd4b-08a32cbe4e66"'),e("span",{class:"hljs-punctuation"},"]"),s(`
|
|
123
|
+
`)])],-1),na=e("h3",{id:"graphql-7",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-7"},"#"),s(" GraphQL")],-1),la=e("pre",null,[e("code",null,`POST /graphql/system
|
|
124
|
+
`)],-1),oa=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
125
|
+
delete_folders_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!): delete_many
|
|
126
|
+
}
|
|
127
|
+
`)])],-1),ra=e("h5",{id:"example-14",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-14"},"#"),s(" Example")],-1),da=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
128
|
+
delete_folders_items(ids: [`),e("span",{class:"hljs-string"},'"fac21847-d5ce-4e4b-a288-9abafbdfbc87"'),s(", "),e("span",{class:"hljs-string"},'"a5bdb793-dd85-4ac9-882a-b42862092983"'),s(`]) {
|
|
129
|
+
ids
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
`)])],-1),ua="Folders",_a=!1,fa="REST and GraphQL API documentation on the Folders collection in Directus.",ba="4 min read",ma="page-reference",ja={name:"folders",setup(ca,{expose:r}){const l={title:"Folders",modularExtension:!1,description:"REST and GraphQL API documentation on the Folders collection in Directus.",readTime:"4 min read",pageClass:"page-reference"};return r({frontmatter:l}),(ha,ia)=>{const t=o("router-link"),d=o("docs-wrapper");return c(),h(d,{frontmatter:l},{default:a(()=>[e("div",i,[p,u,_,f,b,m,j,g,y,x,q,e("p",null,[E,n(t,{to:"/docs/reference/query"},{default:a(()=>[T]),_:1}),w]),P,e("p",null,[R,n(t,{to:"/docs/reference/query#limit"},{default:a(()=>[k]),_:1}),S,A,v]),L,Q,e("p",null,[n(t,{to:"/docs/reference/introduction#search-http-method"},{default:a(()=>[D]),_:1})]),F,C,I,G,O,M,B,N,H,e("p",null,[U,n(t,{to:"/docs/reference/query"},{default:a(()=>[V]),_:1}),z]),J,K,W,X,Y,Z,$,ee,se,ae,te,ne,le,oe,re,e("p",null,[de,n(t,{to:"/docs/reference/query"},{default:a(()=>[ce]),_:1}),he]),ie,pe,ue,_e,fe,be,me,je,ge,ye,xe,qe,Ee,Te,we,Pe,Re,e("p",null,[ke,n(t,{to:"/docs/reference/query"},{default:a(()=>[Se]),_:1}),Ae]),ve,Le,Qe,De,Fe,Ce,Ie,Ge,Oe,Me,Be,Ne,He,Ue,Ve,ze,Je,e("p",null,[Ke,n(t,{to:"/docs/reference/query"},{default:a(()=>[We]),_:1}),Xe]),Ye,Ze,$e,es,ss,as,ts,ns,ls,os,rs,ds,cs,hs,is,ps,us,e("p",null,[_s,n(t,{to:"/docs/reference/query"},{default:a(()=>[fs]),_:1}),bs]),ms,js,gs,ys,xs,qs,Es,Ts,ws,Ps,Rs,ks,Ss,As,vs,Ls,Qs,Ds,Fs,Cs,Is,Gs,Os,Ms,Bs,Ns,Hs,Us,Vs,zs,Js,Ks,Ws,Xs,Ys,Zs,$s,ea,sa,aa,ta,na,la,oa,ra,da])]),_:1})}}};export{ja as default,fa as description,_a as modularExtension,ma as pageClass,ba as readTime,ua as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as S}from"./index.
|
|
1
|
+
import{y as S}from"./index.5552d1ba.entry.js";function T(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(S.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 A=u.exports,D=T({__proto__:null,default:A},[u.exports]);export{D as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as h}from"./index.
|
|
1
|
+
import{y as h}from"./index.5552d1ba.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};
|