@directus/app 9.3.0 → 9.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/@directus_extensions-sdk.7ad89904.entry.js +1 -0
- package/dist/assets/{active-line.e11ef347.js → active-line.22013884.js} +1 -1
- package/dist/assets/{activity-log.f793a2d0.js → activity-log.af2187b5.js} +1 -1
- package/dist/assets/{activity.a338a1c0.js → activity.5af6d744.js} +5 -5
- package/dist/assets/af-ZA.862e836f.js +1 -0
- package/dist/assets/{apl.2c916dd8.js → apl.f599031b.js} +1 -1
- package/dist/assets/ar-SA.8d9b4118.js +1 -0
- package/dist/assets/{asciiarmor.f4e5f797.js → asciiarmor.1703e99a.js} +1 -1
- package/dist/assets/{asn.1.f23b5553.js → asn.1.8a538328.js} +1 -1
- package/dist/assets/{asterisk.dfdcffe7.js → asterisk.82ffd83a.js} +1 -1
- package/dist/assets/{authentication.a0d979d6.js → authentication.9ee1c47e.js} +4 -4
- package/dist/assets/{autorefresh.7ea9d5bb.js → autorefresh.2be203c7.js} +1 -1
- package/dist/assets/{aws.3aea53bf.js → aws.ea2de58d.js} +1 -1
- package/dist/assets/{backing-directus.3e4e7897.js → backing-directus.70bbd89b.js} +1 -1
- package/dist/assets/bg-BG.b16b9f13.js +2 -0
- package/dist/assets/br-FR.f257fe8c.js +1 -0
- package/dist/assets/{brainfuck.80c76211.js → brainfuck.8061bd49.js} +1 -1
- package/dist/assets/ca-ES.df0af7f3.js +1 -0
- package/dist/assets/{cli.3cadee83.js → cli.46151509.js} +4 -4
- package/dist/assets/{cli.091ee1ec.js → cli.d1c8ad6e.js} +2 -2
- package/dist/assets/{clike.021bb1df.js → clike.131147f5.js} +1 -1
- package/dist/assets/{clojure.6c6306c6.js → clojure.00c0cf4e.js} +1 -1
- package/dist/assets/{cloudron.d3ae3190.js → cloudron.6816537c.js} +1 -1
- package/dist/assets/cmake.7eecbce2.js +1 -0
- package/dist/assets/{cobol.5d54099c.js → cobol.4cfeeece.js} +1 -1
- package/dist/assets/{codebase-overview.0247f134.js → codebase-overview.5d015d35.js} +1 -1
- package/dist/assets/{coffeescript.23f1d473.js → coffeescript.0694e631.js} +1 -1
- package/dist/assets/{collections.112ce182.js → collections.8a084785.js} +3 -3
- package/dist/assets/{commonlisp.4a03fa43.js → commonlisp.fa8ad0d0.js} +1 -1
- package/dist/assets/{config-options.5af53e35.js → config-options.64b9d37b.js} +19 -15
- package/dist/assets/{content-collections.5d877e50.js → content-collections.46ff9208.js} +1 -1
- package/dist/assets/{content-items.1277ed4f.js → content-items.eeee337a.js} +1 -1
- package/dist/assets/{content.e8956f53.js → content.01dfa0d8.js} +1 -1
- package/dist/assets/{creating-extensions.49b1b5b4.js → creating-extensions.ca79e296.js} +3 -3
- package/dist/assets/{crystal.86d0358e.js → crystal.feeb3ced.js} +1 -1
- package/dist/assets/cs-CZ.0d2bda0e.js +1 -0
- package/dist/assets/{css.aeb96fad.js → css.1e5b2bf0.js} +1 -1
- package/dist/assets/{cypher.9a3ba094.js → cypher.5bdbdcb0.js} +1 -1
- package/dist/assets/{d.903703cd.js → d.36e8f711.js} +1 -1
- package/dist/assets/da-DK.edb53a2a.js +1 -0
- package/dist/assets/{dart.14a060a3.js → dart.138e6432.js} +1 -1
- package/dist/assets/{data-model.f1efc866.js → data-model.bb47c4cd.js} +1 -1
- package/dist/assets/de-DE.a187fbd6.js +1 -0
- package/dist/assets/{diff.0db0ec31.js → diff.b3ccf017.js} +1 -1
- package/dist/assets/{digitalocean-app-platform.99a8d52c.js → digitalocean-app-platform.de762f92.js} +2 -2
- package/dist/assets/{displays.32e03cde.js → displays.74df0c52.js} +3 -3
- package/dist/assets/{django.965e64c8.js → django.e834c150.js} +1 -1
- package/dist/assets/{docker.7c236266.js → docker.557cbad1.js} +1 -1
- package/dist/assets/{dockerfile.f6b29430.js → dockerfile.55be9867.js} +1 -1
- package/dist/assets/{documentation.9b975228.js → documentation.c73fcefe.js} +1 -1
- package/dist/assets/{dtd.d2dbd5e2.js → dtd.62ec298b.js} +1 -1
- package/dist/assets/{dylan.ec2b230a.js → dylan.fb20017d.js} +1 -1
- package/dist/assets/{ebnf.90b8dd09.js → ebnf.cc1caba1.js} +1 -1
- package/dist/assets/{ecl.e3a8f85e.js → ecl.f2b5f067.js} +1 -1
- package/dist/assets/{eiffel.6264eba9.js → eiffel.c16c8917.js} +1 -1
- package/dist/assets/{el-GR.b56bb816.js → el-GR.d937df19.js} +1 -1
- package/dist/assets/elm.2dac1815.js +1 -0
- package/dist/assets/{email-templates.3cbede56.js → email-templates.e8497808.js} +2 -2
- package/dist/assets/en-GB.eda59d28.js +1 -0
- package/dist/assets/{endpoints.adc5c54b.js → endpoints.fa2ecf56.js} +1 -1
- package/dist/assets/{erlang.d2414be4.js → erlang.a730eb94.js} +1 -1
- package/dist/assets/es-419.48c6f8ff.js +1 -0
- package/dist/assets/es-CL.0620ee5f.js +1 -0
- package/dist/assets/es-ES.74a9016d.js +1 -0
- package/dist/assets/et-EE.e7b238fa.js +3 -0
- package/dist/assets/{extensions.1e480845.js → extensions.caa6026d.js} +2 -2
- package/dist/assets/fa-IR.292df17e.js +1 -0
- package/dist/assets/{factor.0d586436.js → factor.19134aa6.js} +1 -1
- package/dist/assets/{faq.cc27c10d.js → faq.a5539fa8.js} +1 -1
- package/dist/assets/{fcl.b585ddd2.js → fcl.68c2a47d.js} +1 -1
- package/dist/assets/fi-FI.a640cc7b.js +1 -0
- package/dist/assets/{fields.ac0779db.js → fields.06eddf8a.js} +3 -3
- package/dist/assets/{file-library.72aadc40.js → file-library.b3029543.js} +1 -1
- package/dist/assets/{files.39d00752.js → files.10403822.js} +5 -5
- package/dist/assets/{filter-rules.92c31ebd.js → filter-rules.36388fdf.js} +2 -2
- package/dist/assets/fo-FO.9d2669e3.js +1 -0
- package/dist/assets/{folders.71f88e35.js → folders.739ac53f.js} +4 -4
- package/dist/assets/{forth.349244ea.js → forth.8d5842cc.js} +1 -1
- package/dist/assets/{fortran.2e9a8bf0.js → fortran.774a2696.js} +1 -1
- package/dist/assets/fr-FR.7ab922d8.js +1 -0
- package/dist/assets/{gas.640b6bdb.js → gas.d8399398.js} +1 -1
- package/dist/assets/{gfm.61e9bc5c.js → gfm.4b95c226.js} +1 -1
- package/dist/assets/{gherkin.a3628f6b.js → gherkin.735f7f7b.js} +1 -1
- package/dist/assets/{github-ci.8cd0ce44.js → github-ci.2759cda8.js} +2 -2
- package/dist/assets/{glossary.ce1fac8f.js → glossary.a9d1268d.js} +1 -1
- package/dist/assets/{go.088cafcb.js → go.fb6a33eb.js} +1 -1
- package/dist/assets/{groovy.73d2bb8b.js → groovy.cc0ef263.js} +1 -1
- package/dist/assets/{haml.8a0e9aba.js → haml.6a13e2c9.js} +1 -1
- package/dist/assets/{handlebars.775135f1.js → handlebars.3876a082.js} +1 -1
- package/dist/assets/{haskell-literate.89d2e181.js → haskell-literate.dd743a1b.js} +1 -1
- package/dist/assets/{haskell.9b7f0557.js → haskell.68e9e39f.js} +1 -1
- package/dist/assets/{haxe.f0bccdb4.js → haxe.6ed7ee9b.js} +1 -1
- package/dist/assets/{he-IL.64ff8581.js → he-IL.80c0db1b.js} +1 -1
- package/dist/assets/hi-IN.19c40a88.js +1 -0
- package/dist/assets/{hooks.7184953b.js → hooks.f995e543.js} +1 -1
- package/dist/assets/{htmlembedded.91da33a4.js → htmlembedded.73fc00cc.js} +1 -1
- package/dist/assets/{htmlmixed.7e3ff200.js → htmlmixed.6487a152.js} +1 -1
- package/dist/assets/{http.7a7a78c2.js → http.a3ef16fd.js} +1 -1
- package/dist/assets/hu-HU.4ea4b59c.js +1 -0
- package/dist/assets/id-ID.7dd29100.js +1 -0
- package/dist/assets/{idl.7841a821.js → idl.96e8121e.js} +1 -1
- package/dist/assets/{iis.99c0377a.js → iis.edc18f04.js} +2 -2
- package/dist/assets/{index.d84e4324.js → index.029e41b8.js} +1 -1
- package/dist/assets/{index.28e6e72c.js → index.0450ff63.js} +1 -1
- package/dist/assets/{index.0f8db352.js → index.060522aa.js} +1 -1
- package/dist/assets/{index.1bee6e48.js → index.08659801.js} +1 -1
- package/dist/assets/{index.f1baa76b.js → index.0d5bdc65.js} +1 -1
- package/dist/assets/{index.4a4f04e1.js → index.0fd82a7b.js} +1 -1
- package/dist/assets/{index.6c533c6d.js → index.0ff641d2.js} +1 -1
- package/dist/assets/{index.11dfe3be.js → index.107ad19f.js} +1 -1
- package/dist/assets/{index.a0b94a8c.js → index.10d1a79c.js} +1 -1
- package/dist/assets/{index.325e7a3c.js → index.141f98fa.js} +1 -1
- package/dist/assets/{index.31c94cc6.js → index.1b6bb0df.js} +1 -1
- package/dist/assets/{index.3d14218f.js → index.1bcd7cf8.js} +1 -1
- package/dist/assets/{index.1bcaf582.js → index.200fb761.js} +1 -1
- package/dist/assets/{index.a2896c04.js → index.22279901.js} +1 -1
- package/dist/assets/{index.fd47890b.js → index.27e0211c.js} +1 -1
- package/dist/assets/{index.89cfb791.js → index.3827381d.js} +1 -1
- package/dist/assets/{index.8c19a1bb.js → index.3cc91776.js} +1 -1
- package/dist/assets/index.425f8aea.css +1 -0
- package/dist/assets/{index.19d5a7e2.js → index.429e49cb.js} +1 -1
- package/dist/assets/{index.8463713a.js → index.42b05644.js} +1 -1
- package/dist/assets/{index.cfc3f94d.js → index.49f984d3.js} +1 -1
- package/dist/assets/{index.9837c1bd.js → index.4d8864ec.js} +1 -1
- package/dist/assets/{index.14ea57c2.js → index.542aece6.js} +1 -1
- package/dist/assets/{index.28f4844f.js → index.5c6061d5.js} +1 -1
- package/dist/assets/{index.34ae6ec4.js → index.5e3a0ae0.js} +1 -1
- package/dist/assets/{index.19159890.js → index.61beea08.js} +1 -1
- package/dist/assets/{index.1edf267b.js → index.65bfc48e.js} +1 -1
- package/dist/assets/{index.67fa08a4.js → index.65ddf12b.js} +1 -1
- package/dist/assets/{index.714b601c.js → index.6628661a.js} +1 -1
- package/dist/assets/{index.b0fd7814.js → index.67a33de4.js} +1 -1
- package/dist/assets/{index.5d16a624.js → index.6a19cc93.js} +1 -1
- package/dist/assets/{index.66b53de0.js → index.731c4729.js} +1 -1
- package/dist/assets/{index.2d7a6f67.js → index.73274803.js} +1 -1
- package/dist/assets/{index.b9badc97.js → index.75b12a27.js} +1 -1
- package/dist/assets/{index.73f69fe3.js → index.763fae2f.js} +1 -1
- package/dist/assets/{index.cfb596ed.js → index.77007dc0.js} +1 -1
- package/dist/assets/{index.85c84fd9.js → index.7b4687f7.js} +1 -1
- package/dist/assets/{index.716c5883.js → index.7c8abc39.js} +1 -1
- package/dist/assets/{index.c0fd96ea.js → index.7f347324.js} +1 -1
- package/dist/assets/{index.ada5e53d.js → index.818761af.js} +1 -1
- package/dist/assets/{index.04d772d8.js → index.86054893.js} +1 -1
- package/dist/assets/index.877f0626.entry.js +529 -0
- package/dist/assets/{index.06b50e4a.js → index.8addb892.js} +1 -1
- package/dist/assets/{index.ad693640.js → index.8cfdafff.js} +1 -1
- package/dist/assets/{index.507285cc.js → index.94378278.js} +1 -1
- package/dist/assets/{index.d9cabca6.js → index.9531a836.js} +1 -1
- package/dist/assets/{index.bb66db31.js → index.95cc967f.js} +1 -1
- package/dist/assets/{index.43e86bf9.js → index.961d2337.js} +1 -1
- package/dist/assets/{index.92227ca0.js → index.9b1d0e58.js} +1 -1
- package/dist/assets/{index.ae96cd33.js → index.9e269486.js} +1 -1
- package/dist/assets/{index.afd20890.js → index.9edea496.js} +1 -1
- package/dist/assets/{index.0b0598be.js → index.9fe0c5c3.js} +1 -1
- package/dist/assets/{index.45b895f8.js → index.a5da7cf7.js} +1 -1
- package/dist/assets/{index.3eddc443.js → index.a843b410.js} +1 -1
- package/dist/assets/{index.f22a8db3.js → index.a98eab6c.js} +1 -1
- package/dist/assets/{index.d889b910.js → index.ab81705c.js} +1 -1
- package/dist/assets/{index.04fc2617.js → index.ac7923a5.js} +1 -1
- package/dist/assets/{index.f3b5d997.js → index.b426192d.js} +1 -1
- package/dist/assets/{index.884b29a6.js → index.b481103f.js} +1 -1
- package/dist/assets/{index.a1dd992b.js → index.b8dc59cf.js} +1 -1
- package/dist/assets/{index.d7ab3544.js → index.c113f971.js} +1 -1
- package/dist/assets/index.c3501ebc.css +1 -0
- package/dist/assets/{index.ba2bbd9e.js → index.c39a7ed3.js} +1 -1
- package/dist/assets/{index.6fd9d026.js → index.c7553957.js} +1 -1
- package/dist/assets/{index.8ad80a38.js → index.c84d097b.js} +1 -1
- package/dist/assets/{index.c6465294.js → index.ce1a1cd1.js} +1 -1
- package/dist/assets/{index.5d1744ed.js → index.cf72ee21.js} +1 -1
- package/dist/assets/{index.db380ac2.js → index.d4f89fc0.js} +1 -1
- package/dist/assets/{index.6e2f3a25.js → index.d76442fb.js} +1 -1
- package/dist/assets/{index.f1a9e33d.js → index.dc9915aa.js} +1 -1
- package/dist/assets/{index.26457745.js → index.dd4e679e.js} +1 -1
- package/dist/assets/{index.d9fd5db4.js → index.e08fb298.js} +1 -1
- package/dist/assets/{index.d77b5d9f.js → index.e3aec615.js} +1 -1
- package/dist/assets/{index.b9bdb805.js → index.e5b75b9b.js} +1 -1
- package/dist/assets/{index.d8ddd0bb.js → index.e76bcde2.js} +1 -1
- package/dist/assets/{index.9f212655.js → index.e8b3416c.js} +1 -1
- package/dist/assets/{index.f74ca4fc.js → index.e9269812.js} +1 -1
- package/dist/assets/{index.410fd91b.js → index.f11472e0.js} +1 -1
- package/dist/assets/index.f2f2ca41.js +26 -0
- package/dist/assets/{index.f7def627.js → index.f76dd9b1.js} +1 -1
- package/dist/assets/{index.ba7397a1.js → index.f85e4f26.js} +1 -1
- package/dist/assets/{index.6cfbb836.js → index.f89de90c.js} +1 -1
- package/dist/assets/{index.b3c07ce5.js → index.fd35b493.js} +1 -1
- package/dist/assets/{index.0bf30632.js → index.ff50f007.js} +1 -1
- package/dist/assets/{input-rich-text-html.c303c699.js → input-rich-text-html.6bbe8f90.js} +33 -33
- package/dist/assets/{input-rich-text-html.4429e856.css → input-rich-text-html.81ac608e.css} +1 -1
- package/dist/assets/{insights.ce0b5824.js → insights.ce808eda.js} +1 -1
- package/dist/assets/installation.fc117855.js +1 -0
- package/dist/assets/{interfaces.1d8b55fd.js → interfaces.f37b3019.js} +4 -4
- package/dist/assets/{introduction.277da93e.js → introduction.10af3dd2.js} +5 -5
- package/dist/assets/{introduction.70685af6.js → introduction.6e56e05b.js} +1 -1
- package/dist/assets/{introduction.e77efc29.js → introduction.c3f6d6c0.js} +1 -1
- package/dist/assets/{introduction.0a812b0d.js → introduction.f1827e2a.js} +2 -2
- package/dist/assets/it-IT.5e6a4c7d.js +1 -0
- package/dist/assets/{items.356b5264.js → items.fd8e507b.js} +1 -1
- package/dist/assets/{ja-JP.f4240c58.js → ja-JP.ed16588e.js} +1 -1
- package/dist/assets/{javascript-hint.2396559d.js → javascript-hint.f637bce8.js} +1 -1
- package/dist/assets/{javascript.e2c4d6fd.js → javascript.a6e444fe.js} +1 -1
- package/dist/assets/{jinja2.9b858d22.js → jinja2.19154000.js} +1 -1
- package/dist/assets/jsx.8c4ae49c.js +1 -0
- package/dist/assets/{julia.eac271c8.js → julia.07560bca.js} +1 -1
- package/dist/assets/{ka-GE.eff8ef9c.js → ka-GE.2e2665dd.js} +1 -1
- package/dist/assets/{layouts.36aadbbc.js → layouts.56f2bc1c.js} +3 -3
- package/dist/assets/{livescript.75ddf998.js → livescript.0d444cab.js} +1 -1
- package/dist/assets/{localization.41fdf309.js → localization.f14f2edd.js} +1 -1
- package/dist/assets/logo.eba1b355.svg +3 -0
- package/dist/assets/lt-LT.38d57d95.js +1 -0
- package/dist/assets/{lua.a97dd510.js → lua.412f3c4d.js} +1 -1
- package/dist/assets/{manual.ce1e8d5a.js → manual.f2c2b139.js} +3 -3
- package/dist/assets/{mark-selection.f76626a4.js → mark-selection.31e82462.js} +1 -1
- package/dist/assets/{match-highlighter.a84a6cd0.js → match-highlighter.4dfdda54.js} +1 -1
- package/dist/assets/material-icons-outline.32738b64.woff2 +0 -0
- package/dist/assets/material-icons.0c67479a.woff2 +0 -0
- package/dist/assets/{mathematica.42680664.js → mathematica.8c19439e.js} +1 -1
- package/dist/assets/{mbox.5018879c.js → mbox.f7a3dfe2.js} +1 -1
- package/dist/assets/{migrations.9b508b9c.js → migrations.c13af0d9.js} +1 -1
- package/dist/assets/{mirc.9d5ae70f.js → mirc.5e27dd9a.js} +1 -1
- package/dist/assets/{mllike.6beaa754.js → mllike.22e30a59.js} +1 -1
- package/dist/assets/{modelica.39b27738.js → modelica.edfaff26.js} +1 -1
- package/dist/assets/{modules.0ff102d6.js → modules.08f0ff6d.js} +5 -5
- package/dist/assets/ms-MY.525bd8b7.js +1 -0
- package/dist/assets/{mscgen.2928ad8f.js → mscgen.a8d04440.js} +1 -1
- package/dist/assets/{multiplex.317d78e5.js → multiplex.a7ea8724.js} +2 -2
- package/dist/assets/{mumps.ace846f6.js → mumps.f6c88b5f.js} +1 -1
- package/dist/assets/{nginx.7d66e95c.js → nginx.e5d8a4be.js} +1 -1
- package/dist/assets/nl-NL.c46489cb.js +1 -0
- package/dist/assets/no-NO.1628152c.js +1 -0
- package/dist/assets/{notifications.f9da4e67.js → notifications.1cd89b70.js} +6 -6
- package/dist/assets/{nsis.18988463.js → nsis.24913e7a.js} +1 -1
- package/dist/assets/{ntriples.7c68fe76.js → ntriples.fdccfde8.js} +1 -1
- package/dist/assets/{octave.e9c5af62.js → octave.1a7cc06a.js} +1 -1
- package/dist/assets/{overlay.56d3022b.js → overlay.57c20f4c.js} +1 -1
- package/dist/assets/{overview.c5429f63.js → overview.bf66b69d.js} +1 -1
- package/dist/assets/{overview.4fc1f5e2.js → overview.f4784fc7.js} +1 -1
- package/dist/assets/{oz.f0e17e6e.js → oz.9ab22673.js} +1 -1
- package/dist/assets/{panels.69a015fa.js → panels.fd4a3b89.js} +4 -4
- package/dist/assets/{pascal.4c8de90b.js → pascal.b81a5688.js} +1 -1
- package/dist/assets/{pegjs.adb455f9.js → pegjs.599e8eb3.js} +1 -1
- package/dist/assets/{perl.e9919756.js → perl.c0739599.js} +1 -1
- package/dist/assets/{permissions.6cca02f4.js → permissions.8ad4df54.js} +1 -1
- package/dist/assets/{php.34aad5e9.js → php.608b4516.js} +1 -1
- package/dist/assets/{pig.14fcfbd8.js → pig.7933ecb3.js} +1 -1
- package/dist/assets/pinia.a129d8b1.entry.js +1 -0
- package/dist/assets/pl-PL.59e9af5e.js +1 -0
- package/dist/assets/{plesk.755ff0c7.js → plesk.c0852694.js} +5 -5
- package/dist/assets/{powershell.7835da2c.js → powershell.368c2592.js} +1 -1
- package/dist/assets/{presets-bookmarks.784c2313.js → presets-bookmarks.d10c9de2.js} +1 -1
- package/dist/assets/{presets.47b83a65.js → presets.99d373c0.js} +4 -4
- package/dist/assets/project-settings.5b470b25.js +1 -0
- package/dist/assets/{properties.265f3ecf.js → properties.aa1fe856.js} +1 -1
- package/dist/assets/{protobuf.f33088f5.js → protobuf.9104ca28.js} +1 -1
- package/dist/assets/pt-BR.a2a1fdbe.js +1 -0
- package/dist/assets/{pt-PT.9612f4ac.js → pt-PT.1af0ede2.js} +1 -1
- package/dist/assets/{pug.a5974515.js → pug.b070355c.js} +1 -1
- package/dist/assets/{puppet.01791221.js → puppet.07e8bcbb.js} +1 -1
- package/dist/assets/{python.e86c1b0d.js → python.65853b0f.js} +1 -1
- package/dist/assets/{q.4f4ee7a2.js → q.85f2dca0.js} +1 -1
- package/dist/assets/{query.298a6a70.js → query.a958f10d.js} +4 -4
- package/dist/assets/{quickstart.0d54da2a.js → quickstart.27dda183.js} +3 -3
- package/dist/assets/{r.bdb61495.js → r.b44bcffc.js} +1 -1
- package/dist/assets/{relations.e7fe5c7e.js → relations.f50b4f95.js} +5 -5
- package/dist/assets/{relationships.25bfe3d0.js → relationships.d866443c.js} +5 -5
- package/dist/assets/{revisions.f4ec1316.js → revisions.1a87ca54.js} +3 -3
- package/dist/assets/ro-RO.447e1ee4.js +1 -0
- package/dist/assets/{roles.9ff2c743.js → roles.9bea32b8.js} +1 -1
- package/dist/assets/{rpm.3f139b52.js → rpm.fa6ea084.js} +1 -1
- package/dist/assets/{rst.85a6aa5e.js → rst.76ee63a2.js} +1 -1
- package/dist/assets/{ru-RU.c8e0d204.js → ru-RU.2d2bcc71.js} +1 -1
- package/dist/assets/{ruby.4f7b81cf.js → ruby.b3951223.js} +1 -1
- package/dist/assets/{running-locally.c805ce9b.js → running-locally.08b5f50f.js} +4 -4
- package/dist/assets/{rust.90f7c59d.js → rust.367a9f3f.js} +1 -1
- package/dist/assets/{sas.6bab46e6.js → sas.2633bc48.js} +1 -1
- package/dist/assets/{sass.82d78b0d.js → sass.991ede1b.js} +1 -1
- package/dist/assets/{scheme.d070321b.js → scheme.5639613c.js} +1 -1
- package/dist/assets/{sdk.fcd84a63.js → sdk.ae7992c5.js} +74 -42
- package/dist/assets/{security.20c51064.js → security.c75d2709.js} +1 -1
- package/dist/assets/{server.08f78dc3.js → server.6f227f53.js} +3 -3
- package/dist/assets/{settings.fe8c60b0.js → settings.82599ee9.js} +5 -4
- package/dist/assets/{settings.863df08a.js → settings.af8afa61.js} +1 -1
- package/dist/assets/{shell.3a02eee7.js → shell.e455531a.js} +1 -1
- package/dist/assets/{show-hint.4d773b37.js → show-hint.c4eb0c3d.js} +1 -1
- package/dist/assets/si-LK.f9ef55b1.js +1 -0
- package/dist/assets/sieve.9dec15ca.js +1 -0
- package/dist/assets/{simple.1a0ff72b.js → simple.4a477b77.js} +1 -1
- package/dist/assets/sk-SK.5761e1d9.js +1 -0
- package/dist/assets/sl-SI.3f0a4768.js +2 -0
- package/dist/assets/{slim.2102014c.js → slim.18d0f6d5.js} +1 -1
- package/dist/assets/{smalltalk.7cfe4f46.js → smalltalk.0f525abe.js} +1 -1
- package/dist/assets/{smarty.3e50cd7a.js → smarty.d25b4ce0.js} +1 -1
- package/dist/assets/{solr.bfc84b28.js → solr.68b0ca66.js} +1 -1
- package/dist/assets/{soy.83eb6f2e.js → soy.27166382.js} +1 -1
- package/dist/assets/{sparql.97261c23.js → sparql.ece89378.js} +1 -1
- package/dist/assets/{spreadsheet.82d00fdd.js → spreadsheet.aabe1709.js} +1 -1
- package/dist/assets/{sql.0a386e3a.js → sql.5d470e84.js} +1 -1
- package/dist/assets/sr-CS.a7778d9f.js +1 -0
- package/dist/assets/{sr-SP.5a481d69.js → sr-SP.202d2f5e.js} +1 -1
- package/dist/assets/{sso.89512ecb.js → sso.811c344e.js} +2 -2
- package/dist/assets/{stex.548cdc29.js → stex.79529301.js} +1 -1
- package/dist/assets/{stylus.eafb69cf.js → stylus.03b3b1e5.js} +1 -1
- package/dist/assets/{support.5d9d3959.js → support.240e8ec7.js} +1 -1
- package/dist/assets/sv-SE.09b1461c.js +1 -0
- package/dist/assets/{swift.2e52740c.js → swift.014169da.js} +1 -1
- package/dist/assets/{tcl.e53cc407.js → tcl.c652100f.js} +1 -1
- package/dist/assets/{textile.6fa47aff.js → textile.b326781f.js} +1 -1
- package/dist/assets/{th-TH.977e3809.js → th-TH.9d80638b.js} +2 -2
- package/dist/assets/{themes.d39a117f.js → themes.58ffa82a.js} +2 -2
- package/dist/assets/{tiddlywiki.fa524efd.js → tiddlywiki.9af27818.js} +1 -1
- package/dist/assets/{tiki.5740efcd.js → tiki.cd3b6f65.js} +1 -1
- package/dist/assets/{toml.063a2ad8.js → toml.e945a98c.js} +1 -1
- package/dist/assets/{tornado.858ecf05.js → tornado.4dafde01.js} +1 -1
- package/dist/assets/tr-TR.d0fc547a.js +1 -0
- package/dist/assets/{translations.b92fc00e.js → translations.8f87de57.js} +1 -1
- package/dist/assets/{troff.272ecea7.js → troff.cfe89054.js} +1 -1
- package/dist/assets/{ttcn-cfg.c6c1cb29.js → ttcn-cfg.9bb707b0.js} +1 -1
- package/dist/assets/{ttcn.2aed8f7d.js → ttcn.4d70e15b.js} +1 -1
- package/dist/assets/{turtle.6667a82d.js → turtle.bcbfe504.js} +1 -1
- package/dist/assets/{twig.ed6b9ed7.js → twig.da20e090.js} +1 -1
- package/dist/assets/{ubuntu.8db605f7.js → ubuntu.a1aec3e5.js} +1 -1
- package/dist/assets/{uk-UA.da57a55e.js → uk-UA.b12c0696.js} +1 -1
- package/dist/assets/{upgrades-migrations.a5e30787.js → upgrades-migrations.2a901d0b.js} +1 -1
- package/dist/assets/use-sync.63b93cc4.js +1 -0
- package/dist/assets/{user-directory.cf85143d.js → user-directory.3295c686.js} +1 -1
- package/dist/assets/{users-roles-permissions.fa90206e.js → users-roles-permissions.7eabf1dd.js} +1 -1
- package/dist/assets/users.53a84d9d.js +252 -0
- package/dist/assets/{utilities.16811976.js → utilities.363cea2c.js} +3 -3
- package/dist/assets/{vb.c1454dff.js → vb.dbda2981.js} +1 -1
- package/dist/assets/{vbscript.428db01c.js → vbscript.66ec5776.js} +1 -1
- package/dist/assets/{velocity.3e30f7b1.js → velocity.fc023370.js} +1 -1
- package/dist/assets/{vendor.764dd834.js → vendor.1339fc9e.js} +193 -189
- package/dist/assets/{verilog.64ec1410.js → verilog.6d817957.js} +1 -1
- package/dist/assets/{vhdl.ced33605.js → vhdl.d39b1302.js} +1 -1
- package/dist/assets/{vi-VN.831442e8.js → vi-VN.d8916629.js} +1 -1
- package/dist/assets/vue-i18n.b3f9782a.entry.js +1 -0
- package/dist/assets/vue-router.a727ea8c.entry.js +1 -0
- package/dist/assets/{vue.a86895a8.js → vue.96831875.js} +1 -1
- package/dist/assets/vue.de7fdfdb.entry.js +1 -0
- package/dist/assets/{wast.1c1d5324.js → wast.b0354d71.js} +1 -1
- package/dist/assets/{webhooks.65cb968e.js → webhooks.06b6fa54.js} +1 -1
- package/dist/assets/{webhooks.117d8b13.js → webhooks.d11f5a1c.js} +4 -4
- package/dist/assets/{webidl.b6341879.js → webidl.b07ad069.js} +1 -1
- package/dist/assets/{xquery.bd933661.js → xquery.80bda722.js} +1 -1
- package/dist/assets/{yacas.6dc91e85.js → yacas.cd318286.js} +1 -1
- package/dist/assets/yaml-frontmatter.a0086ae1.js +1 -0
- package/dist/assets/{yaml.5ff064d1.js → yaml.b29cd33c.js} +1 -1
- package/dist/assets/{z80.7c4207dc.js → z80.03d8fd5f.js} +1 -1
- package/dist/assets/zh-CN.140ed39f.js +1 -0
- package/dist/assets/zh-TW.f2b88147.js +1 -0
- package/dist/index.html +5 -4
- package/package.json +7 -6
- package/dist/@directus_extensions-sdk.8ea452b9.js +0 -1
- package/dist/assets/af-ZA.e55141de.js +0 -1
- package/dist/assets/ar-SA.470ec68a.js +0 -1
- package/dist/assets/bg-BG.5b8d8ea6.js +0 -2
- package/dist/assets/br-FR.796287ac.js +0 -1
- package/dist/assets/ca-ES.115ba08c.js +0 -1
- package/dist/assets/cmake.a3e41ded.js +0 -1
- package/dist/assets/cs-CZ.429bc015.js +0 -1
- package/dist/assets/da-DK.2b59878a.js +0 -1
- package/dist/assets/de-DE.8f531dc2.js +0 -1
- package/dist/assets/elm.429267eb.js +0 -1
- package/dist/assets/en-GB.26f72b27.js +0 -1
- package/dist/assets/es-419.12453abb.js +0 -1
- package/dist/assets/es-CL.1910d8b5.js +0 -1
- package/dist/assets/es-ES.811171f2.js +0 -1
- package/dist/assets/et-EE.f85c52e4.js +0 -3
- package/dist/assets/fa-IR.549d0980.js +0 -1
- package/dist/assets/fi-FI.ca0a74d5.js +0 -1
- package/dist/assets/fr-FR.0b706601.js +0 -1
- package/dist/assets/hi-IN.31347bc7.js +0 -1
- package/dist/assets/hu-HU.075a63d5.js +0 -1
- package/dist/assets/id-ID.28b8e5b7.js +0 -1
- package/dist/assets/index.08462b30.js +0 -26
- package/dist/assets/index.405a95ad.css +0 -1
- package/dist/assets/index.a35643ef.css +0 -1
- package/dist/assets/installation.1ba08fd8.js +0 -1
- package/dist/assets/it-IT.c5faa77d.js +0 -1
- package/dist/assets/jsx.f7b61cb3.js +0 -1
- package/dist/assets/lt-LT.eee41851.js +0 -1
- package/dist/assets/material-icons-outline.63af6c49.woff2 +0 -0
- package/dist/assets/material-icons.3f0e2efd.woff2 +0 -0
- package/dist/assets/ms-MY.57405c0c.js +0 -1
- package/dist/assets/nl-NL.6bcdb0ea.js +0 -1
- package/dist/assets/no-NO.aff23922.js +0 -1
- package/dist/assets/pl-PL.0ecf8a53.js +0 -1
- package/dist/assets/project-settings.266a01df.js +0 -1
- package/dist/assets/pt-BR.20a10965.js +0 -1
- package/dist/assets/ro-RO.fa817d21.js +0 -1
- package/dist/assets/si-LK.2e97c6ef.js +0 -1
- package/dist/assets/sieve.f502823d.js +0 -1
- package/dist/assets/sk-SK.8e0ff1f5.js +0 -1
- package/dist/assets/sl-SI.dcecafe5.js +0 -2
- package/dist/assets/sr-CS.53a4ee2f.js +0 -1
- package/dist/assets/sv-SE.50a6cbf4.js +0 -1
- package/dist/assets/tr-TR.cc38fbec.js +0 -1
- package/dist/assets/use-sync.03a52ddb.js +0 -1
- package/dist/assets/users.962643d8.js +0 -237
- package/dist/assets/yaml-frontmatter.b21a0efb.js +0 -1
- package/dist/assets/zh-CN.50d72dc3.js +0 -1
- package/dist/assets/zh-TW.877bc78f.js +0 -1
- package/dist/index.10616d79.js +0 -351
- package/dist/pinia.fcc0ed15.js +0 -1
- package/dist/vue-i18n.a1d8e101.js +0 -1
- package/dist/vue-router.2fae2a3e.js +0 -1
- package/dist/vue.d4da996f.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,p as i,q as c,w as t,
|
|
1
|
+
import{r as s,p as i,q as c,w as t,z as e,t as h,N as l}from"./vendor.1339fc9e.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=l("What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of. "),g=l("Learn more about Relationships"),f=l("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-relation-object"},"The Relation Object")]),e("li",null,[e("a",{href:"#list-relations"},"List relations")]),e("li",null,[e("a",{href:"#list-relations-in-collection"},"List relations in collection")]),e("li",null,[e("a",{href:"#retrieve-a-relation"},"Retrieve a relation")]),e("li",null,[e("a",{href:"#create-a-relation"},"Create a Relation")]),e("li",null,[e("a",{href:"#update-a-relation"},"Update a Relation")]),e("li",null,[e("a",{href:"#delete-a-relation"},"Delete a Relation")])])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"the-relation-object"},[l("The Relation Object "),e("a",{class:"header-anchor",href:"#the-relation-object"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. This matches the table name in the database.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field that holds the related primary key. This matches the column name in the database.")]),e("p",null,[e("code",null,"related_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. This matches the table name in the database.")])]),e("h4",{id:"meta"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")]),e("p",null,"Directus metadata. Used to enable non-database relationship types"),e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_relations"),l(".")]),e("p",null,[e("code",null,"many_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. Matches the top level "),e("code",null,"collection"),l(" field.")]),e("p",null,[e("code",null,"many_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field. Matches the top level "),e("code",null,"field"),l(" field.")]),e("p",null,[e("code",null,"one_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. Matches the top level "),e("code",null,"related_collection"),l(" field.")]),e("p",null,[e("code",null,"one_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the one to many field on the other side of the relation.")]),e("p",null,[e("code",null,"one_allowed_collections"),l(),e("strong",null,"string"),e("br"),l(" What collections are allowed to be used in a many-to-any context.")]),e("p",null,[e("code",null,"one_collection_field"),l(),e("strong",null,"string"),e("br"),l(" Field that holds the collection name in a many-to-any context.")]),e("p",null,[e("code",null,"one_deselect_action"),l(),e("strong",null,"nullify | delete"),e("br"),l(" Whether to nullify or delete related one-to-many records.")]),e("p",null,[e("code",null,"sort_field"),l(),e("strong",null,"string"),e("br"),l(" What field is used to hold the sort field.")]),e("p",null,[e("code",null,"junction_field"),l(),e("strong",null,"string"),e("br"),l(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),e("h4",{id:"schema"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")]),e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),e("div",{class:"definitions"},[e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" The table name.")]),e("p",null,[e("code",null,"column"),l(),e("strong",null,"string"),e("br"),l(" The column name.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" Related table name.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" Related column name.")]),e("p",null,[e("code",null,"constraint_name"),l(),e("strong",null,"string"),e("br"),l(" Name for the foreign key constraint.")]),e("p",null,[e("code",null,"on_update"),l(),e("strong",null,"string"),e("br"),l(" Update trigger for the foreign key constraint.")]),e("p",null,[e("code",null,"on_delete"),l(),e("strong",null,"string"),e("br"),l(" Delete trigger for the foreign key constraint.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
|
|
2
2
|
`),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"about_us"'),l(`,
|
|
3
3
|
`),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"logo"'),l(`,
|
|
4
4
|
`),e("span",{class:"hljs-attr"},'"related_collection"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`,
|
|
@@ -60,7 +60,7 @@ import{r as s,p as i,q as c,w as t,B as e,t as h,P as l}from"./vendor.764dd834.j
|
|
|
60
60
|
related_collection
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
`)])])])],-1),
|
|
63
|
+
`)])])])],-1),N=e("hr",null,null,-1),A=e("h2",{id:"create-a-relation"},[l("Create a Relation "),e("a",{class:"header-anchor",href:"#create-a-relation"},"#")],-1),Q=e("p",null,"Create a new relation.",-1),O=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-4"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"request-body"},[l("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")]),e("p",null,[l("A partial "),e("a",{href:"#the-relation-object"},"relation object"),l(".")]),e("h3",{id:"returns-4"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")]),e("p",null,[l("Returns the "),e("a",{href:"#the-relation-object"},"relation object"),l(" for the created relation.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-4"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`POST /relations
|
|
64
64
|
`)]),e("h5",{id:"example-6"},[l("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /relations"),l(`
|
|
65
65
|
|
|
66
66
|
{
|
|
@@ -81,7 +81,7 @@ import{r as s,p as i,q as c,w as t,B as e,t as h,P as l}from"./vendor.764dd834.j
|
|
|
81
81
|
related_collection
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
`)])])])],-1),G=e("hr",null,null,-1),C=e("h2",{id:"update-a-relation"},[l("Update a Relation "),e("a",{class:"header-anchor",href:"#update-a-relation"},"#")],-1),I=e("p",null,"Update an existing relation.",-1),
|
|
84
|
+
`)])])])],-1),G=e("hr",null,null,-1),C=e("h2",{id:"update-a-relation"},[l("Update a Relation "),e("a",{class:"header-anchor",href:"#update-a-relation"},"#")],-1),I=e("p",null,"Update an existing relation.",-1),M=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-5"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"request-body-2"},[l("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")]),e("p",null,[l("A partial "),e("a",{href:"#the-relation-object"},"relation object"),l(".")]),e("h3",{id:"returns-5"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")]),e("p",null,[l("Returns the "),e("a",{href:"#the-relation-object"},"relation object"),l(" for the created relation.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`PATCH /relations/:collection/:field
|
|
85
85
|
`)]),e("h5",{id:"example-8"},[l("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /relations/articles/author"),l(`
|
|
86
86
|
|
|
87
87
|
{
|
|
@@ -100,7 +100,7 @@ import{r as s,p as i,q as c,w as t,B as e,t as h,P as l}from"./vendor.764dd834.j
|
|
|
100
100
|
related_collection
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
`)])])])],-1),
|
|
103
|
+
`)])])])],-1),W=e("hr",null,null,-1),B=e("h2",{id:"delete-a-relation"},[l("Delete a Relation "),e("a",{class:"header-anchor",href:"#delete-a-relation"},"#")],-1),U=e("p",null,"Delete an existing relation.",-1),F=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"returns-6"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`DELETE /relations/:collection/:field
|
|
104
104
|
`)]),e("h5",{id:"example-10"},[l("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",null,`DELETE /relations/articles/author
|
|
105
105
|
`)]),e("h3",{id:"graphql-6"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
106
106
|
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
|
|
@@ -112,4 +112,4 @@ import{r as s,p as i,q as c,w as t,B as e,t as h,P as l}from"./vendor.764dd834.j
|
|
|
112
112
|
field
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
`)])])])],-1),K={setup(V,{expose:n}){const a={title:"Relations",modularExtension:!1,pageClass:"page-reference"};return n({frontmatter:a}),(H,z)=>{const r=s("router-link"),o=s("DocsWrapper");return i(),c(o,{frontmatter:a},{default:t(()=>[e("div",d,[e("div",p,[e("div",u,[e("blockquote",null,[e("p",null,[_,h(r,{to:"/docs/getting-started/glossary/#relationships"},{default:t(()=>[g]),_:1}),f])])]),m]),y,j,b,q,v,x,w,T,R,E,k,P,S,L,D,A,
|
|
115
|
+
`)])])])],-1),K={setup(V,{expose:n}){const a={title:"Relations",modularExtension:!1,pageClass:"page-reference"};return n({frontmatter:a}),(H,z)=>{const r=s("router-link"),o=s("DocsWrapper");return i(),c(o,{frontmatter:a},{default:t(()=>[e("div",d,[e("div",p,[e("div",u,[e("blockquote",null,[e("p",null,[_,h(r,{to:"/docs/getting-started/glossary/#relationships"},{default:t(()=>[g]),_:1}),f])])]),m]),y,j,b,q,v,x,w,T,R,E,k,P,S,L,D,N,A,Q,O,G,C,I,M,W,B,U,F])]),_:1})}}};export{K as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,p as c,q as h,w as n,
|
|
1
|
+
import{r as s,p as c,q as h,w as n,z as e,t as l,N as t}from"./vendor.1339fc9e.js";var d="assets/m2o.ac02ed03.png",u="assets/o2m.339378e0.png",f="assets/translations.2f0017a9.png",_="assets/translations-2.29d07342.png",m="assets/m2m.07bed843.png",p="assets/m2a.347ed339.png";const y={class:"markdown-body"},g=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),w=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"},"Many-to-One (M2O)")]),e("li",null,[e("a",{href:"#one-to-many-(o2m)"},"One-to-Many (O2M)")]),e("li",null,[e("a",{href:"#translations-(o2m)"},"Translations (O2M)")]),e("li",null,[e("a",{href:"#many-to-many-(m2m)"},"Many-to-Many (M2M)")]),e("li",null,[e("a",{href:"#many-to-any-(m2a)"},"Many-to-Any (M2A)")]),e("li",null,[e("a",{href:"#one-to-one-(o2o)"},"One-to-One (O2O)")])])])],-1),M=e("h3",{id:"introduction"},[t("Introduction "),e("a",{class:"header-anchor",href:"#introduction"},"#")],-1),v=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the sometimes confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize them in your mind\u2019s eye.",-1),b=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),O=t("Every "),k=t("Item"),T=t(" in a relational database has a unique "),C=t("Primary Key"),x=t(" (or \u201CPK\u201D) that identifies it within its "),A=t("Collection"),j=t(". Because it\u2019s required, the key is the first "),I=t("field"),P=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),D=e("em",null,"never",-1),S=t(" change."),F=e("p",null,[t("To link items together relationally, you simply save a reference to an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK). If the primary key is a "),e("em",null,"person"),t(", the foreign key is like their "),e("em",null,"business card"),t(". It references the actual person, providing just enough information to find them.")],-1),R=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Composite & Compound Keys"),e("p",null,[t("In the above explanation we\u2019ve ignored "),e("em",null,"composite"),t(" and "),e("em",null,"compound"),t(" keys, which are essentially unique keys created by combining "),e("em",null,"multiple"),t(" field/column values.")])],-1),K=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),N=e("p",null,"Just like primary and foreign keys, relationships are always described relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of the opposite collection would reverse it. This means that a many-to-one relationship can also be seen as a one-to-many relationship, it just depends on which collection is considered the parent.",-1),q=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),J=e("p",null,[t("The Many-to-One is the only relationship type with an actual field on the parent Collection. This field saves the foreign key to a single related item. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(".")],-1),W=e("p",null,"Below is an example of a M2O relationship:",-1),B=e("pre",null,[e("code",null,`cities (the "Many" Collection)
|
|
2
2
|
- id (Primary Key)
|
|
3
3
|
- name
|
|
4
4
|
- country (the M2O field that stores the country key)
|
|
@@ -6,7 +6,7 @@ import{r as s,p as c,q as h,w as n,B as e,t as l,P as t}from"./vendor.764dd834.j
|
|
|
6
6
|
countries (the "One" Collection)
|
|
7
7
|
- id (Primary Key)
|
|
8
8
|
- name
|
|
9
|
-
`)],-1),Y=e("h3",{id:"setup"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup"},"#")],-1),U=e("p",null,[e("img",{src:d,alt:"M2O"})],-1),L=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its primary key field.",-1),
|
|
9
|
+
`)],-1),Y=e("h3",{id:"setup"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup"},"#")],-1),U=e("p",null,[e("img",{src:d,alt:"M2O"})],-1),L=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its primary key field.",-1),z=e("p",null,[t("If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),E=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the O2M alias (see below) that pairs with this M2O.")],-1),H=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There is one option:")],-1),V=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Related Collection]"),t(" \u2014 When the related item (O2M) is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the parent M2O field (default)"),e("li",null,"Set the parent M2O field to its default value"),e("li",null,"Delete the parent collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),G=e("h2",{id:"one-to-many-(o2m)"},[t("One-to-Many (O2M) "),e("a",{class:"header-anchor",href:"#one-to-many-(o2m)"},"#")],-1),Q=t("The One-to-Many relationship is the "),X=e("strong",null,"exact same relationship",-1),Z=t(" as a Many-to-One (above), just seen from the opposite collection\u2019s perspective. The O2M is stored as an "),$=t("Alias"),ee=t(" field on its parent Collection that dynamically lists all items connected via the opposite Many-to-One. So, while the M2O will show a single country for the parent city, the O2M shows all cities for the parent country."),te=e("p",null,"Below is an example of a O2M relationship:",-1),ne=e("pre",null,[e("code",null,`countries (the "One" Collection)
|
|
10
10
|
- id (Primary Key)
|
|
11
11
|
- name
|
|
12
12
|
- *cities* (the O2M alias field that lists references from "cities.country")
|
|
@@ -15,7 +15,7 @@ cities (the "Many" Collection)
|
|
|
15
15
|
- id (Primary Key)
|
|
16
16
|
- name
|
|
17
17
|
- country (the M2O field that stores the country key)
|
|
18
|
-
`)],-1),oe=e("h3",{id:"setup-2"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-2"},"#")],-1),le=e("p",null,[e("img",{src:u,alt:"O2M"})],-1),ie=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its M2O field.",-1),se=e("p",null,[t("You can select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) or create a "),e("strong",null,"new"),t(" one by entering a unique collection name. Next, you can select an existing field (highlights green) or create a new one by entering a field name unique to its collection.")],-1),ae=e("p",null,"The related field will store the value of this collection\u2019s primary key field, so both must have the same type. For this reason, when selecting existing fields, options will be disabled if they don\u2019t have a matching type.",-1),re=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the M2O field (see above) that pairs with this O2M.")],-1),ce=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Related Collection, or entering the name of a new field to be created.")],-1),he=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are two options:")],-1),de=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Related Collection]"),t(" \u2014 When the value of the M2O is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the M2O field value (default)"),e("li",null,"Delete the M2O item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this O2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the related M2O field (default)"),e("li",null,"Set the related M2O field to its default value"),e("li",null,"Delete the related collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),ue=e("h2",{id:"translations-(o2m)"},[t("Translations (O2M) "),e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#")],-1),fe=t("The Translations relationship is just a special version of the standard O2M. Just like the O2M, it creates an "),_e=t("Alias"),me=t(" field that is used to list all related items (the translations). Translations themselves are stored in a separate collection, which is then further related to "),pe=e("em",null,"third",-1),ye=t(" collection that stores all languages."),ge=e("h3",{id:"setup-3"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-3"},"#")],-1),we=e("p",null,[e("img",{src:f,alt:"Translations"})],-1),Me=e("p",null,"The easiest way to add translations is to use the wizard, which only asks for the Translation field name. All required fields and relationships will then be automatically created and configured.",-1),ve=e("p",null,[e("img",{src:_,alt:"Translations"})],-1),be=e("p",null,[t("If you choose to switch to "),e("strong",null,"manual setup"),t(", you will be presented with a similar relationship setup to O2M or M2M. The parent collection and primary key are know, so those fields are disabled.")],-1),Oe=e("p",null,"Next, we configure the Translation Collection. Set to \u201CAuto Fill\u201D by default, this will enter intelligent naming based on related names, and disables all fields. Disabling Auto Fill will enable all fields, allowing you to name the collection that holds the translations, as well as the two fields (each a M2O) that store foreign keys to the parent item and language.",-1),ke=e("p",null,[t("Lastly, you would select/create the Languages collection, which stores the languages available for this translations field. It is common practice to reuse a single languages collection throughout your project, unless translation fields need to support different language sets. For the language "),e("code",null,"code"),t(" we recommend using the IETF language tag (eg: "),e("code",null,"en-US"),t(") which combines the ISO 639-1 and ISO 3166\u20111 standards, but anything can be used (eg: "),e("code",null,"english"),t(").")],-1),Te=e("h2",{id:"many-to-many-(m2m)"},[t("Many-to-Many (M2M) "),e("a",{class:"header-anchor",href:"#many-to-many-(m2m)"},"#")],-1),Ce=t("The Many-to-Many relationship is actually just "),xe=e("strong",null,"two relationships combined",-1),Ae=t(" (O2M+M2O) that join together three different collections. The M2M is stored as an "),je=t("Alias"),Ie=t(" field on its parent Collection that dynamically lists all items connected via a "),Pe=t("junction collection"),De=t(". For example, a "),Se=e("em",null,"recipe",-1),Fe=t(" can have many "),Re=e("em",null,"ingredients",-1),Ke=t(", and "),
|
|
18
|
+
`)],-1),oe=e("h3",{id:"setup-2"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-2"},"#")],-1),le=e("p",null,[e("img",{src:u,alt:"O2M"})],-1),ie=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its M2O field.",-1),se=e("p",null,[t("You can select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) or create a "),e("strong",null,"new"),t(" one by entering a unique collection name. Next, you can select an existing field (highlights green) or create a new one by entering a field name unique to its collection.")],-1),ae=e("p",null,"The related field will store the value of this collection\u2019s primary key field, so both must have the same type. For this reason, when selecting existing fields, options will be disabled if they don\u2019t have a matching type.",-1),re=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the M2O field (see above) that pairs with this O2M.")],-1),ce=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Related Collection, or entering the name of a new field to be created.")],-1),he=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are two options:")],-1),de=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Related Collection]"),t(" \u2014 When the value of the M2O is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the M2O field value (default)"),e("li",null,"Delete the M2O item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this O2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the related M2O field (default)"),e("li",null,"Set the related M2O field to its default value"),e("li",null,"Delete the related collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),ue=e("h2",{id:"translations-(o2m)"},[t("Translations (O2M) "),e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#")],-1),fe=t("The Translations relationship is just a special version of the standard O2M. Just like the O2M, it creates an "),_e=t("Alias"),me=t(" field that is used to list all related items (the translations). Translations themselves are stored in a separate collection, which is then further related to "),pe=e("em",null,"third",-1),ye=t(" collection that stores all languages."),ge=e("h3",{id:"setup-3"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-3"},"#")],-1),we=e("p",null,[e("img",{src:f,alt:"Translations"})],-1),Me=e("p",null,"The easiest way to add translations is to use the wizard, which only asks for the Translation field name. All required fields and relationships will then be automatically created and configured.",-1),ve=e("p",null,[e("img",{src:_,alt:"Translations"})],-1),be=e("p",null,[t("If you choose to switch to "),e("strong",null,"manual setup"),t(", you will be presented with a similar relationship setup to O2M or M2M. The parent collection and primary key are know, so those fields are disabled.")],-1),Oe=e("p",null,"Next, we configure the Translation Collection. Set to \u201CAuto Fill\u201D by default, this will enter intelligent naming based on related names, and disables all fields. Disabling Auto Fill will enable all fields, allowing you to name the collection that holds the translations, as well as the two fields (each a M2O) that store foreign keys to the parent item and language.",-1),ke=e("p",null,[t("Lastly, you would select/create the Languages collection, which stores the languages available for this translations field. It is common practice to reuse a single languages collection throughout your project, unless translation fields need to support different language sets. For the language "),e("code",null,"code"),t(" we recommend using the IETF language tag (eg: "),e("code",null,"en-US"),t(") which combines the ISO 639-1 and ISO 3166\u20111 standards, but anything can be used (eg: "),e("code",null,"english"),t(").")],-1),Te=e("h2",{id:"many-to-many-(m2m)"},[t("Many-to-Many (M2M) "),e("a",{class:"header-anchor",href:"#many-to-many-(m2m)"},"#")],-1),Ce=t("The Many-to-Many relationship is actually just "),xe=e("strong",null,"two relationships combined",-1),Ae=t(" (O2M+M2O) that join together three different collections. The M2M is stored as an "),je=t("Alias"),Ie=t(" field on its parent Collection that dynamically lists all items connected via a "),Pe=t("junction collection"),De=t(". For example, a "),Se=e("em",null,"recipe",-1),Fe=t(" can have many "),Re=e("em",null,"ingredients",-1),Ke=t(", and "),Ne=e("em",null,"ingredients",-1),qe=t(" can be in many "),Je=e("em",null,"recipes",-1),We=t("."),Be=e("p",null,"Below is an example of a M2M relationship:",-1),Ye=e("pre",null,[e("code",null,`recipes (Collection)
|
|
19
19
|
- id (Primary Key)
|
|
20
20
|
- name
|
|
21
21
|
- *ingredients* (M2M/O2M alias field that lists references from "recipe_ingredients")
|
|
@@ -30,7 +30,7 @@ recipe_ingredients (Junction Collection)
|
|
|
30
30
|
- recipe (stores the recipe key)
|
|
31
31
|
- ingredient (stores ingredient key)
|
|
32
32
|
- quantity (other optional data on the connection)
|
|
33
|
-
`)],-1),Ue=e("p",null,[t("Notice that the example above also has a "),e("code",null,"quantity"),t(" field on the Junction Collection, which tracks how much of each ingredient is needed for the recipe. You can add any other "),e("em",null,"contextual"),t(" fields to the junction, and they will also be included at the top of the App\u2019s relational Item Page form.")],-1),Le=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Self-Referencing"),e("p",null,[t("You can also have a M2M relationship that connects items within the "),e("em",null,"same"),t(" collection. An example of this is \u201CRelated Articles\u201D, where an article might relate to many other articles.")])],-1),
|
|
33
|
+
`)],-1),Ue=e("p",null,[t("Notice that the example above also has a "),e("code",null,"quantity"),t(" field on the Junction Collection, which tracks how much of each ingredient is needed for the recipe. You can add any other "),e("em",null,"contextual"),t(" fields to the junction, and they will also be included at the top of the App\u2019s relational Item Page form.")],-1),Le=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Self-Referencing"),e("p",null,[t("You can also have a M2M relationship that connects items within the "),e("em",null,"same"),t(" collection. An example of this is \u201CRelated Articles\u201D, where an article might relate to many other articles.")])],-1),ze=e("h3",{id:"setup-4"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-4"},"#")],-1),Ee=e("p",null,[e("img",{src:m,alt:"M2M"})],-1),He=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),Ve=e("p",null,[t("Next you should configure the Related Collection. If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),Ge=t("Lastly, we configure the "),Qe=t("Junction Collection"),Xe=t(", which sits between the two related collections, storing all links between the two. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),Ze=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the reverse M2M field on the "),e("em",null,"related"),t(" collection.")],-1),$e=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),et=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),tt=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2M is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Delete of [Related Collection Item]"),t(" \u2014 When the related M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),nt=e("h2",{id:"many-to-any-(m2a)"},[t("Many-to-Any (M2A) "),e("a",{class:"header-anchor",href:"#many-to-any-(m2a)"},"#")],-1),ot=t("Sometimes called a \u201Cmatrix field\u201D or \u201Creplicator\u201D. Like the M2M, the M2A is stored as an "),lt=t("Alias"),it=t(" field on its parent Collection that dynamically lists all items connected via a "),st=t("junction collection"),at=t(". However, there is one key difference: one side of the junction also stores a "),rt=e("strong",null,"collection key",-1),ct=t(". This combination of collection name and primary key means that you can effectively store a reference to "),ht=e("em",null,"any",-1),dt=t(" item in the database. You can then artificially limit which collections are valid through a related collections \u201Callow list\u201D."),ut=e("p",null,[t("A common example of a M2A is a \u201CPage Builder\u201D, which has a "),e("em",null,"Pages"),t(" collection that includes any number of different \u201Csection\u201D Collections, such as: \u201CHeading\u201D, \u201CText\u201D, and \u201CImage\u201D. In this example the junction table will link different sections (from different collections) with a page, creating relational layouts.")],-1),ft=e("p",null,"Below is an example of a M2A relationship:",-1),_t=e("pre",null,[e("code",null,`pages (Collection)
|
|
34
34
|
- id
|
|
35
35
|
- name
|
|
36
36
|
- *sections* (O2M/M2A alias field that lists references from "sections")
|
|
@@ -52,4 +52,4 @@ text (Collection)
|
|
|
52
52
|
images (Collection)
|
|
53
53
|
- id
|
|
54
54
|
- file
|
|
55
|
-
`)],-1),mt=e("h3",{id:"setup-5"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-5"},"#")],-1),pt=e("p",null,[e("img",{src:p,alt:"M2A"})],-1),yt=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),gt=t("Next, we configure the "),wt=t("Junction Collection"),Mt=t(", which sits between the related collections, storing all links between them. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),vt=e("p",null,[t("Lastly, you should select any desired Related Collections. Unlike other relationships, you can\u2019t "),e("em",null,"create"),t(" these related collections here, so ensure all related collections you need are created before hand.")],-1),bt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Auto-generating"),e("p",null,"If you enter a collection/field name that doesn\u2019t exist yet, Directus will auto-generate these collections/fields once you save the changes on the new M2A field.")],-1),Ot=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used enable manual reordering of items within this M2A field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),kt=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),Tt=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When a M2A item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2A is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])])],-1),Ct=e("h2",{id:"one-to-one-(o2o)"},[t("One-to-One (O2O) "),e("a",{class:"header-anchor",href:"#one-to-one-(o2o)"},"#")],-1),xt=t("Directus does not include a dedicated One-to-One (O2O) relationship type or interface. However, O2O is essentially the same as a M2O (storing a foreign key). The only difference is that a O2O enforces the cardinality. In other words, selecting a relational item in a O2O means that item can not be selected elsewhere (it can only be used once). This functionality can be added by checking and constraining uniqueness via a "),At=t("custom event hook"),jt=t(" or "),It=t("custom interface"),Pt=t("."),Dt=e("p",null,[t("An example of this is a "),e("em",null,"person"),t(" only has one unique set of "),e("em",null,"fingerprints"),t(", and those "),e("em",null,"fingerprints"),t(" only belong to one "),e("em",null,"person"),t(".")],-1),
|
|
55
|
+
`)],-1),mt=e("h3",{id:"setup-5"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-5"},"#")],-1),pt=e("p",null,[e("img",{src:p,alt:"M2A"})],-1),yt=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),gt=t("Next, we configure the "),wt=t("Junction Collection"),Mt=t(", which sits between the related collections, storing all links between them. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),vt=e("p",null,[t("Lastly, you should select any desired Related Collections. Unlike other relationships, you can\u2019t "),e("em",null,"create"),t(" these related collections here, so ensure all related collections you need are created before hand.")],-1),bt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Auto-generating"),e("p",null,"If you enter a collection/field name that doesn\u2019t exist yet, Directus will auto-generate these collections/fields once you save the changes on the new M2A field.")],-1),Ot=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used enable manual reordering of items within this M2A field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),kt=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),Tt=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When a M2A item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2A is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])])],-1),Ct=e("h2",{id:"one-to-one-(o2o)"},[t("One-to-One (O2O) "),e("a",{class:"header-anchor",href:"#one-to-one-(o2o)"},"#")],-1),xt=t("Directus does not include a dedicated One-to-One (O2O) relationship type or interface. However, O2O is essentially the same as a M2O (storing a foreign key). The only difference is that a O2O enforces the cardinality. In other words, selecting a relational item in a O2O means that item can not be selected elsewhere (it can only be used once). This functionality can be added by checking and constraining uniqueness via a "),At=t("custom event hook"),jt=t(" or "),It=t("custom interface"),Pt=t("."),Dt=e("p",null,[t("An example of this is a "),e("em",null,"person"),t(" only has one unique set of "),e("em",null,"fingerprints"),t(", and those "),e("em",null,"fingerprints"),t(" only belong to one "),e("em",null,"person"),t(".")],-1),Nt={setup(St,{expose:a}){const i={title:"Relationships",modularExtension:!1};return a({frontmatter:i}),(Ft,Rt)=>{const o=s("router-link"),r=s("DocsWrapper");return c(),h(r,{frontmatter:i},{default:n(()=>[e("div",y,[g,w,M,v,b,e("p",null,[O,l(o,{to:"/docs/getting-started/glossary/#items"},{default:n(()=>[k]),_:1}),T,l(o,{to:"/docs/getting-started/glossary/#primary-key-pk"},{default:n(()=>[C]),_:1}),x,l(o,{to:"/docs/getting-started/glossary/#collections"},{default:n(()=>[A]),_:1}),j,l(o,{to:"/docs/getting-started/glossary/#fields"},{default:n(()=>[I]),_:1}),P,D,S]),F,R,K,N,q,J,W,B,Y,U,L,z,E,H,V,G,e("p",null,[Q,X,Z,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[$]),_:1}),ee]),te,ne,oe,le,ie,se,ae,re,ce,he,de,ue,e("p",null,[fe,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[_e]),_:1}),me,pe,ye]),ge,we,Me,ve,be,Oe,ke,Te,e("p",null,[Ce,xe,Ae,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[je]),_:1}),Ie,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Pe]),_:1}),De,Se,Fe,Re,Ke,Ne,qe,Je,We]),Be,Ye,Ue,Le,ze,Ee,He,Ve,e("p",null,[Ge,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Qe]),_:1}),Xe]),Ze,$e,et,tt,nt,e("p",null,[ot,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[lt]),_:1}),it,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[st]),_:1}),at,rt,ct,ht,dt]),ut,ft,_t,mt,pt,yt,e("p",null,[gt,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[wt]),_:1}),Mt]),vt,bt,Ot,kt,Tt,Ct,e("p",null,[xt,l(o,{to:"/docs/extensions/hooks/"},{default:n(()=>[At]),_:1}),jt,l(o,{to:"/docs/extensions/interfaces/"},{default:n(()=>[It]),_:1}),Pt]),Dt])]),_:1})}}};export{Nt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,p as c,q as h,w as t,
|
|
1
|
+
import{r as l,p as c,q as h,w as t,z as s,t as o,N as e}from"./vendor.1339fc9e.js";const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),g=s("hr",null,null,-1),y=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),j={class:"two-up"},b={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),T=e(" Related activity record. Many-to-one to "),P=e("activity"),S=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),D=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),Q=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),A=s("p",null,[s("code",null,"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
|
|
2
2
|
`),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"368"),e(`,
|
|
3
3
|
`),s("span",{class:"hljs-attr"},'"activity"'),e(": "),s("span",{class:"hljs-number"},"438"),e(`,
|
|
4
4
|
`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"articles"'),e(`,
|
|
@@ -11,7 +11,7 @@ import{r as l,p as c,q as h,w as t,B as s,t as o,P as e}from"./vendor.764dd834.j
|
|
|
11
11
|
},
|
|
12
12
|
`),s("span",{class:"hljs-attr"},'"parent"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`
|
|
13
13
|
}
|
|
14
|
-
`)])])],-1),
|
|
14
|
+
`)])])],-1),H=s("hr",null,null,-1),I=s("h2",{id:"list-revisions"},[e("List revisions "),s("a",{class:"header-anchor",href:"#list-revisions"},"#")],-1),N=s("p",null,"List all revisions that exist in Directus.",-1),O={class:"two-up"},B={class:"left"},V=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, revisions that apply to a collection that the current user doesn\u2019t have access to are stripped out.")],-1),W=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),M=e("Supports all "),z=e("global query parameters"),F=e("."),J=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),K=e("An array of up to "),U=e("limit"),X=e(),Y=s("a",{href:"#the-revision-object"},"revision objects",-1),Z=e(". If no items are available, data will be an empty array."),$={class:"right"},ss=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),es=s("pre",null,[s("code",null,`GET /revisions
|
|
15
15
|
SEARCH /revisions
|
|
16
16
|
`)],-1),ts=e("Learn more about SEARCH ->"),ns=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),os=s("pre",null,[s("code",null,`POST /graphql/system
|
|
17
17
|
`)],-1),as=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
@@ -37,4 +37,4 @@ SEARCH /revisions
|
|
|
37
37
|
delta
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`)])])],-1),ws={setup(js,{expose:r}){const a={title:"Revisions",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:a}),(bs,qs)=>{const n=l("router-link"),i=l("DocsWrapper");return c(),h(i,{frontmatter:a},{default:t(()=>[s("div",d,[s("div",_,[s("div",p,[s("blockquote",null,[s("p",null,[u,o(n,{to:"/docs/getting-started/glossary/#revisions"},{default:t(()=>[v]),_:1}),m])])]),f]),g,y,s("div",j,[s("div",b,[s("div",q,[x,s("p",null,[w,k,R,E,
|
|
40
|
+
`)])])],-1),ws={setup(js,{expose:r}){const a={title:"Revisions",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:a}),(bs,qs)=>{const n=l("router-link"),i=l("DocsWrapper");return c(),h(i,{frontmatter:a},{default:t(()=>[s("div",d,[s("div",_,[s("div",p,[s("blockquote",null,[s("p",null,[u,o(n,{to:"/docs/getting-started/glossary/#revisions"},{default:t(()=>[v]),_:1}),m])])]),f]),g,y,s("div",j,[s("div",b,[s("div",q,[x,s("p",null,[w,k,R,E,T,o(n,{to:"/docs/reference/system/activity/"},{default:t(()=>[P]),_:1}),S]),L,C,D,Q,A])]),G]),H,I,N,s("div",O,[s("div",B,[V,W,s("p",null,[M,o(n,{to:"/docs/reference/query"},{default:t(()=>[z]),_:1}),F]),J,s("p",null,[K,o(n,{to:"/docs/reference/query/#limit"},{default:t(()=>[U]),_:1}),X,Y,Z])]),s("div",$,[ss,es,s("p",null,[o(n,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[ts]),_:1})]),ns,os,as,ls,rs])]),is,cs,hs,s("div",ds,[s("div",_s,[ps,s("p",null,[us,o(n,{to:"/docs/reference/query"},{default:t(()=>[vs]),_:1}),ms]),fs,gs]),ys])])]),_:1})}}};export{ws as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={avatar:"Avatar",default_provider:"Implicit",published:"Publicat",draft:"Ciorn\u0103",archived:"Arhivat",modules:"Module",module_bar:"Bar\u0103 module",edit_field:"Editeaz\u0103 c\xE2mp",conditions:"Condi\u021Bii",maps:"H\u0103r\u0163i",item_creation:"Creare articol",item_revision:"Revizuire element",enter_a_name:"Introduce\u021Bi un nume...",duplicate_field:"Duplicare c\xE2mp",half_width:"Jum\u0103tate de l\u0103\u0163ime",full_width:"L\u0103\u0163ime total\u0103",group:"Grup",and:"\u015Ei",or:"Sau",fill_width:"Umple l\u0103\u0163ime",field_name_translations:"Traducerile numelui c\xE2mpului",enter_password_to_enable_tfa:"Introduce\u021Bi parola pentru a activa autentificarea \xEEn doi pa\u015Fi",add_field:"Adaug\u0103 c\xE2mp",role_name:"Nume de rol",branch:"Ramur\u0103",leaf:"Frunz\u0103",edit_collection:"Editeaz\u0103 colec\u021Bia",exclusive:"Exclusiv",children:"Copii",db_only_click_to_configure:"Doar baza de date: ap\u0103sa\u021Bi pentru configurare",show_archived_items:"Arat\u0103 elementele arhivate",edited:"Valoare editat\u0103",required:"Necesar",required_for_app_access:"Necesar pentru acces aplica\u0163ie",requires_value:"Necesit\u0103 valoare",create_preset:"Creeaz\u0103 presetare",create_role:"Creeaz\u0103 Rol",create_user:"Creeaz\u0103 utilizator",create_webhook:"Creeaz\u0103 Webhook",invite_users:"Invit\u0103 utilizatori",invite:"Invit\u0103",emails:"E-mailuri",connection_excellent:"Conexiune excelent\u0103",connection_good:"Conexiune bun\u0103",connection_fair:"Conexiune rezonabil\u0103",connection_poor:"Conexiune slab\u0103",rename_folder:"Redenume\u015Fte folderul",delete_folder:"\u015Eterge folderul",reset_bookmark:"Reseteaz\u0103 semnul de carte",rename_bookmark:"Redenume\u015Fte semnul de carte",update_bookmark:"Actualizeaz\u0103 semnul de carte",delete_bookmark:"\u0218terge semn de carte",delete_bookmark_copy:'Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 \u015Fterge\u0163i semnul de carte "{bookmark}"? Aceast\u0103 ac\u0163iune nu poate fi modificat\u0103 ulterior.',logoutReason:{SIGN_OUT:"Deconectat",SESSION_EXPIRED:"Sesiunea a expirat"},public_description:"Controleaz\u0103 ce date API sunt disponibile f\u0103r\u0103 autentificare.",not_allowed:"Nu este permis",directus_version:"Versiune Directus",node_version:"Versiune Node",node_uptime:"Timp de activitate Node",os_type:"Tipul SO",os_version:"Versiunea SO",os_uptime:"Timpul de activitate al SO",os_totalmem:"Memoria SO",archive:"Arhiveaz\u0103",archive_confirm:"Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 arhiva\u0163i acest element?",archive_confirm_count:"Niciun element selectat | Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 arhiva\u0163i acest element? | Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 arhiva\u0163i aceste {count} elemente?",unarchive:"Dezarhivare",unarchive_confirm:"Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 dezarhiva\u0163i acest element?",nested_files_folders_will_be_moved:"Fi\u015Fierele \u015Fi folderele suprapuse vor fi mutate cu un nivel mai sus.",create_field:"Creeaz\u0103 C\xE2mp",auto_generate:"Generare automat\u0103",add_note:"Adaug\u0103 o not\u0103 ajut\u0103toare pentru utilizatori...",default_value:"Valoare implicit\u0103",clear_value:"\u0218terge valoarea",title:"Titlu",checksum:"Sum\u0103 de control",owner:"Proprietar",download:"Desc\u0103rca\u021Bi",created_by:"Creat De",created_on:"Creat Pe",comments:"Comentarii",create_collection:"Creeaz\u0103 Colec\u021Bie",users:"Utilizatori",activity:"Activitate",action:"Ac\u0163iune",ip_address:"Adres\u0103 IP",user_agent:"User Agent",duration:"Durat\u0103",status:"Stare",bookmarks:"Semne de carte",back:"\xCEnapoi",operators:{gt:"Mai mare ca",gte:"Mai mare sau egal cu",contains:"Con\u021Bine"},role:"Rol",create:"Creeaz\u0103",width:"L\u0103\u021Bime",height:"\xCEn\u0103l\u0163ime",wysiwyg_options:{table:"Tabel"},choices:"Op\u021Biuni",deselect:"Deselecta\u0163i",editing_in_batch:"Editare lot de {count} elemente",discard_changes:"Renun\u021B\u0103 la modific\u0103ri",add_new:"Adaugare intrare nou\u0103",all:"Tot",batch_delete_confirm:"Nu au fost selectate articole | Sigur dori\u021Bi s\u0103 \u0219terge\u021Bi acest articol? Aceast\u0103 ac\u021Biune nu poate fi anulat\u0103. | Sigur dori\u021Bi s\u0103 \u0219terge\u021Bi aceste {count} elemente? Aceast\u0103 ac\u021Biune nu poate fi anulat\u0103.",cancel:"Anuleaz\u0103",collection:"Colec\u021Bie",collections:"Colec\u021Bii",fields:{directus_activity:{item:"Cheia primar\u0103 a elementului",action:"Ac\u0163iune",collection:"Colec\u021Bie",timestamp:"Ac\u021Biune pe",user:"Ac\u021Biune de",comment:"Comentariu",user_agent:"User Agent",ip:"Adres\u0103 IP"},directus_collections:{collection:"Colec\u021Bie",icon:"Iconi\u021B\u0103",hidden:"Ascuns"},directus_files:{title:"Titlu",description:"Descriere",tags:"Etichete",location:"Loca\u021Bie",metadata:"Metadate",filesize:"Dimensiune fi\u015Fier",created_on:"Creat Pe",created_by:"Creat De",embed:"\xCEncorpora\u021Bi",uploaded_by:"\xCEnc\u0103rcat de",width:"L\u0103\u021Bime",uploaded_on:"\xCEnc\u0103rcat pe",height:"\xCEn\u0103l\u0163ime",duration:"Durat\u0103"},directus_users:{first_name:"Prenume",last_name:"Nume",email:"Email",password:"Parol\u0103",avatar:"Avatar",location:"Loca\u021Bie",title:"Titlu",description:"Descriere",tags:"Etichete",theme:"Tem\u0103",tfa_secret:"Autentificare \xEEn doi pa\u0219i",status:"Stare",role:"Rol"},directus_settings:{module_bar:"Bar\u0103 module"},directus_shares:{role:"Rol",password:"Parol\u0103"},directus_fields:{hidden:"Ascuns",translation:"Traducerile numelui c\xE2mpului"},directus_roles:{name:"Nume de rol",description:"Descriere"},directus_webhooks:{status:"Stare",collections:"Colec\u021Bii"}},field_options:{directus_activity:{create:"Creeaz\u0103"},directus_collections:{archive_divider:"Arhiveaz\u0103"},directus_roles:{fields:{icon_name:"Iconi\u021B\u0103"},collections_name:"Colec\u021Bii"},directus_webhooks:{actions_create:"Creeaz\u0103"}},comment:"Comentariu",delete_field_are_you_sure:'Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 \u015Fterge\u0163i c\xE2mpul "{field}"? Aceast\u0103 ac\u0163iune nu poate fi modificat\u0103 ulterior.',description:"Descriere",done:"Efectuat",duplicate:"Duplicare",email:"Email",embed:"\xCEncorpora\u021Bi",field:"C\xE2mp | C\xE2mpuri",hidden:"Ascuns",icon:"Iconi\u021B\u0103",info:"Info",password:"Parol\u0103",interfaces:{filter:{all:"Tot"},"system-collection":{collection:"Colec\u021Bie"},"system-collections":{collections:"Colec\u021Bii"},files:{files:"Fi\u015Fiere"},"select-icon":{icon:"Iconi\u021B\u0103"},tags:{tags:"Etichete"}},displays:{collection:{collection:"Colec\u021Bie"},"formatted-value":{icon:"Iconi\u021B\u0103"},icon:{icon:"Iconi\u021B\u0103"},user:{avatar:"Avatar",both:"Ambele"}},layouts:{cards:{cards:"Carduri",image_source:"Sursa Imaginii",title:"Titlu",subtitle:"Subtitlu"},tabular:{tabular:"Tabel",comfortable:"Confortabil",compact:"Compact",cozy:"Comod"}}},a=e.avatar,i=e.default_provider,r=e.published,t=e.draft,o=e.archived,c=e.modules,n=e.module_bar,l=e.edit_field,d=e.conditions,s=e.maps,_=e.item_creation,u=e.item_revision,v=e.enter_a_name,m=e.duplicate_field,p=e.half_width,f=e.full_width,h=e.group,b=e.and,g=e.or,k=e.fill_width,w=e.field_name_translations,C=e.enter_password_to_enable_tfa,y=e.add_field,A=e.role_name,z=e.branch,S=e.leaf,I=e.edit_collection,D=e.exclusive,T=e.children,x=e.db_only_click_to_configure,E=e.show_archived_items,R=e.edited,N=e.required,P=e.required_for_app_access,q=e.requires_value,O=e.create_preset,L=e.create_role,M=e.create_user,U=e.create_webhook,V=e.invite_users,F=e.invite,G=e.emails,B=e.connection_excellent,j=e.connection_good,H=e.connection_fair,J=e.connection_poor,W=e.rename_folder,X=e.delete_folder,K=e.reset_bookmark,Q=e.rename_bookmark,Y=e.update_bookmark,Z=e.delete_bookmark,$=e.delete_bookmark_copy,ee=e.logoutReason,ae=e.public_description,ie=e.not_allowed,re=e.directus_version,te=e.node_version,oe=e.node_uptime,ce=e.os_type,ne=e.os_version,le=e.os_uptime,de=e.os_totalmem,se=e.archive,_e=e.archive_confirm,ue=e.archive_confirm_count,ve=e.unarchive,me=e.unarchive_confirm,pe=e.nested_files_folders_will_be_moved,fe=e.create_field,he=e.auto_generate,be=e.add_note,ge=e.default_value,ke=e.clear_value,we=e.title,Ce=e.checksum,ye=e.owner,Ae=e.download,ze=e.created_by,Se=e.created_on,Ie=e.comments,De=e.create_collection,Te=e.users,xe=e.activity,Ee=e.action,Re=e.ip_address,Ne=e.user_agent,Pe=e.duration,qe=e.status,Oe=e.bookmarks,Le=e.back,Me=e.operators,Ue=e.role,Ve=e.create,Fe=e.width,Ge=e.height,Be=e.wysiwyg_options,je=e.choices,He=e.deselect,Je=e.editing_in_batch,We=e.discard_changes,Xe=e.add_new,Ke=e.all,Qe=e.batch_delete_confirm,Ye=e.cancel,Ze=e.collection,$e=e.collections,ea=e.fields,aa=e.field_options,ia=e.comment,ra=e.delete_field_are_you_sure,ta=e.description,oa=e.done,ca=e.duplicate,na=e.email,la=e.embed,da=e.field,sa=e.hidden,_a=e.icon,ua=e.info,va=e.password,ma=e.interfaces,pa=e.displays,fa=e.layouts;export{Ee as action,xe as activity,y as add_field,Xe as add_new,be as add_note,Ke as all,b as and,se as archive,_e as archive_confirm,ue as archive_confirm_count,o as archived,he as auto_generate,a as avatar,Le as back,Qe as batch_delete_confirm,Oe as bookmarks,z as branch,Ye as cancel,Ce as checksum,T as children,je as choices,ke as clear_value,Ze as collection,$e as collections,ia as comment,Ie as comments,d as conditions,B as connection_excellent,H as connection_fair,j as connection_good,J as connection_poor,Ve as create,De as create_collection,fe as create_field,O as create_preset,L as create_role,M as create_user,U as create_webhook,ze as created_by,Se as created_on,x as db_only_click_to_configure,e as default,i as default_provider,ge as default_value,Z as delete_bookmark,$ as delete_bookmark_copy,ra as delete_field_are_you_sure,X as delete_folder,ta as description,He as deselect,re as directus_version,We as discard_changes,pa as displays,oa as done,Ae as download,t as draft,ca as duplicate,m as duplicate_field,Pe as duration,I as edit_collection,l as edit_field,R as edited,Je as editing_in_batch,na as email,G as emails,la as embed,v as enter_a_name,C as enter_password_to_enable_tfa,D as exclusive,da as field,w as field_name_translations,aa as field_options,ea as fields,k as fill_width,f as full_width,h as group,p as half_width,Ge as height,sa as hidden,_a as icon,ua as info,ma as interfaces,F as invite,V as invite_users,Re as ip_address,_ as item_creation,u as item_revision,fa as layouts,S as leaf,ee as logoutReason,s as maps,n as module_bar,c as modules,pe as nested_files_folders_will_be_moved,oe as node_uptime,te as node_version,ie as not_allowed,Me as operators,g as or,de as os_totalmem,ce as os_type,le as os_uptime,ne as os_version,ye as owner,va as password,ae as public_description,r as published,Q as rename_bookmark,W as rename_folder,N as required,P as required_for_app_access,q as requires_value,K as reset_bookmark,Ue as role,A as role_name,E as show_archived_items,qe as status,we as title,ve as unarchive,me as unarchive_confirm,Y as update_bookmark,Ne as user_agent,Te as users,Fe as width,Be as wysiwyg_options};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,p as h,q as d,w as l,
|
|
1
|
+
import{r,p as h,q as d,w as l,z as s,t,N as e}from"./vendor.1339fc9e.js";const i={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),f=e("Learn more about Roles"),m=e("."),g=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-role-object"},"The Role Object")]),s("li",null,[s("a",{href:"#list-roles"},"List Roles")]),s("li",null,[s("a",{href:"#retrieve-a-role"},"Retrieve a Role")]),s("li",null,[s("a",{href:"#create-a-role"},"Create a Role")]),s("li",null,[s("a",{href:"#create-multiple-roles"},"Create Multiple Roles")]),s("li",null,[s("a",{href:"#update-a-role"},"Update a Role")]),s("li",null,[s("a",{href:"#update-multiple-roles"},"Update Multiple Roles")]),s("li",null,[s("a",{href:"#delete-a-role"},"Delete a Role")]),s("li",null,[s("a",{href:"#delete-multiple-roles"},"Delete Multiple Roles")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-role-object"},[e("The Role Object "),s("a",{class:"header-anchor",href:"#the-role-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},R=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),v=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),E=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),T=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),w=s("p",null,[s("code",null,"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),P=s("p",null,[s("code",null,"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),A=s("p",null,[s("code",null,"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),k=s("p",null,[s("code",null,"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),S=s("code",null,"users",-1),I=e(),D=s("strong",null,"one-to-many",-1),C=s("br",null,null,-1),L=e(" The users in this role. One-to-many to "),Q=e("users"),O=e("."),M=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
|
|
2
2
|
`),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),e(`,
|
|
3
3
|
`),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"Admin"'),e(`,
|
|
4
4
|
`),s("span",{class:"hljs-attr"},'"icon"'),e(": "),s("span",{class:"hljs-string"},'"supervised_user_circle"'),e(`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bK as d}from"./vendor.1339fc9e.js";function m(i,f){return f.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(n){if(n!=="default"&&!(n in i)){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(i)}var p={exports:{}};(function(i,f){(function(e){e(d.exports)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,a=/^[\w+.-]+@[\w.-]+/;return{token:function(o){return o.sol()&&(o.match(n)||o.match(c))?"tag":o.match(a)?"string":(o.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,a=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,o=/^%(ifnarch|ifarch|if)/,u=/^%(else|endif)/,l=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(a))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(u))return"keyword";if(r.match(o))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(l))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(n))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var s=p.exports,v=Object.freeze(m({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[p.exports]));export{v as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bK as oe}from"./vendor.1339fc9e.js";import{a as ae}from"./python.65853b0f.js";import{a as ie}from"./stex.79529301.js";import{o as le}from"./overlay.57c20f4c.js";function fe(A,P){return P.forEach(function(l){l&&typeof l!="string"&&!Array.isArray(l)&&Object.keys(l).forEach(function(p){if(p!=="default"&&!(p in A)){var i=Object.getOwnPropertyDescriptor(l,p);Object.defineProperty(A,p,i.get?i:{enumerable:!0,get:function(){return l[p]}})}})}),Object.freeze(A)}var L={exports:{}};(function(A,P){(function(l){l(oe.exports,ae.exports,ie.exports,le.exports)})(function(l){l.defineMode("rst",function(p,i){var v=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,b=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,w=/^``[^`\s](?:[^`]*[^`\s])``/,u=/^(?:[\d]+(?:[\.,]\d+)*)/,E=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,_=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,T="[Hh][Tt][Tt][Pp][Ss]?://",q="(?:[\\d\\w.-]+)\\.(?:\\w{2,6})",x="(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*",y=new RegExp("^"+T+q+x),R={token:function(f){if(f.match(v)&&f.match(/\W+|$/,!1))return"strong";if(f.match(b)&&f.match(/\W+|$/,!1))return"em";if(f.match(w)&&f.match(/\W+|$/,!1))return"string-2";if(f.match(u))return"number";if(f.match(E))return"positive";if(f.match(_))return"negative";if(f.match(y))return"link";for(;f.next()!=null&&!(f.match(v,!1)||f.match(b,!1)||f.match(w,!1)||f.match(u,!1)||f.match(E,!1)||f.match(_,!1)||f.match(y,!1)););return null}},W=l.getMode(p,i.backdrop||"rst-base");return l.overlayMode(W,R,!0)},"python","stex"),l.defineMode("rst-base",function(p){function i(c){var e=Array.prototype.slice.call(arguments,1);return c.replace(/{(\d+)}/g,function(r,N){return typeof e[N]!="undefined"?e[N]:r})}var v=l.getMode(p,"python"),b=l.getMode(p,"stex"),w="\\s+",u="(?:\\s*|\\W|$)",E=new RegExp(i("^{0}",u)),_=`(?:[^\\W\\d_](?:[\\w!"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)`,T=new RegExp(i("^{0}",_)),q=`(?:[^\\W\\d_](?:[\\w\\s!"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)`,x=i("(?:{0}|`{1}`)",_,q),y="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",R="(?:[^\\`]+)",W=new RegExp(i("^{0}",R)),f=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),M=new RegExp(i("^\\.\\.{0}",w)),j=new RegExp(i("^_{0}:{1}|^__:{1}",x,u)),s=new RegExp(i("^{0}::{1}",x,u)),S=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",y,w,x,u)),D=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",x,u)),F=new RegExp(i("^\\[{0}\\]{1}",x,u)),O=new RegExp(i("^\\|{0}\\|",y)),H=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",x)),K=new RegExp(i("^\\[{0}\\]_",x)),B=new RegExp(i("^{0}__?",x)),g=new RegExp(i("^`{0}`_",R)),h=new RegExp(i("^:{0}:`{1}`{2}",_,R,u)),m=new RegExp(i("^`{1}`:{0}:{2}",_,R,u)),$=new RegExp(i("^:{0}:{1}",_,u)),G=new RegExp(i("^{0}",x)),J=new RegExp(i("^::{0}",u)),X=new RegExp(i("^\\|{0}\\|",y)),Q=new RegExp(i("^{0}",w)),U=new RegExp(i("^{0}",x)),V=new RegExp(i("^::{0}",u)),Y=new RegExp("^_"),Z=new RegExp(i("^{0}|_",x)),C=new RegExp(i("^:{0}",u)),ee=new RegExp("^::\\s*$"),ce=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function o(c,e){var r=null;if(c.sol()&&c.match(ce,!1))n(e,I,{mode:v,local:l.startState(v)});else if(c.sol()&&c.match(M))n(e,t),r="meta";else if(c.sol()&&c.match(f))n(e,o),r="header";else if(k(e)==h||c.match(h,!1))switch(d(e)){case 0:n(e,o,a(h,1)),c.match(/^:/),r="meta";break;case 1:n(e,o,a(h,2)),c.match(T),r="keyword",c.current().match(/^(?:math|latex)/)&&(e.tmp_stex=!0);break;case 2:n(e,o,a(h,3)),c.match(/^:`/),r="meta";break;case 3:if(e.tmp_stex&&(e.tmp_stex=void 0,e.tmp={mode:b,local:l.startState(b)}),e.tmp){if(c.peek()=="`"){n(e,o,a(h,4)),e.tmp=void 0;break}r=e.tmp.mode.token(c,e.tmp.local);break}n(e,o,a(h,4)),c.match(W),r="string";break;case 4:n(e,o,a(h,5)),c.match(/^`/),r="meta";break;case 5:n(e,o,a(h,6)),c.match(E);break;default:n(e,o)}else if(k(e)==m||c.match(m,!1))switch(d(e)){case 0:n(e,o,a(m,1)),c.match(/^`/),r="meta";break;case 1:n(e,o,a(m,2)),c.match(W),r="string";break;case 2:n(e,o,a(m,3)),c.match(/^`:/),r="meta";break;case 3:n(e,o,a(m,4)),c.match(T),r="keyword";break;case 4:n(e,o,a(m,5)),c.match(/^:/),r="meta";break;case 5:n(e,o,a(m,6)),c.match(E);break;default:n(e,o)}else if(k(e)==$||c.match($,!1))switch(d(e)){case 0:n(e,o,a($,1)),c.match(/^:/),r="meta";break;case 1:n(e,o,a($,2)),c.match(T),r="keyword";break;case 2:n(e,o,a($,3)),c.match(/^:/),r="meta";break;case 3:n(e,o,a($,4)),c.match(E);break;default:n(e,o)}else if(k(e)==O||c.match(O,!1))switch(d(e)){case 0:n(e,o,a(O,1)),c.match(X),r="variable-2";break;case 1:n(e,o,a(O,2)),c.match(/^_?_?/)&&(r="link");break;default:n(e,o)}else if(c.match(H))n(e,o),r="quote";else if(c.match(K))n(e,o),r="quote";else if(c.match(B))n(e,o),(!c.peek()||c.peek().match(/^\W$/))&&(r="link");else if(k(e)==g||c.match(g,!1))switch(d(e)){case 0:!c.peek()||c.peek().match(/^\W$/)?n(e,o,a(g,1)):c.match(g);break;case 1:n(e,o,a(g,2)),c.match(/^`/),r="link";break;case 2:n(e,o,a(g,3)),c.match(W);break;case 3:n(e,o,a(g,4)),c.match(/^`_/),r="link";break;default:n(e,o)}else c.match(ee)?n(e,re):c.next()&&n(e,o);return r}function t(c,e){var r=null;if(k(e)==S||c.match(S,!1))switch(d(e)){case 0:n(e,t,a(S,1)),c.match(X),r="variable-2";break;case 1:n(e,t,a(S,2)),c.match(Q);break;case 2:n(e,t,a(S,3)),c.match(U),r="keyword";break;case 3:n(e,t,a(S,4)),c.match(V),r="meta";break;default:n(e,o)}else if(k(e)==s||c.match(s,!1))switch(d(e)){case 0:n(e,t,a(s,1)),c.match(G),r="keyword",c.current().match(/^(?:math|latex)/)?e.tmp_stex=!0:c.current().match(/^python/)&&(e.tmp_py=!0);break;case 1:n(e,t,a(s,2)),c.match(J),r="meta",(c.match(/^latex\s*$/)||e.tmp_stex)&&(e.tmp_stex=void 0,n(e,I,{mode:b,local:l.startState(b)}));break;case 2:n(e,t,a(s,3)),(c.match(/^python\s*$/)||e.tmp_py)&&(e.tmp_py=void 0,n(e,I,{mode:v,local:l.startState(v)}));break;default:n(e,o)}else if(k(e)==j||c.match(j,!1))switch(d(e)){case 0:n(e,t,a(j,1)),c.match(Y),c.match(Z),r="link";break;case 1:n(e,t,a(j,2)),c.match(C),r="meta";break;default:n(e,o)}else c.match(D)||c.match(F)?(n(e,o),r="quote"):(c.eatSpace(),c.eol()?n(e,o):(c.skipToEnd(),n(e,ne),r="comment"));return r}function ne(c,e){return z(c,e,"comment")}function re(c,e){return z(c,e,"meta")}function z(c,e,r){return c.eol()||c.eatSpace()?(c.skipToEnd(),r):(n(e,o),null)}function I(c,e){return e.ctx.mode&&e.ctx.local?c.sol()?(c.eatSpace()||n(e,o),null):e.ctx.mode.token(c,e.ctx.local):(n(e,o),null)}function a(c,e,r,N){return{phase:c,stage:e,mode:r,local:N}}function n(c,e,r){c.tok=e,c.ctx=r||{}}function d(c){return c.ctx.stage||0}function k(c){return c.ctx.phase}return{startState:function(){return{tok:o,ctx:a(void 0,0)}},copyState:function(c){var e=c.ctx,r=c.tmp;return e.local&&(e={mode:e.mode,local:l.copyState(e.mode,e.local)}),r&&(r={mode:r.mode,local:l.copyState(r.mode,r.local)}),{tok:c.tok,ctx:e,tmp:r}},innerMode:function(c){return c.tmp?{state:c.tmp.local,mode:c.tmp.mode}:c.ctx.mode?{state:c.ctx.local,mode:c.ctx.mode}:null},token:function(c,e){return e.tok(c,e)}}},"python","stex"),l.defineMIME("text/x-rst","rst")})})();var ue=L.exports,_e=Object.freeze(fe({__proto__:null,[Symbol.toStringTag]:"Module",default:ue},[L.exports]));export{_e as r};
|