@directus/app 9.14.1 → 9.14.5
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.118c3166.entry.js +1 -0
- package/dist/assets/{accounts.40ab36c1.js → accounts.d4221901.js} +1 -1
- package/dist/assets/{active-line.b531d8e7.js → active-line.5b9f7d21.js} +1 -1
- package/dist/assets/{activity-log.9449feec.js → activity-log.0479877c.js} +1 -1
- package/dist/assets/activity.941cbf2b.js +80 -0
- package/dist/assets/{af.b15e3fdc.js → af.ffe603d7.js} +0 -0
- package/dist/assets/{apl.091e05c0.js → apl.38b1f117.js} +1 -1
- package/dist/assets/ar-SA.52ee85f9.js +1 -0
- package/dist/assets/{ar-dz.5481d0db.js → ar-dz.923ce4b9.js} +0 -0
- package/dist/assets/{ar-kw.77cb7412.js → ar-kw.7f81a6f6.js} +0 -0
- package/dist/assets/{ar-ly.d2852686.js → ar-ly.eeb6eb8f.js} +0 -0
- package/dist/assets/{ar-ma.6b2052c4.js → ar-ma.edaad637.js} +0 -0
- package/dist/assets/{ar-sa.0ce4896b.js → ar-sa.a955cf78.js} +0 -0
- package/dist/assets/{ar-tn.0075ee1e.js → ar-tn.0bd79035.js} +0 -0
- package/dist/assets/{ar.01c8813a.js → ar.dfbee566.js} +0 -0
- package/dist/assets/{architecture.9e90b6f3.js → architecture.ddda2484.js} +1 -1
- package/dist/assets/{asciiarmor.72b1d474.js → asciiarmor.de2f91d3.js} +1 -1
- package/dist/assets/{asn.1.64b438d1.js → asn.1.2671e5d6.js} +1 -1
- package/dist/assets/{asterisk.2d23826f.js → asterisk.265fd20b.js} +1 -1
- package/dist/assets/authentication.d5cd539e.js +73 -0
- package/dist/assets/{autorefresh.65071be2.js → autorefresh.d7b5f888.js} +1 -1
- package/dist/assets/{aws.6652a1fd.js → aws.65b39fe1.js} +1 -1
- package/dist/assets/{az.839e5437.js → az.ac368cbb.js} +0 -0
- package/dist/assets/{backing-directus.02c28d29.js → backing-directus.2809dd5a.js} +1 -1
- package/dist/assets/{bg.71bbc37d.js → bg.63a91564.js} +0 -0
- package/dist/assets/{bn.28eb3677.js → bn.a1d9b410.js} +0 -0
- package/dist/assets/{brainfuck.cb084ebc.js → brainfuck.b5c5b4d3.js} +1 -1
- package/dist/assets/{bs.b0570362.js → bs.92a16737.js} +0 -0
- package/dist/assets/{ca.d17b0b48.js → ca.31d0764d.js} +0 -0
- package/dist/assets/{cli.863ef0d2.js → cli.6ee7cfc0.js} +1 -1
- package/dist/assets/{cli.6e61515e.js → cli.fce4fcbe.js} +2 -2
- package/dist/assets/{clike.c67024f2.js → clike.f961e135.js} +1 -1
- package/dist/assets/{clojure.4409f83f.js → clojure.4dd0505f.js} +1 -1
- package/dist/assets/{cloudron.a348537b.js → cloudron.735aeaf5.js} +1 -1
- package/dist/assets/{cmake.2f7d66e8.js → cmake.ed515b1b.js} +1 -1
- package/dist/assets/{cobol.1d3d945c.js → cobol.fc02ebc2.js} +1 -1
- package/dist/assets/codebase-overview.3de1bbdc.js +1 -0
- package/dist/assets/{coffeescript.7dbfeb38.js → coffeescript.4cf3e4f3.js} +1 -1
- package/dist/assets/collections.11aae4a8.js +106 -0
- package/dist/assets/{collections.60e4b448.js → collections.e06a8b1f.js} +1 -1
- package/dist/assets/{commonlisp.79d346a3.js → commonlisp.725a0889.js} +1 -1
- package/dist/assets/{config-options.8e2d8e17.js → config-options.9b79feaf.js} +15 -15
- package/dist/assets/{content.003d7d7c.js → content.07b42fc5.js} +1 -1
- package/dist/assets/creating-extensions.054f4231.js +13 -0
- package/dist/assets/{crystal.6f97295f.js → crystal.de3725fb.js} +1 -1
- package/dist/assets/cs-CZ.5045b098.js +1 -0
- package/dist/assets/{cs.23d06f43.js → cs.021e612f.js} +0 -0
- package/dist/assets/{css.87d5fc8d.js → css.98183349.js} +1 -1
- package/dist/assets/{cy.3b5a8132.js → cy.abf1b7d8.js} +0 -0
- package/dist/assets/{cypher.b46e268d.js → cypher.c571b7dd.js} +1 -1
- package/dist/assets/{d.0277a0cc.js → d.0053cf91.js} +1 -1
- package/dist/assets/{da.18bc0ec4.js → da.230eee14.js} +0 -0
- package/dist/assets/{dart.fd756766.js → dart.62f7758b.js} +1 -1
- package/dist/assets/{data-model.086edd1e.js → data-model.eb5f7e27.js} +1 -1
- package/dist/assets/{data-sharing.27afa5ee.js → data-sharing.8b80b0f4.js} +1 -1
- package/dist/assets/de-DE.5535b278.js +1 -0
- package/dist/assets/{de-at.a1f7dd1d.js → de-at.9a82fa84.js} +0 -0
- package/dist/assets/{de.a8c4aad1.js → de.1f4f2676.js} +0 -0
- package/dist/assets/{diff.1ed63843.js → diff.6acd273a.js} +1 -1
- package/dist/assets/{digitalocean-app-platform.aff2a50b.js → digitalocean-app-platform.62c81303.js} +1 -1
- package/dist/assets/{display-templates.d8e93a19.js → display-templates.2bbee0eb.js} +1 -1
- package/dist/assets/{displays.e528abde.js → displays.037994a0.js} +9 -9
- package/dist/assets/{django.afa30018.js → django.98a7f8f7.js} +1 -1
- package/dist/assets/{docker.6f265c46.js → docker.1f4e694b.js} +1 -1
- package/dist/assets/{dockerfile.91c6378e.js → dockerfile.4721ec68.js} +1 -1
- package/dist/assets/{documentation.ad1fdaf2.js → documentation.60e724e3.js} +1 -1
- package/dist/assets/{dtd.8b391952.js → dtd.1a26b16b.js} +1 -1
- package/dist/assets/{dylan.5532ec69.js → dylan.27c31fbb.js} +1 -1
- package/dist/assets/{ebnf.f179e348.js → ebnf.5a331186.js} +1 -1
- package/dist/assets/{ecl.a37bdc2f.js → ecl.5288ac09.js} +1 -1
- package/dist/assets/{eiffel.883e1bfb.js → eiffel.d48a1fb6.js} +1 -1
- package/dist/assets/el-GR.60ea8245.js +1 -0
- package/dist/assets/{el.fd48dbad.js → el.d2f58204.js} +0 -0
- package/dist/assets/{elm.c40484aa.js → elm.5525d8fa.js} +1 -1
- package/dist/assets/{email-templates.2bdb87a6.js → email-templates.062d08d1.js} +1 -1
- package/dist/assets/{en-au.1268cbf1.js → en-au.c1303a25.js} +0 -0
- package/dist/assets/{en-gb.0165e0db.js → en-gb.e85a2393.js} +0 -0
- package/dist/assets/{en-nz.01361cd3.js → en-nz.e8e12a64.js} +0 -0
- package/dist/assets/endpoints.b6214ea4.js +27 -0
- package/dist/assets/{eo.7ba085ab.js → eo.af51bcc8.js} +0 -0
- package/dist/assets/{erlang.60963eb0.js → erlang.acb354b6.js} +1 -1
- package/dist/assets/es-419.ca94d216.js +1 -0
- package/dist/assets/es-CL.ae584c00.js +1 -0
- package/dist/assets/es-MX.059cc750.js +1 -0
- package/dist/assets/{es-us.8d0a5dcc.js → es-us.2395a850.js} +0 -0
- package/dist/assets/{es.33209895.js → es.90080285.js} +0 -0
- package/dist/assets/{et.d879b698.js → et.b4d59d2c.js} +0 -0
- package/dist/assets/{eu.bfb2c22e.js → eu.85a86bfb.js} +0 -0
- package/dist/assets/{extensions.8d3df212.js → extensions.0f9a4545.js} +1 -1
- package/dist/assets/{fa.d9f705ee.js → fa.b477e584.js} +0 -0
- package/dist/assets/{factor.6c5ee333.js → factor.74747951.js} +1 -1
- package/dist/assets/faq.c134fb00.js +2 -0
- package/dist/assets/{fcl.8e18cfdc.js → fcl.76ae408d.js} +1 -1
- package/dist/assets/{fi.5a2e9662.js → fi.7a66a1a3.js} +0 -0
- package/dist/assets/fields.2c2cc037.js +135 -0
- package/dist/assets/{file-library.a4de4015.js → file-library.92f387e2.js} +1 -1
- package/dist/assets/files.1d250203.js +189 -0
- package/dist/assets/filter-rules.6cc70dd4.js +76 -0
- package/dist/assets/{filters.2cb82fd9.js → filters.0ef5a5ed.js} +1 -1
- package/dist/assets/{flows.f378a262.js → flows.03ed1b32.js} +15 -15
- package/dist/assets/flows.19c6599f.js +172 -0
- package/dist/assets/{folders.fa66a5ce.js → folders.e417fd8b.js} +33 -33
- package/dist/assets/forth.7ddbc993.js +1 -0
- package/dist/assets/{fortran.ac24d46b.js → fortran.d23e51d4.js} +1 -1
- package/dist/assets/fr-CA.6b485ca2.js +1 -0
- package/dist/assets/{fr-ca.cd8c81b9.js → fr-ca.d550f5bd.js} +0 -0
- package/dist/assets/{fr-ch.d9522a23.js → fr-ch.96feab2f.js} +0 -0
- package/dist/assets/{fr.56b3c7ac.js → fr.cc2f5568.js} +0 -0
- package/dist/assets/{gas.f99de41f.js → gas.b4331512.js} +1 -1
- package/dist/assets/{gcp.6c61b39e.js → gcp.293edb91.js} +1 -1
- package/dist/assets/{gfm.c3250bc4.js → gfm.9d7d842c.js} +1 -1
- package/dist/assets/{gherkin.dd3614b2.js → gherkin.a2d07b4b.js} +1 -1
- package/dist/assets/{github-ci.04483301.js → github-ci.20236bca.js} +1 -1
- package/dist/assets/{gl.addde635.js → gl.1bee5350.js} +0 -0
- package/dist/assets/{glossary.6efd77ad.js → glossary.26a7ec6d.js} +1 -1
- package/dist/assets/{glossary.485603d9.js → glossary.c947165b.js} +1 -1
- package/dist/assets/go.6ecfe8d8.js +1 -0
- package/dist/assets/{groovy.d1f3a61a.js → groovy.494f3e93.js} +1 -1
- package/dist/assets/{haml.a346df44.js → haml.1f9900d3.js} +1 -1
- package/dist/assets/{handlebars.a4eff81f.js → handlebars.9bc2d0c9.js} +1 -1
- package/dist/assets/{haskell-literate.57a5243e.js → haskell-literate.5435a3e9.js} +1 -1
- package/dist/assets/{haskell.3acf2710.js → haskell.fc63f26c.js} +1 -1
- package/dist/assets/{haxe.bdf5968b.js → haxe.94355408.js} +1 -1
- package/dist/assets/{he.343cc1d8.js → he.6f56199f.js} +0 -0
- package/dist/assets/{hi.b7726273.js → hi.1ebe75fb.js} +0 -0
- package/dist/assets/hooks.619f1e3f.js +60 -0
- package/dist/assets/{hr.2709fc3c.js → hr.d0e09cc1.js} +0 -0
- package/dist/assets/{htmlembedded.03cf45db.js → htmlembedded.6ebc575e.js} +1 -1
- package/dist/assets/{htmlmixed.987f61e9.js → htmlmixed.fddfb235.js} +1 -1
- package/dist/assets/{http.a4c95466.js → http.de052b25.js} +1 -1
- package/dist/assets/{hu.ec48b74d.js → hu.971007ac.js} +0 -0
- package/dist/assets/{hy-am.30c58054.js → hy-am.b000430d.js} +0 -0
- package/dist/assets/{id.08bda718.js → id.1d3fb755.js} +0 -0
- package/dist/assets/{idl.2fcbfa33.js → idl.87aed386.js} +1 -1
- package/dist/assets/{iis.e068f41a.js → iis.28211ce4.js} +3 -3
- package/dist/assets/{import-export.d334c127.js → import-export.34657c23.js} +1 -1
- package/dist/assets/{index.fa57ca3f.js → index.01a3b92d.js} +1 -1
- package/dist/assets/index.04f4681f.js +1 -0
- package/dist/assets/{index.bce5f50d.js → index.062b5c4e.js} +1 -1
- package/dist/assets/{index.55a12dfb.js → index.0659d17a.js} +1 -1
- package/dist/assets/{index.b67f8116.js → index.0b930698.js} +1 -1
- package/dist/assets/{index.c35b11e6.js → index.107979f6.js} +1 -1
- package/dist/assets/{index.627523d7.js → index.172f9ed4.js} +1 -1
- package/dist/assets/{index.b43832c6.js → index.19099a8f.js} +1 -1
- package/dist/assets/{index.456ff0bd.js → index.201cdc9c.js} +1 -1
- package/dist/assets/{index.cc6496a8.js → index.243aba72.js} +1 -1
- package/dist/assets/{index.a5d15d7f.js → index.2451efbb.js} +1 -1
- package/dist/assets/{index.5f5bf5b9.js → index.2598162d.js} +1 -1
- package/dist/assets/{index.ebb444cf.js → index.2799a3fe.js} +1 -1
- package/dist/assets/{index.28aa754b.js → index.28d160f6.js} +1 -1
- package/dist/assets/{index.e3dcc63c.js → index.2aaac8bd.js} +1 -1
- package/dist/assets/{index.ef3faba8.js → index.2e81f792.js} +1 -1
- package/dist/assets/{index.2598f40b.js → index.2ef6ea17.js} +1 -1
- package/dist/assets/{index.ffc6c203.js → index.2f10fad2.js} +1 -1
- package/dist/assets/{index.56188e3b.js → index.3fc8253a.js} +1 -1
- package/dist/assets/{index.98713a56.js → index.46f1f69a.js} +1 -1
- package/dist/assets/{index.663b73a9.js → index.476a4006.js} +1 -1
- package/dist/assets/{index.d0fe3776.js → index.4d7f8516.js} +1 -1
- package/dist/assets/{index.2926879f.js → index.51da8268.js} +1 -1
- package/dist/assets/{index.4ef25ded.js → index.552cd104.js} +1 -1
- package/dist/assets/{index.5c54c17f.js → index.55a57945.js} +1 -1
- package/dist/assets/{index.16acfb90.js → index.55f95a2f.js} +1 -1
- package/dist/assets/{index.e6715953.js → index.5cee23da.js} +1 -1
- package/dist/assets/{index.cef58c9b.js → index.60e074b9.js} +1 -1
- package/dist/assets/{index.4fbaebb7.js → index.61092ae0.js} +1 -1
- package/dist/assets/{index.c9fb33ab.js → index.610f817e.js} +1 -1
- package/dist/assets/{index.a71fa74c.js → index.632970d8.js} +1 -1
- package/dist/assets/{index.14c720ba.js → index.640cb361.js} +1 -1
- package/dist/assets/{index.0e101049.js → index.64d37708.js} +1 -1
- package/dist/assets/{index.0295bc4b.js → index.65c58270.js} +1 -1
- package/dist/assets/{index.4100d6f0.js → index.6a44e176.js} +1 -1
- package/dist/assets/{index.55d799e2.js → index.6ff4b32e.js} +0 -0
- package/dist/assets/{index.bfd23a9c.js → index.70c01091.js} +1 -1
- package/dist/assets/{index.a8aa4628.js → index.733f5f4d.js} +1 -1
- package/dist/assets/{index.402d83c0.js → index.74e00be8.js} +1 -1
- package/dist/assets/{index.7fd5e2a0.js → index.76fb5db6.js} +1 -1
- package/dist/assets/{index.2ec06d14.js → index.777553ca.js} +1 -1
- package/dist/assets/{index.7b2f54b1.js → index.7993990d.js} +1 -1
- package/dist/assets/{index.af021d8a.js → index.7aa33ef4.js} +1 -1
- package/dist/assets/{index.6bebaca7.js → index.7b1ae0e3.js} +1 -1
- package/dist/assets/{index.1b3cf886.js → index.7c229bc2.js} +1 -1
- package/dist/assets/{index.b5ed5076.js → index.7c8f7bca.js} +1 -1
- package/dist/assets/{index.9b60cfa4.js → index.7fee55e4.js} +1 -1
- package/dist/assets/{index.d653bbf2.js → index.84179c87.js} +1 -1
- package/dist/assets/{index.4e2109fe.js → index.8849b22a.js} +1 -1
- package/dist/assets/{index.07257d01.js → index.888b390d.js} +1 -1
- package/dist/assets/{index.10f90411.js → index.899d7ee6.js} +1 -1
- package/dist/assets/{index.20b34242.js → index.903dc700.js} +1 -1
- package/dist/assets/{index.175a81f8.js → index.90f3c017.js} +1 -1
- package/dist/assets/index.917a76e9.entry.js +3403 -0
- package/dist/assets/{index.98ee194a.js → index.91fbefea.js} +1 -1
- package/dist/assets/index.9335a1f8.css +1 -0
- package/dist/assets/{index.94cf6fb4.js → index.998500ca.js} +1 -1
- package/dist/assets/{index.8493b2e7.js → index.9ac7a0ad.js} +1 -1
- package/dist/assets/{index.3d4cd218.js → index.9c1c3dcb.js} +1 -1
- package/dist/assets/{index.1b44d300.js → index.9f57589f.js} +1 -1
- package/dist/assets/{index.a9faa4e8.js → index.a0faf01e.js} +1 -1
- package/dist/assets/{index.60d33aa1.js → index.a2d2ff92.js} +1 -1
- package/dist/assets/{index.77260d1d.js → index.a3a6d636.js} +1 -1
- package/dist/assets/{index.1a65b37a.js → index.a8265354.js} +1 -1
- package/dist/assets/{index.93059741.js → index.a968c50b.js} +1 -1
- package/dist/assets/{index.7fe984e4.js → index.a977949d.js} +1 -1
- package/dist/assets/{index.ee22568a.js → index.ad338b08.js} +1 -1
- package/dist/assets/{index.c5266851.js → index.ad869bd2.js} +1 -1
- package/dist/assets/{index.c2e6211e.js → index.b22c6489.js} +1 -1
- package/dist/assets/{index.399c0d62.js → index.b62592c3.js} +1 -1
- package/dist/assets/{index.d8fe2ade.js → index.ba2729bd.js} +1 -1
- package/dist/assets/{index.d9285c22.js → index.c1fc17bc.js} +1 -1
- package/dist/assets/{index.85b9f847.js → index.c62ebcc5.js} +1 -1
- package/dist/assets/{index.cda6c2d6.js → index.c859516b.js} +1 -1
- package/dist/assets/{index.a40592f5.js → index.ca7fad51.js} +1 -1
- package/dist/assets/index.d3abd983.js +1 -0
- package/dist/assets/index.d87c135a.js +26 -0
- package/dist/assets/{index.6f497914.css → index.dbec7bd8.css} +1 -1
- package/dist/assets/{index.8a9f2874.js → index.df853543.js} +1 -1
- package/dist/assets/{index.3eda79ec.js → index.dff2a130.js} +1 -1
- package/dist/assets/{index.dc71b91a.js → index.e000ab7f.js} +0 -0
- package/dist/assets/{index.b702042e.js → index.e003b179.js} +1 -1
- package/dist/assets/{index.a3e085ea.js → index.e0295cb0.js} +1 -1
- package/dist/assets/{index.43fa9898.js → index.e282364f.js} +1 -1
- package/dist/assets/{index.a9b73f2c.js → index.e95f45d7.js} +1 -1
- package/dist/assets/{index.6f0b7179.js → index.e975fc43.js} +1 -1
- package/dist/assets/{index.7f906cfe.js → index.f1e5bfe4.js} +1 -1
- package/dist/assets/{index.7249f524.js → index.f3a47a7c.js} +1 -1
- package/dist/assets/{index.d060d5f6.js → index.f6326954.js} +1 -1
- package/dist/assets/{index.eedadecd.js → index.fc01b28f.js} +1 -1
- package/dist/assets/{index.c6e501ec.js → index.fe5f6362.js} +1 -1
- package/dist/assets/{input-rich-text-html.172a38cb.css → input-rich-text-html.0cdbc326.css} +1 -1
- package/dist/assets/{input-rich-text-html.75413785.js → input-rich-text-html.e69dfa94.js} +33 -33
- package/dist/assets/{insights.b3ba896c.js → insights.9f2c43c6.js} +1 -1
- package/dist/assets/{installation.2025f88b.js → installation.76fec85e.js} +1 -1
- package/dist/assets/{interfaces.606c790c.js → interfaces.a65a79df.js} +8 -8
- package/dist/assets/{introduction.527c3465.js → introduction.32669a19.js} +1 -1
- package/dist/assets/{introduction.41a72fb0.js → introduction.e626ca8d.js} +1 -1
- package/dist/assets/{introduction.ecd17b88.js → introduction.e73b1c6c.js} +1 -1
- package/dist/assets/introduction.eda1c2c4.js +90 -0
- package/dist/assets/{is.b36ebc71.js → is.655c0831.js} +0 -0
- package/dist/assets/it-IT.c08c5546.js +1 -0
- package/dist/assets/{it.3cadf6ad.js → it.fca4d703.js} +0 -0
- package/dist/assets/{items.d1f658a9.js → items.ee26fa45.js} +1 -1
- package/dist/assets/items.f5cdbca8.js +136 -0
- package/dist/assets/{ja.df6f4b08.js → ja.0d51d279.js} +0 -0
- package/dist/assets/{javascript-hint.db799360.js → javascript-hint.d74b2cdb.js} +1 -1
- package/dist/assets/{javascript.46c46918.js → javascript.b2307aa3.js} +1 -1
- package/dist/assets/{jinja2.71e29364.js → jinja2.4886bfd6.js} +1 -1
- package/dist/assets/{jsonlint.e8823cb8.js → jsonlint.aae0c1e4.js} +0 -0
- package/dist/assets/{jsx.9ae3ca09.js → jsx.8937d19d.js} +1 -1
- package/dist/assets/{julia.8b46f23e.js → julia.a7a31ee0.js} +1 -1
- package/dist/assets/{ka.805bf11c.js → ka.b19061bf.js} +0 -0
- package/dist/assets/{kk.a6e57d44.js → kk.f9f646d6.js} +0 -0
- package/dist/assets/{ko.08fe68a9.js → ko.bb48e2f9.js} +0 -0
- package/dist/assets/{layouts.0aa8d645.js → layouts.e590b93d.js} +9 -9
- package/dist/assets/{layouts.14b157dc.js → layouts.fc5fee9f.js} +1 -1
- package/dist/assets/{lb.e01f5df5.js → lb.7e51ca06.js} +0 -0
- package/dist/assets/{livescript.1c767a4c.js → livescript.9a710f73.js} +1 -1
- package/dist/assets/{localization.c89061c7.js → localization.998790e9.js} +1 -1
- package/dist/assets/{lt.0d291ae5.js → lt.90e26dcd.js} +0 -0
- package/dist/assets/{lua.42e69aa3.js → lua.d236c940.js} +1 -1
- package/dist/assets/{lv.00399f94.js → lv.c48afa11.js} +0 -0
- package/dist/assets/manual.363297f0.js +12 -0
- package/dist/assets/{mark-selection.16acf9dc.js → mark-selection.cb7787e2.js} +1 -1
- package/dist/assets/{match-highlighter.8f0791ef.js → match-highlighter.450b65c5.js} +1 -1
- package/dist/assets/{mathematica.6d38a8bc.js → mathematica.f8910884.js} +1 -1
- package/dist/assets/{mbox.04641caf.js → mbox.18380965.js} +1 -1
- package/dist/assets/migrations.5af99cef.js +19 -0
- package/dist/assets/{mirc.a748cdbe.js → mirc.31870a2d.js} +1 -1
- package/dist/assets/{mk.5d734698.js → mk.f9301845.js} +0 -0
- package/dist/assets/{mllike.78996bae.js → mllike.0e1e0100.js} +1 -1
- package/dist/assets/{modelica.e521b192.js → modelica.7ecb8aeb.js} +1 -1
- package/dist/assets/{modules.9b5ee510.js → modules.2403c678.js} +8 -8
- package/dist/assets/{ms.d459f765.js → ms.bea4163e.js} +0 -0
- package/dist/assets/{mscgen.4b8f9009.js → mscgen.c34e85a5.js} +1 -1
- package/dist/assets/{multiplex.c8ef0fcd.js → multiplex.225aced9.js} +1 -1
- package/dist/assets/{mumps.44c6f7dd.js → mumps.7a0dbb45.js} +1 -1
- package/dist/assets/{nb.a3febc82.js → nb.2f4ab1ed.js} +0 -0
- package/dist/assets/{ne.afdfe3bf.js → ne.62693259.js} +0 -0
- package/dist/assets/{nginx.0aef90d9.js → nginx.1bc410b6.js} +1 -1
- package/dist/assets/{nl.12cdd5b8.js → nl.a58ee8a1.js} +0 -0
- package/dist/assets/{nn.535723b4.js → nn.97ead2b5.js} +0 -0
- package/dist/assets/notifications.152d86b7.js +153 -0
- package/dist/assets/{nsis.21597a35.js → nsis.04a63636.js} +1 -1
- package/dist/assets/{ntriples.a9ce3eee.js → ntriples.0d5ceb8c.js} +1 -1
- package/dist/assets/{octave.e4e6969c.js → octave.ce59fab4.js} +1 -1
- package/dist/assets/operations.9b3b2514.js +169 -0
- package/dist/assets/{operations.46679bea.js → operations.f00b8c11.js} +1 -1
- package/dist/assets/{overlay.725bd47b.js → overlay.7f8598fd.js} +1 -1
- package/dist/assets/{overview.3616b560.js → overview.288d5f54.js} +1 -1
- package/dist/assets/{overview.6438dc44.js → overview.c3e64ee1.js} +1 -1
- package/dist/assets/{overview.3c9f8f3d.js → overview.d2dd9f17.js} +1 -1
- package/dist/assets/{oz.439981ca.js → oz.7763d971.js} +1 -1
- package/dist/assets/{panels.570ee526.js → panels.f1f6334b.js} +7 -7
- package/dist/assets/{pascal.e63a97cf.js → pascal.fa5fc379.js} +1 -1
- package/dist/assets/{pegjs.9b76593b.js → pegjs.5286f797.js} +1 -1
- package/dist/assets/{perl.e5aa6f87.js → perl.7bceb7a2.js} +1 -1
- package/dist/assets/permissions.de41ff3d.js +178 -0
- package/dist/assets/{php.d553fa6c.js → php.fc781bce.js} +1 -1
- package/dist/assets/{pig.657ad6df.js → pig.a02372ee.js} +1 -1
- package/dist/assets/{pinia.256cc3da.entry.js → pinia.b8e2dbe3.entry.js} +1 -1
- package/dist/assets/pl-PL.6e87b518.js +1 -0
- package/dist/assets/{pl.86440e6e.js → pl.0bbdb5d7.js} +0 -0
- package/dist/assets/plesk.0ef5ab4c.js +27 -0
- package/dist/assets/{powershell.d67ba3f4.js → powershell.5a697151.js} +1 -1
- package/dist/assets/{presets-bookmarks.522baf53.js → presets-bookmarks.5ef79225.js} +1 -1
- package/dist/assets/presets.db317f9f.js +164 -0
- package/dist/assets/project-settings.e940a11b.js +1 -0
- package/dist/assets/{projects.1ea6a392.js → projects.5cc2ad0c.js} +1 -1
- package/dist/assets/{properties.da88b13f.js → properties.7b2f128a.js} +1 -1
- package/dist/assets/{protobuf.4d5afee3.js → protobuf.4e0b6dfc.js} +1 -1
- package/dist/assets/pt-BR.02851ce6.js +1 -0
- package/dist/assets/{pt-PT.fae0fcc3.js → pt-PT.f5bc9b8e.js} +1 -1
- package/dist/assets/{pt-br.cc4b694f.js → pt-br.ce7dbf21.js} +0 -0
- package/dist/assets/{pt.73886c02.js → pt.0d25d212.js} +0 -0
- package/dist/assets/{pug.3f42b721.js → pug.4829baa5.js} +1 -1
- package/dist/assets/{puppet.c79d85fc.js → puppet.0cc3dfc6.js} +1 -1
- package/dist/assets/{python.d6ada07e.js → python.97758a3a.js} +1 -1
- package/dist/assets/{q.1a68bd88.js → q.f7c0a7a0.js} +1 -1
- package/dist/assets/{query.8abea6de.js → query.f187b00c.js} +40 -40
- package/dist/assets/{quickstart.75164dd7.js → quickstart.62cbd1cd.js} +8 -8
- package/dist/assets/quickstart.8d5c02c2.js +20 -0
- package/dist/assets/{r.0c2eb3c2.js → r.65bf4228.js} +1 -1
- package/dist/assets/relations.a37c187d.js +115 -0
- package/dist/assets/{relationships.cbc9b1c5.js → relationships.5cda18e3.js} +1 -1
- package/dist/assets/{resources.25cb1e34.js → resources.540de098.js} +1 -1
- package/dist/assets/revisions.e044726e.js +40 -0
- package/dist/assets/{ro.c45ba3d9.js → ro.b6bf02de.js} +0 -0
- package/dist/assets/roles.83da9d9c.js +171 -0
- package/dist/assets/{rpm.bf07aaab.js → rpm.4485b248.js} +1 -1
- package/dist/assets/{rst.00e6f3ec.js → rst.9bf2ecf3.js} +1 -1
- package/dist/assets/ru-RU.1807a64c.js +1 -0
- package/dist/assets/{ru.638f4fa4.js → ru.ff0e24aa.js} +0 -0
- package/dist/assets/{ruby.a058e7d1.js → ruby.3f0bf45a.js} +1 -1
- package/dist/assets/running-locally.31538f1b.js +27 -0
- package/dist/assets/{runtime-core.esm-bundler.b1f35d24.js → runtime-core.esm-bundler.e3d5f5b7.js} +1 -1
- package/dist/assets/{rust.f7ca883b.js → rust.4520397b.js} +1 -1
- package/dist/assets/{sas.f9db0ec1.js → sas.94641767.js} +1 -1
- package/dist/assets/{sass.6c26d08e.js → sass.ebdaaefc.js} +1 -1
- package/dist/assets/scheme.9d08c24e.js +1 -0
- package/dist/assets/sdk.297840b0.js +393 -0
- package/dist/assets/{security.1963da73.js → security.c18b2f34.js} +1 -1
- package/dist/assets/server.d8bb0f4c.js +114 -0
- package/dist/assets/settings.65d8a9b5.js +51 -0
- package/dist/assets/{settings.a02abd85.js → settings.6c879748.js} +1 -1
- package/dist/assets/{shell.b593f3c7.js → shell.9d77a8b4.js} +1 -1
- package/dist/assets/{show-hint.252396d2.js → show-hint.0e85091b.js} +1 -1
- package/dist/assets/{sieve.b20bbc45.js → sieve.0bb4a673.js} +1 -1
- package/dist/assets/simple.1606e663.js +1 -0
- package/dist/assets/{sk.883343ad.js → sk.ff92f7ac.js} +0 -0
- package/dist/assets/{sl.9c1d7271.js → sl.29a98aa1.js} +0 -0
- package/dist/assets/{slim.2a6f8eee.js → slim.87008de5.js} +1 -1
- package/dist/assets/{smalltalk.9bee6f9b.js → smalltalk.fe7d0a09.js} +1 -1
- package/dist/assets/{smarty.be5c58b8.js → smarty.fefb4633.js} +1 -1
- package/dist/assets/solr.3d0019cc.js +1 -0
- package/dist/assets/{soy.0ff77af9.js → soy.ca07f4e2.js} +1 -1
- package/dist/assets/{sparql.9f5e3d7d.js → sparql.5d956528.js} +1 -1
- package/dist/assets/{spreadsheet.062b3700.js → spreadsheet.5beb51ed.js} +1 -1
- package/dist/assets/{sq.94f802c2.js → sq.74e96d5e.js} +0 -0
- package/dist/assets/{sql.a5128e43.js → sql.6d3b3091.js} +1 -1
- package/dist/assets/{sr-cyrl.cf2bde33.js → sr-cyrl.02689042.js} +0 -0
- package/dist/assets/{sr.ae9ed7f6.js → sr.d758ce65.js} +0 -0
- package/dist/assets/{sso-examples.048b39c5.js → sso-examples.a785e77c.js} +1 -1
- package/dist/assets/{sso.70be105f.js → sso.36061e28.js} +6 -6
- package/dist/assets/{stex.0331c80e.js → stex.0fe2ac60.js} +1 -1
- package/dist/assets/{stylus.6423d65d.js → stylus.e000276e.js} +1 -1
- package/dist/assets/{support.fce2dba5.js → support.a149b5a4.js} +1 -1
- package/dist/assets/{sv.4d9818be.js → sv.424581fc.js} +0 -0
- package/dist/assets/{swift.979a2826.js → swift.486a5a13.js} +1 -1
- package/dist/assets/{ta-in.58b9457c.js → ta-in.266b59a6.js} +0 -0
- package/dist/assets/{tcl.fa1b798c.js → tcl.b3e3538d.js} +1 -1
- package/dist/assets/{teams.44eb670e.js → teams.86e324d5.js} +1 -1
- package/dist/assets/{textile.9dbd9b93.js → textile.b258ec97.js} +1 -1
- package/dist/assets/{th.2e10ae87.js → th.503d2b5a.js} +0 -0
- package/dist/assets/{themes.e4a7762f.js → themes.3d8b2b78.js} +4 -4
- package/dist/assets/{tiddlywiki.fb030aa9.js → tiddlywiki.f7d8e471.js} +1 -1
- package/dist/assets/{tiki.2e2e82c0.js → tiki.70203351.js} +1 -1
- package/dist/assets/{toml.0c911c34.js → toml.86996664.js} +1 -1
- package/dist/assets/{tornado.466faa98.js → tornado.95569557.js} +1 -1
- package/dist/assets/{tr.56778c02.js → tr.5f7e8301.js} +0 -0
- package/dist/assets/{translation-strings.4ed25965.js → translation-strings.2d32b80f.js} +1 -1
- package/dist/assets/{translations.cf2353ca.js → translations.9a0e8cc4.js} +1 -1
- package/dist/assets/{triggers.05092cdf.js → triggers.49fa8cca.js} +1 -1
- package/dist/assets/{troff.398ba40d.js → troff.e305afe5.js} +1 -1
- package/dist/assets/{ttcn-cfg.7c37ebe0.js → ttcn-cfg.befad34e.js} +1 -1
- package/dist/assets/{ttcn.58e768c8.js → ttcn.3f026b3f.js} +1 -1
- package/dist/assets/{turtle.2b65ee77.js → turtle.0a719577.js} +1 -1
- package/dist/assets/{twig.0cf35761.js → twig.473996c3.js} +1 -1
- package/dist/assets/ubuntu.bd27c73d.js +11 -0
- package/dist/assets/{ug.6363a215.js → ug.b3647d71.js} +0 -0
- package/dist/assets/{uk.5a9060bd.js → uk.d81573f6.js} +0 -0
- package/dist/assets/{upgrades-migrations.9218bbe9.js → upgrades-migrations.e91a553b.js} +1 -1
- package/dist/assets/use-sync.138c50b0.js +28 -0
- package/dist/assets/{user-directory.3daaa818.js → user-directory.8d94737c.js} +1 -1
- package/dist/assets/{users-roles-permissions.6e18f7ca.js → users-roles-permissions.d63af527.js} +1 -1
- package/dist/assets/users.9e656e05.js +252 -0
- package/dist/assets/utilities.4a346b3b.js +74 -0
- package/dist/assets/{uz.687d7fbd.js → uz.d1d62588.js} +0 -0
- package/dist/assets/{vb.269200a5.js → vb.34ccd0bd.js} +1 -1
- package/dist/assets/{vbscript.b9c30330.js → vbscript.1e31724d.js} +1 -1
- package/dist/assets/{velocity.a54e5f76.js → velocity.3076e2d2.js} +1 -1
- package/dist/assets/{verilog.fd6a1be7.js → verilog.d290c732.js} +1 -1
- package/dist/assets/{vhdl.846afe81.js → vhdl.bc9a1438.js} +1 -1
- package/dist/assets/{vi.2bf54ce7.js → vi.7af054bb.js} +0 -0
- package/dist/assets/{vue-i18n.ecb0af35.entry.js → vue-i18n.3cc3a25f.entry.js} +1 -1
- package/dist/assets/{vue-router.8987d576.entry.js → vue-router.1ad5ff1f.entry.js} +2 -2
- package/dist/assets/{vue.74e2af44.js → vue.08b7467a.js} +1 -1
- package/dist/assets/{vue.1f4d921a.entry.js → vue.f73b7cd5.entry.js} +1 -1
- package/dist/assets/{vue.runtime.esm-bundler.ac4ff7af.js → vue.runtime.esm-bundler.ee2a778f.js} +1 -1
- package/dist/assets/{wast.38b3f34b.js → wast.96359ee5.js} +1 -1
- package/dist/assets/{webhooks.01ddb390.js → webhooks.235f76fb.js} +1 -1
- package/dist/assets/webhooks.256ac76b.js +147 -0
- package/dist/assets/{webidl.481665e3.js → webidl.9f8f6f0f.js} +1 -1
- package/dist/assets/{xquery.e254ba63.js → xquery.0ea30239.js} +1 -1
- package/dist/assets/{yacas.fc329640.js → yacas.6a86aa92.js} +1 -1
- package/dist/assets/{yaml-frontmatter.84cccda6.js → yaml-frontmatter.d4e317c1.js} +1 -1
- package/dist/assets/{yaml.3a95e8e9.js → yaml.3914e7da.js} +1 -1
- package/dist/assets/{z80.691a0cb9.js → z80.f974aea9.js} +1 -1
- package/dist/assets/zh-CN.5f89875e.js +1 -0
- package/dist/assets/{zh-cn.aac76920.js → zh-cn.fea96989.js} +0 -0
- package/dist/assets/{zh-tw.d89266cf.js → zh-tw.31f5361f.js} +0 -0
- package/dist/index.html +8 -8
- package/package.json +133 -119
- package/dist/assets/@directus_extensions-sdk.016f1070.entry.js +0 -1
- package/dist/assets/activity.fbd319d5.js +0 -80
- package/dist/assets/ar-SA.215069dc.js +0 -1
- package/dist/assets/authentication.bc20bce5.js +0 -73
- package/dist/assets/avatar-placeholder.446bf113.svg +0 -6
- package/dist/assets/codebase-overview.b46635f9.js +0 -1
- package/dist/assets/collections.80e4a52c.js +0 -106
- package/dist/assets/creating-extensions.9a98925a.js +0 -11
- package/dist/assets/cs-CZ.a3c83b73.js +0 -1
- package/dist/assets/de-DE.350023db.js +0 -1
- package/dist/assets/el-GR.103ebf8d.js +0 -1
- package/dist/assets/endpoints.2c9172db.js +0 -27
- package/dist/assets/es-419.10094709.js +0 -1
- package/dist/assets/es-CL.7f44ec7c.js +0 -1
- package/dist/assets/es-MX.17370b17.js +0 -1
- package/dist/assets/faq.63c79c18.js +0 -2
- package/dist/assets/fields.715d4591.js +0 -135
- package/dist/assets/files.7c2ccfe2.js +0 -189
- package/dist/assets/filter-rules.056b97be.js +0 -76
- package/dist/assets/flows.38f60cc8.js +0 -172
- package/dist/assets/forth.5d8db187.js +0 -1
- package/dist/assets/fr-CA.0e824ae4.js +0 -1
- package/dist/assets/go.18ea1afe.js +0 -1
- package/dist/assets/hooks.f7efe9af.js +0 -60
- package/dist/assets/index.02dcddad.entry.js +0 -3402
- package/dist/assets/index.087465cd.css +0 -1
- package/dist/assets/index.4254793b.js +0 -26
- package/dist/assets/index.63d1f569.js +0 -1
- package/dist/assets/introduction.5566b96e.js +0 -90
- package/dist/assets/it-IT.58422a56.js +0 -1
- package/dist/assets/items.d9c6a0b4.js +0 -136
- package/dist/assets/manual.20d730b3.js +0 -12
- package/dist/assets/migrations.f13ec64d.js +0 -19
- package/dist/assets/notifications.674ee6f9.js +0 -153
- package/dist/assets/operations.9995851b.js +0 -169
- package/dist/assets/permissions.768d1878.js +0 -178
- package/dist/assets/pl-PL.80cfbed6.js +0 -1
- package/dist/assets/plesk.b0ee9a9a.js +0 -27
- package/dist/assets/presets.d902ebfa.js +0 -164
- package/dist/assets/project-settings.1f95b799.js +0 -1
- package/dist/assets/pt-BR.40750500.js +0 -1
- package/dist/assets/quickstart.9985cb15.js +0 -20
- package/dist/assets/relations.9011b2b5.js +0 -115
- package/dist/assets/revisions.c90ecb76.js +0 -40
- package/dist/assets/roles.22f7aa37.js +0 -171
- package/dist/assets/ru-RU.35703ea4.js +0 -1
- package/dist/assets/running-locally.ce0a8200.js +0 -26
- package/dist/assets/scheme.b19aee0d.js +0 -1
- package/dist/assets/sdk.916109ed.js +0 -393
- package/dist/assets/server.afec52fc.js +0 -114
- package/dist/assets/settings.835be62f.js +0 -51
- package/dist/assets/simple.8b298831.js +0 -1
- package/dist/assets/solr.49b61be0.js +0 -1
- package/dist/assets/ubuntu.35dc97df.js +0 -11
- package/dist/assets/use-sync.c0f4dfab.js +0 -28
- package/dist/assets/users.4f11a7c5.js +0 -252
- package/dist/assets/utilities.0e0d0ace.js +0 -74
- package/dist/assets/webhooks.00ee297b.js +0 -147
- package/dist/assets/zh-CN.432cf71e.js +0 -1
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import{a as r,o as c,b as d,w as s,g as e,e as l,B as t}from"./runtime-core.esm-bundler.b1f35d24.js";const h={class:"markdown-body"},u={class:"two-up"},p={class:"left"},_=t("Items are individual pieces of data in your database. They can be anything, from articles, to IoT status checks. "),m=t("Learn more about Items"),f=t("."),g=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-item-object"},"The Item Object ")]),e("li",null,[e("a",{href:"#get-items"},"Get Items ")]),e("li",null,[e("a",{href:"#get-item-by-id"},"Get Item by ID ")]),e("li",null,[e("a",{href:"#create-an-item"},"Create an Item ")]),e("li",null,[e("a",{href:"#create-multiple-items"},"Create Multiple Items ")]),e("li",null,[e("a",{href:"#update-an-item"},"Update an Item ")]),e("li",null,[e("a",{href:"#update-multiple-items"},"Update Multiple Items ")]),e("li",null,[e("a",{href:"#delete-an-item"},"Delete an Item ")]),e("li",null,[e("a",{href:"#delete-multiple-items"},"Delete Multiple Items ")])])])])],-1),b=e("hr",null,null,-1),x=e("h2",{id:"the-item-object",tabindex:"-1"},[t("The Item Object "),e("a",{class:"header-anchor",href:"#the-item-object"},"#")],-1),y={class:"two-up"},j={class:"left"},q=e("p",null,[t("Items don\u2019t have a pre-defined schema. The format depends completely on how you configured your collections and fields in Directus. For the sake of documentation, we\u2019ll use a fictional articles collection with the following fields: "),e("code",null,"id"),t(", "),e("code",null,"status"),t(", "),e("code",null,"title"),t(", "),e("code",null,"body"),t(", "),e("code",null,"featured_image"),t(", and "),e("code",null,"author"),t(".")],-1),v={class:"tip hint"},w=e("div",{class:"hint-title"},"Relational Data",-1),E=t("Please see "),T=t("Relational Data"),I=t(" and "),P=t("Field Parameters"),R=t(" to learn more."),S=e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[t(`{
|
|
2
|
-
`),e("span",{class:"hljs-attr"},'"id"'),t(": "),e("span",{class:"hljs-number"},"1"),t(`,
|
|
3
|
-
`),e("span",{class:"hljs-attr"},'"status"'),t(": "),e("span",{class:"hljs-string"},'"published"'),t(`,
|
|
4
|
-
`),e("span",{class:"hljs-attr"},'"title"'),t(": "),e("span",{class:"hljs-string"},'"Hello, world!"'),t(`,
|
|
5
|
-
`),e("span",{class:"hljs-attr"},'"body"'),t(": "),e("span",{class:"hljs-string"},'"This is my first article"'),t(`,
|
|
6
|
-
`),e("span",{class:"hljs-attr"},'"featured_image"'),t(": "),e("span",{class:"hljs-string"},'"768eabec-3c54-4110-a6bb-64b548116661"'),t(`,
|
|
7
|
-
`),e("span",{class:"hljs-attr"},'"author"'),t(": "),e("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),t(`
|
|
8
|
-
}
|
|
9
|
-
`)])])],-1),D=e("hr",null,null,-1),A=e("h2",{id:"get-items",tabindex:"-1"},[t("Get Items "),e("a",{class:"header-anchor",href:"#get-items"},"#")],-1),k=e("p",null,"List all items that exist in Directus.",-1),C={class:"two-up"},G={class:"left"},Q=e("h3",{id:"query-parameters",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),L=t("Supports all "),O=t("global query parameters"),H=t("."),M={class:"tip hint"},B=e("div",{class:"hint-title"},"Relational Data",-1),U=t("The "),F=t("Field Parameter"),N=t(" is required to return nested relational data."),V=e("h3",{id:"returns",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")],-1),z=t("An array of up to "),J=t("limit"),K=t(),W=e("a",{href:"#the-item-object"},"item objects",-1),X=t(". If no items are available, data will be an empty array."),Y=e("h4",{id:"singleton",tabindex:"-1"},[t("Singleton "),e("a",{class:"header-anchor",href:"#singleton"},"#")],-1),Z=e("p",null,"If your collection is a singleton, this endpoint will return the item. If the item doesn\u2019t exist in the database, the default values will be returned.",-1),$={class:"right"},ee=e("h3",{id:"rest-api",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),te=e("pre",null,[e("code",null,`GET /items/:collection
|
|
10
|
-
SEARCH /items/:collection
|
|
11
|
-
`)],-1),se=t("Learn more about SEARCH ->"),ae=e("h5",{id:"example",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example"},"#")],-1),le=e("pre",null,[e("code",null,`GET /items/articles
|
|
12
|
-
`)],-1),ne=e("h3",{id:"graphql",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")],-1),re=e("pre",null,[e("code",null,`POST /graphql
|
|
13
|
-
`)],-1),ie=e("pre",null,[e("code",{class:"language-graphql"},`type Query {
|
|
14
|
-
<collection>: [<collection>]
|
|
15
|
-
}
|
|
16
|
-
`)],-1),oe=e("h5",{id:"example-1",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-1"},"#")],-1),ce=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),t(` {
|
|
17
|
-
articles {
|
|
18
|
-
id
|
|
19
|
-
title
|
|
20
|
-
author {
|
|
21
|
-
first_name
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`)])],-1),de=e("hr",null,null,-1),he=e("h2",{id:"get-item-by-id",tabindex:"-1"},[t("Get Item by ID "),e("a",{class:"header-anchor",href:"#get-item-by-id"},"#")],-1),ue=e("p",null,"Get an item that exists in Directus.",-1),pe={class:"two-up"},_e={class:"left"},me=e("h3",{id:"query-parameters-1",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-1"},"#")],-1),fe=t("Supports all "),ge=t("global query parameters"),be=t("."),xe=e("h3",{id:"returns-1",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-1"},"#")],-1),ye=e("p",null,[t("Returns an "),e("a",{href:"#the-item-object"},"item object"),t(" if a valid primary key was provided.")],-1),je=e("div",{class:"right"},[e("h3",{id:"rest-api-1",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-1"},"#")]),e("pre",null,[e("code",null,`GET /items/:collection/:id
|
|
26
|
-
`)]),e("h5",{id:"example-2",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",null,`GET /items/articles/15
|
|
27
|
-
`)]),e("h3",{id:"graphql-1",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-1"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
28
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Query {
|
|
29
|
-
<collection>_by_id(id: ID!): <collection>
|
|
30
|
-
}
|
|
31
|
-
`)]),e("h5",{id:"example-3",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),t(` {
|
|
32
|
-
articles_by_id(id: `),e("span",{class:"hljs-number"},"15"),t(`) {
|
|
33
|
-
id
|
|
34
|
-
title
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`)])])],-1),qe=e("hr",null,null,-1),ve=e("h2",{id:"create-an-item",tabindex:"-1"},[t("Create an Item "),e("a",{class:"header-anchor",href:"#create-an-item"},"#")],-1),we=e("p",null,"Create a new item in the given collection.",-1),Ee={class:"two-up"},Te={class:"left"},Ie=e("h3",{id:"query-parameters-2",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),Pe=t("Supports all "),Re=t("global query parameters"),Se=t("."),De=e("h3",{id:"request-body",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Ae=e("p",null,[t("An array of partial "),e("a",{href:"#the-item-object"},"item objects"),t(".")],-1),ke={class:"tip hint"},Ce=e("div",{class:"hint-title"},"Relational Data",-1),Ge=t("Relational data needs to be correctly nested to add new items successfully. Check out the "),Qe=t("relational data section"),Le=t(" for more information."),Oe=e("h3",{id:"returns-2",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),He=e("p",null,[t("Returns the "),e("a",{href:"#the-item-object"},"item objects"),t(" of the item that were created.")],-1),Me=e("div",{class:"right"},[e("h3",{id:"rest-api-2",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`POST /items/:collection
|
|
38
|
-
`)]),e("h5",{id:"example-4",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",null,`POST /items/articles
|
|
39
|
-
`)]),e("pre",null,[e("code",{class:"language-json"},[t(`{
|
|
40
|
-
`),e("span",{class:"hljs-attr"},'"title"'),t(": "),e("span",{class:"hljs-string"},'"Hello world!"'),t(`,
|
|
41
|
-
`),e("span",{class:"hljs-attr"},'"body"'),t(": "),e("span",{class:"hljs-string"},'"This is our first article"'),t(`
|
|
42
|
-
}
|
|
43
|
-
`)])]),e("h3",{id:"graphql-2",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
44
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Mutation {
|
|
45
|
-
create_<collection>_item(data: create_<collection>_input): <collection>
|
|
46
|
-
}
|
|
47
|
-
`)]),e("h5",{id:"example-5",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
48
|
-
create_articles_item(data: { title: `),e("span",{class:"hljs-string"},'"Hello world!"'),t(", body: "),e("span",{class:"hljs-string"},'"This is our first article"'),t(` }) {
|
|
49
|
-
id
|
|
50
|
-
title
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
`)])])],-1),Be=e("hr",null,null,-1),Ue=e("h2",{id:"create-multiple-items",tabindex:"-1"},[t("Create Multiple Items "),e("a",{class:"header-anchor",href:"#create-multiple-items"},"#")],-1),Fe=e("p",null,"Create new items in the given collection.",-1),Ne={class:"two-up"},Ve={class:"left"},ze=e("h3",{id:"query-parameters-3",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Je=t("Supports all "),Ke=t("global query parameters"),We=t("."),Xe=e("h3",{id:"request-body-1",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-1"},"#")],-1),Ye=e("p",null,[t("An array of partial "),e("a",{href:"#the-item-object"},"item objects"),t(".")],-1),Ze=e("h3",{id:"returns-3",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),$e=e("p",null,[t("Returns the "),e("a",{href:"#the-item-object"},"item objects"),t(" of the item that were created.")],-1),et=e("div",{class:"right"},[e("h3",{id:"rest-api-3",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`POST /items/:collection
|
|
54
|
-
`)]),e("h5",{id:"example-6",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",null,`POST /items/articles
|
|
55
|
-
`)]),e("pre",null,[e("code",{class:"language-json"},[t(`[
|
|
56
|
-
{
|
|
57
|
-
`),e("span",{class:"hljs-attr"},'"title"'),t(": "),e("span",{class:"hljs-string"},'"Hello world!"'),t(`,
|
|
58
|
-
`),e("span",{class:"hljs-attr"},'"body"'),t(": "),e("span",{class:"hljs-string"},'"This is our first article"'),t(`
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
`),e("span",{class:"hljs-attr"},'"title"'),t(": "),e("span",{class:"hljs-string"},'"Hello again, world!"'),t(`,
|
|
62
|
-
`),e("span",{class:"hljs-attr"},'"body"'),t(": "),e("span",{class:"hljs-string"},'"This is our second article"'),t(`
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
`)])]),e("h3",{id:"graphql-3",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
66
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Mutation {
|
|
67
|
-
create_<collection>_items(data: [create_<collection>_input]): [<collection>]
|
|
68
|
-
}
|
|
69
|
-
`)]),e("h5",{id:"example-7",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
70
|
-
create_articles_items(
|
|
71
|
-
data: [
|
|
72
|
-
{ title: `),e("span",{class:"hljs-string"},'"Hello world!"'),t(", body: "),e("span",{class:"hljs-string"},'"This is our first article"'),t(` }
|
|
73
|
-
{ title: `),e("span",{class:"hljs-string"},'"Hello again, world!"'),t(", body: "),e("span",{class:"hljs-string"},'"This is our second article"'),t(` }
|
|
74
|
-
]
|
|
75
|
-
) {
|
|
76
|
-
id
|
|
77
|
-
title
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`)])])],-1),tt=e("hr",null,null,-1),st=e("h2",{id:"update-an-item",tabindex:"-1"},[t("Update an Item "),e("a",{class:"header-anchor",href:"#update-an-item"},"#")],-1),at=e("p",null,"Update an existing item.",-1),lt={class:"two-up"},nt={class:"left"},rt=e("h3",{id:"query-parameters-4",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),it=t("Supports all "),ot=t("global query parameters"),ct=t("."),dt=e("h3",{id:"request-body-2",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),ht=e("p",null,[t("A partial "),e("a",{href:"#the-item-object"},"item object"),t(".")],-1),ut=e("h3",{id:"returns-4",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),pt=e("p",null,[t("Returns the "),e("a",{href:"#the-item-object"},"item object"),t(" of the item that was updated.")],-1),_t=e("div",{class:"right"},[e("h3",{id:"rest-api-4",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`PATCH /items/:collection/:id
|
|
81
|
-
`)]),e("h5",{id:"example-8",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",null,`PATCH /items/articles/15
|
|
82
|
-
`)]),e("pre",null,[e("code",{class:"language-json"},[t(`{
|
|
83
|
-
`),e("span",{class:"hljs-attr"},'"title"'),t(": "),e("span",{class:"hljs-string"},'"An updated title"'),t(`
|
|
84
|
-
}
|
|
85
|
-
`)])]),e("h3",{id:"graphql-4",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
86
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Mutation {
|
|
87
|
-
update_<collection>_item(id: ID!, data: update_<collection>_input!): <collection>
|
|
88
|
-
}
|
|
89
|
-
`)]),e("h5",{id:"example-9",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
90
|
-
update_articles_item(id: `),e("span",{class:"hljs-number"},"15"),t(", data: { title: "),e("span",{class:"hljs-string"},'"An updated title"'),t(` }) {
|
|
91
|
-
id
|
|
92
|
-
title
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`)])])],-1),mt=e("hr",null,null,-1),ft=e("h2",{id:"update-multiple-items",tabindex:"-1"},[t("Update Multiple Items "),e("a",{class:"header-anchor",href:"#update-multiple-items"},"#")],-1),gt=e("p",null,"Update multiple items at the same time.",-1),bt={class:"two-up"},xt={class:"left"},yt=e("h3",{id:"query-parameters-5",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),jt=t("Supports all "),qt=t("global query parameters"),vt=t("."),wt=e("h3",{id:"request-body-3",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),Et=e("p",null,[t("Object containing "),e("code",null,"data"),t(" for the values to set, and either "),e("code",null,"keys"),t(" or "),e("code",null,"query"),t(" to select what items to update.")],-1),Tt=e("h3",{id:"returns-5",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),It=e("p",null,[t("Returns the "),e("a",{href:"#the-item-object"},"item objects"),t(" for the updated items.")],-1),Pt=e("h4",{id:"singleton-1",tabindex:"-1"},[t("Singleton "),e("a",{class:"header-anchor",href:"#singleton-1"},"#")],-1),Rt=e("p",null,[t("If your collection is a singleton, this endpoint will act the same as the "),e("a",{href:"#update-an-item"},"Update an Item"),t(" endpoint.")],-1),St=e("div",{class:"right"},[e("h3",{id:"rest-api-5",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`PATCH /items/:collection
|
|
96
|
-
`)]),e("h5",{id:"example-10",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",null,`PATCH /items/articles
|
|
97
|
-
`)]),e("pre",null,[e("code",{class:"language-json"},[t(`{
|
|
98
|
-
`),e("span",{class:"hljs-attr"},'"keys"'),t(": ["),e("span",{class:"hljs-number"},"1"),t(", "),e("span",{class:"hljs-number"},"2"),t(`],
|
|
99
|
-
`),e("span",{class:"hljs-attr"},'"data"'),t(`: {
|
|
100
|
-
`),e("span",{class:"hljs-attr"},'"status"'),t(": "),e("span",{class:"hljs-string"},'"published"'),t(`
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
`)])]),e("h3",{id:"graphql-5",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
104
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Mutation {
|
|
105
|
-
update_<collection>_items(ids: [ID!]!, data: [update_<collection>_input]): [<collection>]
|
|
106
|
-
}
|
|
107
|
-
`)]),e("h5",{id:"example-11",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-11"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
108
|
-
update_articles_items(ids: [`),e("span",{class:"hljs-number"},"1"),t(", "),e("span",{class:"hljs-number"},"2"),t("], data: { status: "),e("span",{class:"hljs-string"},'"published"'),t(` }) {
|
|
109
|
-
id
|
|
110
|
-
status
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
`)])])],-1),Dt=e("hr",null,null,-1),At=e("h2",{id:"delete-an-item",tabindex:"-1"},[t("Delete an Item "),e("a",{class:"header-anchor",href:"#delete-an-item"},"#")],-1),kt=e("p",null,"Delete an existing item.",-1),Ct=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"returns-6",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-6",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`DELETE /items/:collection/:id
|
|
114
|
-
`)]),e("h5",{id:"example-12",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-12"},"#")]),e("pre",null,[e("code",null,`DELETE /items/articles/15
|
|
115
|
-
`)]),e("h3",{id:"graphql-6",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
116
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Mutation {
|
|
117
|
-
delete_<collection>_item(id: ID!): delete_one
|
|
118
|
-
}
|
|
119
|
-
`)]),e("h5",{id:"example-13",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-13"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
120
|
-
delete_articles_item(id: `),e("span",{class:"hljs-number"},"15"),t(`) {
|
|
121
|
-
id
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
`)])])])],-1),Gt=e("hr",null,null,-1),Qt=e("h2",{id:"delete-multiple-items",tabindex:"-1"},[t("Delete Multiple Items "),e("a",{class:"header-anchor",href:"#delete-multiple-items"},"#")],-1),Lt=e("p",null,"Delete multiple existing items.",-1),Ot=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"request-body-4",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-4"},"#")]),e("p",null,"An array of item primary keys."),e("h3",{id:"returns-7",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-7"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-7",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),e("pre",null,[e("code",null,`DELETE /items/:collection
|
|
125
|
-
`)]),e("h5",{id:"example-14",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-14"},"#")]),e("pre",null,[e("code",null,`DELETE /items/articles
|
|
126
|
-
`)]),e("pre",null,[e("code",{class:"language-json"},[t("["),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"16"),t(", "),e("span",{class:"hljs-number"},"21"),t(`]
|
|
127
|
-
`)])]),e("h3",{id:"graphql-7",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-7"},"#")]),e("pre",null,[e("code",null,`POST /graphql
|
|
128
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},`type Mutation {
|
|
129
|
-
delete_<collection>_items(ids: [ID!]!): delete_many
|
|
130
|
-
}
|
|
131
|
-
`)]),e("h5",{id:"example-15",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-15"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
132
|
-
delete_articles_items(ids: [`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"16"),t(", "),e("span",{class:"hljs-number"},"21"),t(`]) {
|
|
133
|
-
ids
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
`)])])])],-1),Ft="Accessing Items",Nt=!1,Vt="page-reference",zt={name:"items",setup(Ht,{expose:i}){const n={title:"Accessing Items",modularExtension:!1,pageClass:"page-reference"};return i({frontmatter:n}),(Mt,Bt)=>{const a=r("router-link"),o=r("docs-wrapper");return c(),d(o,{frontmatter:n},{default:s(()=>[e("div",h,[e("div",u,[e("div",p,[e("blockquote",null,[e("p",null,[_,l(a,{to:"/docs/getting-started/glossary/#items"},{default:s(()=>[m]),_:1}),f])])]),g]),b,x,e("div",y,[e("div",j,[q,e("div",v,[w,e("p",null,[E,l(a,{to:"/docs/reference/introduction/#relational-data"},{default:s(()=>[T]),_:1}),I,l(a,{to:"/docs/reference/query/#fields"},{default:s(()=>[P]),_:1}),R])])]),S]),D,A,k,e("div",C,[e("div",G,[Q,e("p",null,[L,l(a,{to:"/docs/reference/query"},{default:s(()=>[O]),_:1}),H]),e("div",M,[B,e("p",null,[U,l(a,{to:"/docs/reference/query/#fields"},{default:s(()=>[F]),_:1}),N])]),V,e("p",null,[z,l(a,{to:"/docs/reference/query/#limit"},{default:s(()=>[J]),_:1}),K,W,X]),Y,Z]),e("div",$,[ee,te,e("p",null,[l(a,{to:"/docs/reference/introduction/#search-http-method"},{default:s(()=>[se]),_:1})]),ae,le,ne,re,ie,oe,ce])]),de,he,ue,e("div",pe,[e("div",_e,[me,e("p",null,[fe,l(a,{to:"/docs/reference/query"},{default:s(()=>[ge]),_:1}),be]),xe,ye]),je]),qe,ve,we,e("div",Ee,[e("div",Te,[Ie,e("p",null,[Pe,l(a,{to:"/docs/reference/query"},{default:s(()=>[Re]),_:1}),Se]),De,Ae,e("div",ke,[Ce,e("p",null,[Ge,l(a,{to:"/docs/reference/introduction/#relational-data"},{default:s(()=>[Qe]),_:1}),Le])]),Oe,He]),Me]),Be,Ue,Fe,e("div",Ne,[e("div",Ve,[ze,e("p",null,[Je,l(a,{to:"/docs/reference/query"},{default:s(()=>[Ke]),_:1}),We]),Xe,Ye,Ze,$e]),et]),tt,st,at,e("div",lt,[e("div",nt,[rt,e("p",null,[it,l(a,{to:"/docs/reference/query"},{default:s(()=>[ot]),_:1}),ct]),dt,ht,ut,pt]),_t]),mt,ft,gt,e("div",bt,[e("div",xt,[yt,e("p",null,[jt,l(a,{to:"/docs/reference/query"},{default:s(()=>[qt]),_:1}),vt]),wt,Et,Tt,It,Pt,Rt]),St]),Dt,At,kt,Ct,Gt,Qt,Lt,Ot])]),_:1})}}};export{zt as default,Nt as modularExtension,Vt as pageClass,Ft as title};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{a as l,o as c,b as d,w as o,g as t,e as n,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";const _={class:"markdown-body"},h={class:"tip hint"},u=t("div",{class:"hint-title"},"Automation",-1),p=e("We\u2019ve created a little CLI tool you can run that does this process automatically. For more info, check the doc on "),f=e("installing through the CLI"),g=e("."),m=t("h2",{id:"1.-setup-a-project-folder",tabindex:"-1"},[e("1. Setup a Project Folder "),t("a",{class:"header-anchor",href:"#1.-setup-a-project-folder"},"#")],-1),b=t("p",null,[e("Create a new directory, and add a "),t("code",null,"package.json"),e(" by running the following command.")],-1),v=t("pre",null,[t("code",{class:"language-bash"},`npm init -y
|
|
2
|
-
`)],-1),x=e("We recommend aliasing the "),y=t("code",null,"start",-1),k=e(" script to Directus\u2019 start for easier deployments to services like "),w=e("AWS"),C=e(", "),I=e("Google Cloud Platform"),S=e(" or "),j=e("DigitalOcean App Platform"),B=e("."),D=t("pre",null,[t("code",{class:"language-json"},`{
|
|
3
|
-
...
|
|
4
|
-
"scripts": {
|
|
5
|
-
"start": "directus start"
|
|
6
|
-
}
|
|
7
|
-
...
|
|
8
|
-
}
|
|
9
|
-
`)],-1),F=t("h2",{id:"2.-install-directus",tabindex:"-1"},[e("2. Install Directus "),t("a",{class:"header-anchor",href:"#2.-install-directus"},"#")],-1),V=t("pre",null,[t("code",{class:"language-bash"},`npm install directus
|
|
10
|
-
`)],-1),A=t("h2",{id:"3.-setup-a-configuration-file",tabindex:"-1"},[e("3. Setup a Configuration File "),t("a",{class:"header-anchor",href:"#3.-setup-a-configuration-file"},"#")],-1),E=t("p",null,[e("Finally, you\u2019ll need to setup your "),t("code",null,".env"),e(" file, or configure the environment variables through other means, such as Docker, etc.")],-1),N=t("p",null,[t("strong",null,"Don\u2019t forget to fill your database information before continuing to next step")],-1),P=e("See "),W=e("Environment Variables"),L=e(" for all available variables."),M=t("h2",{id:"4.-bootstrap-it",tabindex:"-1"},[e("4. Bootstrap It "),t("a",{class:"header-anchor",href:"#4.-bootstrap-it"},"#")],-1),G=t("pre",null,[t("code",{class:"language-bash"},`npx directus bootstrap
|
|
11
|
-
`)],-1),O=t("h2",{id:"5.-start-server",tabindex:"-1"},[e("5. Start Server "),t("a",{class:"header-anchor",href:"#5.-start-server"},"#")],-1),T=t("pre",null,[t("code",{class:"language-bash"},`npm run start
|
|
12
|
-
`)],-1),K="Installing Manually",Q=!1,R={name:"manual",setup(q,{expose:i}){const a={title:"Installing Manually",modularExtension:!1};return i({frontmatter:a}),(z,H)=>{const s=l("router-link"),r=l("docs-wrapper");return c(),d(r,{frontmatter:a},{default:o(()=>[t("div",_,[t("div",h,[u,t("p",null,[p,n(s,{to:"/docs/self-hosted/installation/cli/"},{default:o(()=>[f]),_:1}),g])]),m,b,v,t("p",null,[x,y,k,n(s,{to:"/docs/self-hosted/installation/aws/"},{default:o(()=>[w]),_:1}),C,n(s,{to:"/docs/self-hosted/installation/gcp"},{default:o(()=>[I]),_:1}),S,n(s,{to:"/docs/self-hosted/installation/digitalocean-app-platform/"},{default:o(()=>[j]),_:1}),B]),D,F,V,A,E,N,t("p",null,[P,n(s,{to:"/docs/self-hosted/config-options/#general"},{default:o(()=>[W]),_:1}),L]),M,G,O,T])]),_:1})}}};export{R as default,Q as modularExtension,K as title};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{a as l,o,b as r,w as i,g as a,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";const c=a("div",{class:"markdown-body"},[a("blockquote",null,[a("p",null,[e("Directus allows adding custom migration files that run whenever the "),a("code",null,"directus database migrate:*"),e(" commands are executed. All migrations must reside in the "),a("code",null,"extensions/migrations"),e(" folder.")])]),a("h2",{id:"file-name",tabindex:"-1"},[e("File Name "),a("a",{class:"header-anchor",href:"#file-name"},"#")]),a("p",null,"The file name follows the following structure:"),a("pre",null,[a("code",null,`[identifier]-[name].js
|
|
2
|
-
`)]),a("p",null,"for example:"),a("pre",null,[a("code",null,`20201202A-my-custom-migration.js
|
|
3
|
-
`)]),a("h2",{id:"structure",tabindex:"-1"},[e("Structure "),a("a",{class:"header-anchor",href:"#structure"},"#")]),a("p",null,[e("Migrations have to export an "),a("code",null,"up"),e(" and a "),a("code",null,"down"),e(" function. These functions get a "),a("a",{href:"http://knexjs.org",target:"_blank",rel:"noopener noreferrer"},"Knex"),e(" instance that can be used to do virtually whatever.")]),a("pre",null,[a("code",{class:"language-js"},[a("span",{class:"hljs-built_in"},"module"),e(`.exports = {
|
|
4
|
-
`),a("span",{class:"hljs-keyword"},"async"),e(),a("span",{class:"hljs-function"},[a("span",{class:"hljs-title"},"up"),e("("),a("span",{class:"hljs-params"},"knex"),e(")")]),e(` {
|
|
5
|
-
`),a("span",{class:"hljs-keyword"},"await"),e(" knex.schema.createTable("),a("span",{class:"hljs-string"},"'test'"),e(", "),a("span",{class:"hljs-function"},[e("("),a("span",{class:"hljs-params"},"table"),e(") =>")]),e(` {
|
|
6
|
-
table.increments();
|
|
7
|
-
table.string(`),a("span",{class:"hljs-string"},"'rijk'"),e(`);
|
|
8
|
-
});
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
`),a("span",{class:"hljs-keyword"},"async"),e(),a("span",{class:"hljs-function"},[a("span",{class:"hljs-title"},"down"),e("("),a("span",{class:"hljs-params"},"knex"),e(")")]),e(` {
|
|
12
|
-
`),a("span",{class:"hljs-keyword"},"await"),e(" knex.schema.dropTable("),a("span",{class:"hljs-string"},"'test'"),e(`);
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
`)])]),a("div",{class:"danger hint"},[a("div",{class:"hint-title"},"Danger"),a("p",null,"Seeing that these migrations are a bit of a free-for-all, you can really harm your database. Please make sure you know what you\u2019re doing and backup your database before adding these migrations.")]),a("h2",{id:"migrations-and-directus-schema",tabindex:"-1"},[e("Migrations and Directus schema "),a("a",{class:"header-anchor",href:"#migrations-and-directus-schema"},"#")]),a("p",null,[e("Migrations can be used for managing contents of Directus collections (e.g. initial hydration). In order to do it, you must ensure that schema is up to date before running migrations. One way of achieving it is opting out of default "),a("code",null,"directus bootstrap"),e(" process and running:")]),a("pre",null,[a("code",{class:"language-bash"},[e(`npx directus database install
|
|
16
|
-
`),a("span",{class:"hljs-comment"},"# notice that schema is applied before running migrations"),e(`
|
|
17
|
-
npx directus schema apply ./path/to/snapshot.yaml
|
|
18
|
-
npx directus database migrate:latest
|
|
19
|
-
`)])]),a("p",null,[e("You may want to add additional steps to reflect other responsibilities of "),a("code",null,"directus bootstrap"),e(".")])],-1),m="Custom Migrations",g=!1,f={name:"migrations",setup(u,{expose:t}){const s={title:"Custom Migrations",modularExtension:!1};return t({frontmatter:s}),(d,p)=>{const n=l("docs-wrapper");return o(),r(n,{frontmatter:s},{default:i(()=>[c]),_:1})}}};export{f as default,g as modularExtension,m as title};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import{a as l,o as c,b as h,w as s,g as e,e as n,B as t}from"./runtime-core.esm-bundler.b1f35d24.js";const d={class:"markdown-body"},p=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Notifications allow you to send/receive messages to/from other users of the platform.")])]),e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-notification-object"},"The Notification Object ")]),e("li",null,[e("a",{href:"#list-notifications"},"List Notifications ")]),e("li",null,[e("a",{href:"#retrieve-a-notification"},"Retrieve a notification ")]),e("li",null,[e("a",{href:"#create-a-notification"},"Create a Notification ")]),e("li",null,[e("a",{href:"#create-multiple-notifications"},"Create Multiple Notifications ")]),e("li",null,[e("a",{href:"#update-a-notification"},"Update a Notification ")]),e("li",null,[e("a",{href:"#update-multiple-notifications"},"Update Multiple Notifications ")]),e("li",null,[e("a",{href:"#delete-a-notification"},"Delete a Notification ")]),e("li",null,[e("a",{href:"#delete-multiple-notifications"},"Delete Multiple Notifications ")])])])])])],-1),u=e("hr",null,null,-1),f=e("h2",{id:"the-notification-object",tabindex:"-1"},[t("The Notification Object "),e("a",{class:"header-anchor",href:"#the-notification-object"},"#")],-1),_=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),t(),e("strong",null,"integer"),e("br"),t(" Primary key of the revision.")]),e("p",null,[e("code",null,"timestamp"),t(),e("strong",null,"string"),e("br"),t(" Timestamp in ISO8601 when the notification was created.")]),e("p",null,[e("code",null,"status"),t(),e("strong",null,"string"),e("br"),t(" Current status of the notification. One of \u201Cinbox\u201D, \u201Carchived\u201D.")]),e("p",null,[e("code",null,"recipient"),t(),e("strong",null,"many-to-one"),e("br"),t(" User that received the notification.")]),e("p",null,[e("code",null,"sender"),t(),e("strong",null,"many-to-one"),e("br"),t(" User that sent the notification, if any.")]),e("p",null,[e("code",null,"subject"),t(),e("strong",null,"string"),e("br"),t(" Subject line of the message.")]),e("p",null,[e("code",null,"message"),t(),e("strong",null,"string"),e("br"),t(" Notification\u2019s message content. Will be sent in the email.")]),e("p",null,[e("code",null,"collection"),t(),e("strong",null,"string"),e("br"),t(" Collection this notification references.")]),e("p",null,[e("code",null,"item"),t(),e("strong",null,"string"),e("br"),t(" Primary key of the item this notification references.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[t(`{
|
|
2
|
-
`),e("span",{class:"hljs-attr"},'"id"'),t(": "),e("span",{class:"hljs-number"},"2"),t(`,
|
|
3
|
-
`),e("span",{class:"hljs-attr"},'"timestamp"'),t(": "),e("span",{class:"hljs-string"},'"2021-11-24T13:57:35Z"'),t(`,
|
|
4
|
-
`),e("span",{class:"hljs-attr"},'"status"'),t(": "),e("span",{class:"hljs-string"},'"inbox"'),t(`,
|
|
5
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"3EE34828-B43C-4FB2-A721-5151579B08EA"'),t(`,
|
|
6
|
-
`),e("span",{class:"hljs-attr"},'"sender"'),t(": "),e("span",{class:"hljs-string"},'"497a495e-5529-4e46-8feb-2f35e9b85601"'),t(`,
|
|
7
|
-
`),e("span",{class:"hljs-attr"},'"subject"'),t(": "),e("span",{class:"hljs-string"},'"You were mentioned in articles"'),t(`,
|
|
8
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"\\nHello admin@example.com,\\n\\rijk@directus.io has mentioned you in a comment:\\n\\n> Hello <em>admin@example.com</em>!\\n\\n<a href=\\"http://localhost:8080/admin/content/articles/1\\">Click here to view.</a>\\n"'),t(`,
|
|
9
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),t(": "),e("span",{class:"hljs-string"},'"articles"'),t(`,
|
|
10
|
-
`),e("span",{class:"hljs-attr"},'"item"'),t(": "),e("span",{class:"hljs-string"},'"1"'),t(`
|
|
11
|
-
}
|
|
12
|
-
`)])])])],-1),m=e("hr",null,null,-1),g=e("h2",{id:"list-notifications",tabindex:"-1"},[t("List Notifications "),e("a",{class:"header-anchor",href:"#list-notifications"},"#")],-1),b=e("p",null,"List all notifications that exist in Directus.",-1),j={class:"two-up"},y={class:"left"},x=e("h3",{id:"query-parameters",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),q=t("Supports all "),E=t("global query parameters"),v=t("."),w=e("h3",{id:"returns",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")],-1),T=t("An array of up to "),k=t("limit"),P=t(),R=e("a",{href:"#the-notification-object"},"notification objects",-1),S=t(". If no items are available, data will be an empty array."),N={class:"right"},A=e("h3",{id:"rest-api",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),C=e("pre",null,[e("code",null,`GET /notifications
|
|
13
|
-
SEARCH /notifications
|
|
14
|
-
`)],-1),L=t("Learn more about SEARCH ->"),D=e("h3",{id:"graphql",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")],-1),O=e("pre",null,[e("code",null,`POST /graphql/system
|
|
15
|
-
`)],-1),Q=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),t(` {
|
|
16
|
-
notifications: [directus_notifications]
|
|
17
|
-
}
|
|
18
|
-
`)])],-1),I=e("h5",{id:"example",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example"},"#")],-1),H=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),t(` {
|
|
19
|
-
notifications {
|
|
20
|
-
id
|
|
21
|
-
recipient
|
|
22
|
-
subject
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`)])],-1),B=e("hr",null,null,-1),M=e("h2",{id:"retrieve-a-notification",tabindex:"-1"},[t("Retrieve a notification "),e("a",{class:"header-anchor",href:"#retrieve-a-notification"},"#")],-1),G=e("p",null,"List an existing notification by primary key.",-1),U={class:"two-up"},Y={class:"left"},V=e("h3",{id:"query-parameters-1",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-1"},"#")],-1),F=t("Supports all "),W=t("global query parameters"),Z=t("."),z=e("h3",{id:"returns-1",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-1"},"#")],-1),J=e("p",null,[t("Returns the requested "),e("a",{href:"#the-notification-object"},"notification object"),t(".")],-1),K=e("div",{class:"right"},[e("h3",{id:"rest-api-1",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-1"},"#")]),e("pre",null,[e("code",null,`GET /notifications/:id
|
|
26
|
-
`)]),e("h5",{id:"example-1",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-1"},"#")]),e("pre",null,[e("code",null,`GET /notifications/42
|
|
27
|
-
`)]),e("h3",{id:"graphql-1",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-1"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
28
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),t(` {
|
|
29
|
-
notifications_by_id(id:`),e("span",{class:"hljs-literal"}," ID"),t(`!): directus_notifications
|
|
30
|
-
}
|
|
31
|
-
`)])]),e("h5",{id:"example-2",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),t(` {
|
|
32
|
-
notifications_by_id(id: `),e("span",{class:"hljs-number"},"42"),t(`) {
|
|
33
|
-
id
|
|
34
|
-
sender
|
|
35
|
-
recipient
|
|
36
|
-
message
|
|
37
|
-
subject
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`)])])],-1),X=e("hr",null,null,-1),$=e("h2",{id:"create-a-notification",tabindex:"-1"},[t("Create a Notification "),e("a",{class:"header-anchor",href:"#create-a-notification"},"#")],-1),ee=e("p",null,"Create a new notification.",-1),te={class:"two-up"},se={class:"left"},ae=e("h3",{id:"query-parameters-2",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),ne=t("Supports all "),ie=t("global query parameters"),le=t("."),oe=e("h3",{id:"request-body",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")],-1),re=e("p",null,[t("A partial "),e("a",{href:"#the-notification-object"},"notification object"),t(".")],-1),ce=e("h3",{id:"returns-2",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),he=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),t(" for the created notification.")],-1),de=e("div",{class:"right"},[e("h3",{id:"rest-api-2",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`POST /notifications
|
|
41
|
-
`)]),e("h5",{id:"example-3",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /notifications"),t(`
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`,
|
|
45
|
-
`),e("span",{class:"hljs-attr"},'"subject"'),t(": "),e("span",{class:"hljs-string"},'"Hi there!"'),t(`
|
|
46
|
-
}
|
|
47
|
-
`)])]),e("h3",{id:"graphql-2",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
48
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
49
|
-
create_notifications_item(data: create_directus_notifications_input!): directus_notifications
|
|
50
|
-
}
|
|
51
|
-
`)])]),e("h5",{id:"example-4",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
52
|
-
create_notifications_item(data: { recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(", subject: "),e("span",{class:"hljs-string"},'"Hi there!"'),t(` }) {
|
|
53
|
-
id
|
|
54
|
-
recipient
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`)])])],-1),pe=e("hr",null,null,-1),ue=e("h2",{id:"create-multiple-notifications",tabindex:"-1"},[t("Create Multiple Notifications "),e("a",{class:"header-anchor",href:"#create-multiple-notifications"},"#")],-1),fe=e("p",null,"Create multiple new notifications.",-1),_e={class:"two-up"},me={class:"left"},ge=e("h3",{id:"query-parameters-3",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),be=t("Supports all "),je=t("global query parameters"),ye=t("."),xe=e("h3",{id:"request-body-1",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-1"},"#")],-1),qe=e("p",null,[t("An array of partial "),e("a",{href:"#the-notification-object"},"notification objects"),t(".")],-1),Ee=e("h3",{id:"returns-3",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),ve=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),t(" for the created notification.")],-1),we=e("div",{class:"right"},[e("h3",{id:"rest-api-3",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`POST /notifications
|
|
58
|
-
`)]),e("h5",{id:"example-5",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /notifications"),t(`
|
|
59
|
-
|
|
60
|
-
[
|
|
61
|
-
{
|
|
62
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),t(": "),e("span",{class:"hljs-string"},'"directus_files"'),t(`,
|
|
63
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`,
|
|
64
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"Hi there! You should check out these files"'),t(`
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),t(": "),e("span",{class:"hljs-string"},'"articles"'),t(`,
|
|
68
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`,
|
|
69
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"Hi there! You should check out these articles"'),t(`
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
`)])]),e("h3",{id:"graphql-3",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
73
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
74
|
-
create_notifications_items(data: [create_directus_notifications_input!]!): [directus_notifications]
|
|
75
|
-
}
|
|
76
|
-
`)])]),e("h5",{id:"example-6",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
77
|
-
create_notifications_items(
|
|
78
|
-
data: [
|
|
79
|
-
{
|
|
80
|
-
collection: `),e("span",{class:"hljs-string"},'"directus_files"'),t(`
|
|
81
|
-
recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`
|
|
82
|
-
message: `),e("span",{class:"hljs-string"},'"Hi there! You should check out these files"'),t(`
|
|
83
|
-
}
|
|
84
|
-
{
|
|
85
|
-
collection: `),e("span",{class:"hljs-string"},'"articles"'),t(`
|
|
86
|
-
recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`
|
|
87
|
-
message: `),e("span",{class:"hljs-string"},'"Hi there! You should check out these articles"'),t(`
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
) {
|
|
91
|
-
id
|
|
92
|
-
recipient
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`)])])],-1),Te=e("hr",null,null,-1),ke=e("h2",{id:"update-a-notification",tabindex:"-1"},[t("Update a Notification "),e("a",{class:"header-anchor",href:"#update-a-notification"},"#")],-1),Pe=e("p",null,"Update an existing notification.",-1),Re=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Email Notifications"),e("p",null,"Emails are only sent when the notification is created. Updated to an existing notification won\u2019t trigger a new notification email to be sent.")],-1),Se={class:"two-up"},Ne={class:"left"},Ae=e("h3",{id:"query-parameters-4",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Ce=t("Supports all "),Le=t("global query parameters"),De=t("."),Oe=e("h3",{id:"request-body-2",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),Qe=e("p",null,[t("A partial "),e("a",{href:"#the-notification-object"},"notification object"),t(".")],-1),Ie=e("h3",{id:"returns-4",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),He=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),t(" for the updated notification.")],-1),Be=e("div",{class:"right"},[e("h3",{id:"rest-api-4",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`PATCH /notifications/:id
|
|
96
|
-
`)]),e("h5",{id:"example-7",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /notifications/34"),t(`
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"This is my updated notification"'),t(`
|
|
100
|
-
}
|
|
101
|
-
`)])]),e("h3",{id:"graphql-4",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
102
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
103
|
-
update_notifications_item(id:`),e("span",{class:"hljs-literal"}," ID"),t(`!, data: update_directus_notifications_input): directus_notifications
|
|
104
|
-
}
|
|
105
|
-
`)])]),e("h5",{id:"example-8",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
106
|
-
update_notifications_item(id: `),e("span",{class:"hljs-number"},"32"),t(", data: { message: "),e("span",{class:"hljs-string"},'"This is my updated notification"'),t(` }) {
|
|
107
|
-
id
|
|
108
|
-
message
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
`)])])],-1),Me=e("hr",null,null,-1),Ge=e("h2",{id:"update-multiple-notifications",tabindex:"-1"},[t("Update Multiple Notifications "),e("a",{class:"header-anchor",href:"#update-multiple-notifications"},"#")],-1),Ue=e("p",null,"Update multiple existing notifications.",-1),Ye={class:"two-up"},Ve={class:"left"},Fe=e("h3",{id:"query-parameters-5",tabindex:"-1"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),We=t("Supports all "),Ze=t("global query parameters"),ze=t("."),Je=e("h3",{id:"request-body-3",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),Ke=e("div",{class:"definitions"},[e("p",null,[e("code",null,"keys"),t(),e("strong",null,"Required"),e("br"),t(" Array of primary keys of the notifications you\u2019d like to update.")]),e("p",null,[e("code",null,"data"),t(),e("strong",null,"Required"),e("br"),t(" Any of "),e("a",{href:"#the-notification-object"},"the notification object"),t("\u2019s properties.")])],-1),Xe=e("h3",{id:"returns-5",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),$e=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification objects"),t(" for the updated notifications.")],-1),et=e("div",{class:"right"},[e("h3",{id:"rest-api-5",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`PATCH /notifications
|
|
112
|
-
`)]),e("h5",{id:"example-9",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /notifications"),t(`
|
|
113
|
-
|
|
114
|
-
{
|
|
115
|
-
`),e("span",{class:"hljs-attr"},'"keys"'),t(": ["),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"64"),t(`],
|
|
116
|
-
`),e("span",{class:"hljs-attr"},'"data"'),t(`: {
|
|
117
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"Updated message!"'),t(`
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`)])]),e("h3",{id:"graphql-5",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
121
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
122
|
-
update_notifications_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),t(`!]!, data: update_directus_notifications_input): [directus_notifications]
|
|
123
|
-
}
|
|
124
|
-
`)])]),e("h5",{id:"example-10",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
125
|
-
update_notifications_items(ids: [`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"64"),t("], data: { message: "),e("span",{class:"hljs-string"},'"Updated message!"'),t(` }) {
|
|
126
|
-
id
|
|
127
|
-
recipient
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
`)])])],-1),tt=e("hr",null,null,-1),st=e("h2",{id:"delete-a-notification",tabindex:"-1"},[t("Delete a Notification "),e("a",{class:"header-anchor",href:"#delete-a-notification"},"#")],-1),at=e("p",null,"Delete an existing notification.",-1),nt=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"returns-6",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-6",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`DELETE /notifications/:id
|
|
131
|
-
`)]),e("h5",{id:"example-11",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-11"},"#")]),e("pre",null,[e("code",null,`DELETE /notifications/34
|
|
132
|
-
`)]),e("h3",{id:"graphql-6",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
133
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
134
|
-
delete_notifications_item(id:`),e("span",{class:"hljs-literal"}," ID"),t(`!): delete_one
|
|
135
|
-
}
|
|
136
|
-
`)])]),e("h5",{id:"example-12",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-12"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
137
|
-
delete_notifications_item(id: `),e("span",{class:"hljs-number"},"32"),t(`) {
|
|
138
|
-
id
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
`)])])])],-1),it=e("hr",null,null,-1),lt=e("h2",{id:"delete-multiple-notifications",tabindex:"-1"},[t("Delete Multiple Notifications "),e("a",{class:"header-anchor",href:"#delete-multiple-notifications"},"#")],-1),ot=e("p",null,"Delete multiple existing notifications.",-1),rt=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"request-body-4",tabindex:"-1"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-4"},"#")]),e("p",null,"An array of notification primary keys"),e("h3",{id:"returns-7",tabindex:"-1"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-7"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-7",tabindex:"-1"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),e("pre",null,[e("code",null,`DELETE /notifications
|
|
142
|
-
`)]),e("h5",{id:"example-13",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-13"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// DELETE /notifications"),t(`
|
|
143
|
-
[`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"251"),t(", "),e("span",{class:"hljs-number"},"810"),t(`]
|
|
144
|
-
`)])]),e("h3",{id:"graphql-7",tabindex:"-1"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-7"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
145
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
146
|
-
delete_notifications_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),t(`!]!): delete_many
|
|
147
|
-
}
|
|
148
|
-
`)])]),e("h5",{id:"example-14",tabindex:"-1"},[t("Example "),e("a",{class:"header-anchor",href:"#example-14"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
149
|
-
delete_notifications_items(ids: [`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"251"),t(", "),e("span",{class:"hljs-number"},"810"),t(`]) {
|
|
150
|
-
ids
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`)])])])],-1),ut="Notifications",ft=!1,_t="page-reference",mt={name:"notifications",setup(ct,{expose:o}){const i={title:"Notifications",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:i}),(ht,dt)=>{const a=l("router-link"),r=l("docs-wrapper");return c(),h(r,{frontmatter:i},{default:s(()=>[e("div",d,[p,u,f,_,m,g,b,e("div",j,[e("div",y,[x,e("p",null,[q,n(a,{to:"/docs/reference/query"},{default:s(()=>[E]),_:1}),v]),w,e("p",null,[T,n(a,{to:"/docs/reference/query/#limit"},{default:s(()=>[k]),_:1}),P,R,S])]),e("div",N,[A,C,e("p",null,[n(a,{to:"/docs/reference/introduction/#search-http-method"},{default:s(()=>[L]),_:1})]),D,O,Q,I,H])]),B,M,G,e("div",U,[e("div",Y,[V,e("p",null,[F,n(a,{to:"/docs/reference/query"},{default:s(()=>[W]),_:1}),Z]),z,J]),K]),X,$,ee,e("div",te,[e("div",se,[ae,e("p",null,[ne,n(a,{to:"/docs/reference/query"},{default:s(()=>[ie]),_:1}),le]),oe,re,ce,he]),de]),pe,ue,fe,e("div",_e,[e("div",me,[ge,e("p",null,[be,n(a,{to:"/docs/reference/query"},{default:s(()=>[je]),_:1}),ye]),xe,qe,Ee,ve]),we]),Te,ke,Pe,Re,e("div",Se,[e("div",Ne,[Ae,e("p",null,[Ce,n(a,{to:"/docs/reference/query"},{default:s(()=>[Le]),_:1}),De]),Oe,Qe,Ie,He]),Be]),Me,Ge,Ue,e("div",Ye,[e("div",Ve,[Fe,e("p",null,[We,n(a,{to:"/docs/reference/query"},{default:s(()=>[Ze]),_:1}),ze]),Je,Ke,Xe,$e]),et]),tt,st,at,nt,it,lt,ot,rt])]),_:1})}}};export{mt as default,ft as modularExtension,_t as pageClass,ut as title};
|