@directus/app 9.14.1 → 9.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/dist/assets/@directus_extensions-sdk.d2501ce1.entry.js +1 -0
  2. package/dist/assets/{accounts.40ab36c1.js → accounts.d4221901.js} +1 -1
  3. package/dist/assets/{active-line.b531d8e7.js → active-line.fa69c527.js} +1 -1
  4. package/dist/assets/{activity-log.9449feec.js → activity-log.0479877c.js} +1 -1
  5. package/dist/assets/activity.941cbf2b.js +80 -0
  6. package/dist/assets/{af.b15e3fdc.js → af.ffe603d7.js} +0 -0
  7. package/dist/assets/{apl.091e05c0.js → apl.bd1aa660.js} +1 -1
  8. package/dist/assets/ar-SA.52ee85f9.js +1 -0
  9. package/dist/assets/{ar-dz.5481d0db.js → ar-dz.923ce4b9.js} +0 -0
  10. package/dist/assets/{ar-kw.77cb7412.js → ar-kw.7f81a6f6.js} +0 -0
  11. package/dist/assets/{ar-ly.d2852686.js → ar-ly.eeb6eb8f.js} +0 -0
  12. package/dist/assets/{ar-ma.6b2052c4.js → ar-ma.edaad637.js} +0 -0
  13. package/dist/assets/{ar-sa.0ce4896b.js → ar-sa.a955cf78.js} +0 -0
  14. package/dist/assets/{ar-tn.0075ee1e.js → ar-tn.0bd79035.js} +0 -0
  15. package/dist/assets/{ar.01c8813a.js → ar.dfbee566.js} +0 -0
  16. package/dist/assets/{architecture.9e90b6f3.js → architecture.ddda2484.js} +1 -1
  17. package/dist/assets/{asciiarmor.72b1d474.js → asciiarmor.61a25d0a.js} +1 -1
  18. package/dist/assets/{asn.1.64b438d1.js → asn.1.f93e21f0.js} +1 -1
  19. package/dist/assets/{asterisk.2d23826f.js → asterisk.c2e02425.js} +1 -1
  20. package/dist/assets/authentication.d5cd539e.js +73 -0
  21. package/dist/assets/{autorefresh.65071be2.js → autorefresh.1451dfba.js} +1 -1
  22. package/dist/assets/{aws.6652a1fd.js → aws.65b39fe1.js} +1 -1
  23. package/dist/assets/{az.839e5437.js → az.ac368cbb.js} +0 -0
  24. package/dist/assets/{backing-directus.02c28d29.js → backing-directus.2809dd5a.js} +1 -1
  25. package/dist/assets/{bg.71bbc37d.js → bg.63a91564.js} +0 -0
  26. package/dist/assets/{bn.28eb3677.js → bn.a1d9b410.js} +0 -0
  27. package/dist/assets/{brainfuck.cb084ebc.js → brainfuck.c3dcf390.js} +1 -1
  28. package/dist/assets/{bs.b0570362.js → bs.92a16737.js} +0 -0
  29. package/dist/assets/{ca.d17b0b48.js → ca.31d0764d.js} +0 -0
  30. package/dist/assets/{cli.863ef0d2.js → cli.6ee7cfc0.js} +1 -1
  31. package/dist/assets/{cli.6e61515e.js → cli.fce4fcbe.js} +2 -2
  32. package/dist/assets/{clike.c67024f2.js → clike.7fa1545d.js} +1 -1
  33. package/dist/assets/{clojure.4409f83f.js → clojure.7c6780eb.js} +1 -1
  34. package/dist/assets/{cloudron.a348537b.js → cloudron.735aeaf5.js} +1 -1
  35. package/dist/assets/{cmake.2f7d66e8.js → cmake.af88bf9d.js} +1 -1
  36. package/dist/assets/{cobol.1d3d945c.js → cobol.6114e2a0.js} +1 -1
  37. package/dist/assets/codebase-overview.3de1bbdc.js +1 -0
  38. package/dist/assets/{coffeescript.7dbfeb38.js → coffeescript.39626c6c.js} +1 -1
  39. package/dist/assets/collections.11aae4a8.js +106 -0
  40. package/dist/assets/{collections.60e4b448.js → collections.e06a8b1f.js} +1 -1
  41. package/dist/assets/{commonlisp.79d346a3.js → commonlisp.117ff8ed.js} +1 -1
  42. package/dist/assets/{config-options.8e2d8e17.js → config-options.9b79feaf.js} +15 -15
  43. package/dist/assets/{content.003d7d7c.js → content.07b42fc5.js} +1 -1
  44. package/dist/assets/creating-extensions.054f4231.js +13 -0
  45. package/dist/assets/{crystal.6f97295f.js → crystal.296a2a42.js} +1 -1
  46. package/dist/assets/cs-CZ.5045b098.js +1 -0
  47. package/dist/assets/{cs.23d06f43.js → cs.021e612f.js} +0 -0
  48. package/dist/assets/{css.87d5fc8d.js → css.d2d076a2.js} +1 -1
  49. package/dist/assets/{cy.3b5a8132.js → cy.abf1b7d8.js} +0 -0
  50. package/dist/assets/{cypher.b46e268d.js → cypher.829617f7.js} +1 -1
  51. package/dist/assets/{d.0277a0cc.js → d.b589edc9.js} +1 -1
  52. package/dist/assets/{da.18bc0ec4.js → da.230eee14.js} +0 -0
  53. package/dist/assets/{dart.fd756766.js → dart.291e78bf.js} +1 -1
  54. package/dist/assets/{data-model.086edd1e.js → data-model.eb5f7e27.js} +1 -1
  55. package/dist/assets/{data-sharing.27afa5ee.js → data-sharing.8b80b0f4.js} +1 -1
  56. package/dist/assets/de-DE.5535b278.js +1 -0
  57. package/dist/assets/{de-at.a1f7dd1d.js → de-at.9a82fa84.js} +0 -0
  58. package/dist/assets/{de.a8c4aad1.js → de.1f4f2676.js} +0 -0
  59. package/dist/assets/{diff.1ed63843.js → diff.29062812.js} +1 -1
  60. package/dist/assets/{digitalocean-app-platform.aff2a50b.js → digitalocean-app-platform.62c81303.js} +1 -1
  61. package/dist/assets/{display-templates.d8e93a19.js → display-templates.2bbee0eb.js} +1 -1
  62. package/dist/assets/{displays.e528abde.js → displays.037994a0.js} +9 -9
  63. package/dist/assets/{django.afa30018.js → django.e6170171.js} +1 -1
  64. package/dist/assets/{docker.6f265c46.js → docker.1f4e694b.js} +1 -1
  65. package/dist/assets/{dockerfile.91c6378e.js → dockerfile.d4dec723.js} +1 -1
  66. package/dist/assets/{documentation.ad1fdaf2.js → documentation.60e724e3.js} +1 -1
  67. package/dist/assets/{dtd.8b391952.js → dtd.1c436e67.js} +1 -1
  68. package/dist/assets/{dylan.5532ec69.js → dylan.0b60e784.js} +1 -1
  69. package/dist/assets/{ebnf.f179e348.js → ebnf.8c391bd9.js} +1 -1
  70. package/dist/assets/{ecl.a37bdc2f.js → ecl.2b2e1aaf.js} +1 -1
  71. package/dist/assets/{eiffel.883e1bfb.js → eiffel.2f0f7a76.js} +1 -1
  72. package/dist/assets/el-GR.60ea8245.js +1 -0
  73. package/dist/assets/{el.fd48dbad.js → el.d2f58204.js} +0 -0
  74. package/dist/assets/{elm.c40484aa.js → elm.c663885f.js} +1 -1
  75. package/dist/assets/{email-templates.2bdb87a6.js → email-templates.062d08d1.js} +1 -1
  76. package/dist/assets/{en-au.1268cbf1.js → en-au.c1303a25.js} +0 -0
  77. package/dist/assets/{en-gb.0165e0db.js → en-gb.e85a2393.js} +0 -0
  78. package/dist/assets/{en-nz.01361cd3.js → en-nz.e8e12a64.js} +0 -0
  79. package/dist/assets/endpoints.b6214ea4.js +27 -0
  80. package/dist/assets/{eo.7ba085ab.js → eo.af51bcc8.js} +0 -0
  81. package/dist/assets/{erlang.60963eb0.js → erlang.c430e715.js} +1 -1
  82. package/dist/assets/es-419.ca94d216.js +1 -0
  83. package/dist/assets/es-CL.ae584c00.js +1 -0
  84. package/dist/assets/es-MX.059cc750.js +1 -0
  85. package/dist/assets/{es-us.8d0a5dcc.js → es-us.2395a850.js} +0 -0
  86. package/dist/assets/{es.33209895.js → es.90080285.js} +0 -0
  87. package/dist/assets/{et.d879b698.js → et.b4d59d2c.js} +0 -0
  88. package/dist/assets/{eu.bfb2c22e.js → eu.85a86bfb.js} +0 -0
  89. package/dist/assets/{extensions.8d3df212.js → extensions.0f9a4545.js} +1 -1
  90. package/dist/assets/{fa.d9f705ee.js → fa.b477e584.js} +0 -0
  91. package/dist/assets/{factor.6c5ee333.js → factor.5396263e.js} +1 -1
  92. package/dist/assets/faq.c134fb00.js +2 -0
  93. package/dist/assets/{fcl.8e18cfdc.js → fcl.bd7fcca2.js} +1 -1
  94. package/dist/assets/{fi.5a2e9662.js → fi.7a66a1a3.js} +0 -0
  95. package/dist/assets/fields.2c2cc037.js +135 -0
  96. package/dist/assets/{file-library.a4de4015.js → file-library.92f387e2.js} +1 -1
  97. package/dist/assets/files.1d250203.js +189 -0
  98. package/dist/assets/filter-rules.6cc70dd4.js +76 -0
  99. package/dist/assets/{filters.2cb82fd9.js → filters.0ef5a5ed.js} +1 -1
  100. package/dist/assets/{flows.f378a262.js → flows.03ed1b32.js} +15 -15
  101. package/dist/assets/flows.19c6599f.js +172 -0
  102. package/dist/assets/{folders.fa66a5ce.js → folders.e417fd8b.js} +33 -33
  103. package/dist/assets/forth.f0713a66.js +1 -0
  104. package/dist/assets/{fortran.ac24d46b.js → fortran.7ecc20d7.js} +1 -1
  105. package/dist/assets/fr-CA.6b485ca2.js +1 -0
  106. package/dist/assets/{fr-ca.cd8c81b9.js → fr-ca.d550f5bd.js} +0 -0
  107. package/dist/assets/{fr-ch.d9522a23.js → fr-ch.96feab2f.js} +0 -0
  108. package/dist/assets/{fr.56b3c7ac.js → fr.cc2f5568.js} +0 -0
  109. package/dist/assets/{gas.f99de41f.js → gas.6eb675a6.js} +1 -1
  110. package/dist/assets/{gcp.6c61b39e.js → gcp.293edb91.js} +1 -1
  111. package/dist/assets/{gfm.c3250bc4.js → gfm.5fc5d423.js} +1 -1
  112. package/dist/assets/{gherkin.dd3614b2.js → gherkin.ee0d5535.js} +1 -1
  113. package/dist/assets/{github-ci.04483301.js → github-ci.20236bca.js} +1 -1
  114. package/dist/assets/{gl.addde635.js → gl.1bee5350.js} +0 -0
  115. package/dist/assets/{glossary.6efd77ad.js → glossary.26a7ec6d.js} +1 -1
  116. package/dist/assets/{glossary.485603d9.js → glossary.c947165b.js} +1 -1
  117. package/dist/assets/go.1ec8c07d.js +1 -0
  118. package/dist/assets/{groovy.d1f3a61a.js → groovy.8cf425ea.js} +1 -1
  119. package/dist/assets/{haml.a346df44.js → haml.1cc171d6.js} +1 -1
  120. package/dist/assets/{handlebars.a4eff81f.js → handlebars.4cbb06ff.js} +1 -1
  121. package/dist/assets/{haskell-literate.57a5243e.js → haskell-literate.77348a32.js} +1 -1
  122. package/dist/assets/{haskell.3acf2710.js → haskell.be905e2b.js} +1 -1
  123. package/dist/assets/{haxe.bdf5968b.js → haxe.bb404a52.js} +1 -1
  124. package/dist/assets/{he.343cc1d8.js → he.6f56199f.js} +0 -0
  125. package/dist/assets/{hi.b7726273.js → hi.1ebe75fb.js} +0 -0
  126. package/dist/assets/hooks.619f1e3f.js +60 -0
  127. package/dist/assets/{hr.2709fc3c.js → hr.d0e09cc1.js} +0 -0
  128. package/dist/assets/{htmlembedded.03cf45db.js → htmlembedded.82628379.js} +1 -1
  129. package/dist/assets/{htmlmixed.987f61e9.js → htmlmixed.35e19eba.js} +1 -1
  130. package/dist/assets/{http.a4c95466.js → http.69751e33.js} +1 -1
  131. package/dist/assets/{hu.ec48b74d.js → hu.971007ac.js} +0 -0
  132. package/dist/assets/{hy-am.30c58054.js → hy-am.b000430d.js} +0 -0
  133. package/dist/assets/{id.08bda718.js → id.1d3fb755.js} +0 -0
  134. package/dist/assets/{idl.2fcbfa33.js → idl.e0b6740c.js} +1 -1
  135. package/dist/assets/{iis.e068f41a.js → iis.28211ce4.js} +3 -3
  136. package/dist/assets/{import-export.d334c127.js → import-export.34657c23.js} +1 -1
  137. package/dist/assets/{index.399c0d62.js → index.04367430.js} +1 -1
  138. package/dist/assets/{index.ef3faba8.js → index.04dc39b2.js} +1 -1
  139. package/dist/assets/{index.a8aa4628.js → index.08d36aec.js} +1 -1
  140. package/dist/assets/index.0c5f689d.js +1 -0
  141. package/dist/assets/{index.ee22568a.js → index.10342721.js} +1 -1
  142. package/dist/assets/{index.a9b73f2c.js → index.12c9997b.js} +1 -1
  143. package/dist/assets/{index.d653bbf2.js → index.194e7d3a.js} +1 -1
  144. package/dist/assets/{index.fa57ca3f.js → index.1cb735f8.js} +1 -1
  145. package/dist/assets/{index.2598f40b.js → index.1f7015c4.js} +1 -1
  146. package/dist/assets/{index.4fbaebb7.js → index.21ae1ab1.js} +1 -1
  147. package/dist/assets/{index.55a12dfb.js → index.2313e86e.js} +1 -1
  148. package/dist/assets/{index.eedadecd.js → index.253ffe45.js} +1 -1
  149. package/dist/assets/{index.8493b2e7.js → index.2590162c.js} +1 -1
  150. package/dist/assets/{index.16acfb90.js → index.26114f20.js} +1 -1
  151. package/dist/assets/{index.2926879f.js → index.2bdd4a58.js} +1 -1
  152. package/dist/assets/{index.456ff0bd.js → index.2d140ddc.js} +1 -1
  153. package/dist/assets/{index.10f90411.js → index.2f25c8b2.js} +1 -1
  154. package/dist/assets/{index.1b44d300.js → index.30caab70.js} +1 -1
  155. package/dist/assets/{index.93059741.js → index.333cd330.js} +1 -1
  156. package/dist/assets/{index.b67f8116.js → index.35594495.js} +1 -1
  157. package/dist/assets/{index.bce5f50d.js → index.387eb2dc.js} +1 -1
  158. package/dist/assets/{index.85b9f847.js → index.394d9852.js} +1 -1
  159. package/dist/assets/{index.7fe984e4.js → index.3980c835.js} +1 -1
  160. package/dist/assets/{index.d8fe2ade.js → index.3c18e01d.js} +1 -1
  161. package/dist/assets/index.3d147166.css +1 -0
  162. package/dist/assets/{index.d0fe3776.js → index.3d6e1b82.js} +1 -1
  163. package/dist/assets/{index.4e2109fe.js → index.42ec5578.js} +1 -1
  164. package/dist/assets/{index.ffc6c203.js → index.48185f5e.js} +1 -1
  165. package/dist/assets/{index.b5ed5076.js → index.4d6eeb14.js} +1 -1
  166. package/dist/assets/{index.a5d15d7f.js → index.4e9c64c5.js} +1 -1
  167. package/dist/assets/{index.627523d7.js → index.52f281e8.js} +1 -1
  168. package/dist/assets/{index.5c54c17f.js → index.5319e019.js} +1 -1
  169. package/dist/assets/{index.b702042e.js → index.58118d29.js} +1 -1
  170. package/dist/assets/{index.8a9f2874.js → index.635da0ce.js} +1 -1
  171. package/dist/assets/{index.77260d1d.js → index.69be7734.js} +1 -1
  172. package/dist/assets/{index.3d4cd218.js → index.6b2281ed.js} +1 -1
  173. package/dist/assets/{index.3eda79ec.js → index.6b68033b.js} +1 -1
  174. package/dist/assets/{index.2ec06d14.js → index.6caacd5c.js} +1 -1
  175. package/dist/assets/{index.7b2f54b1.js → index.6d700d45.js} +1 -1
  176. package/dist/assets/{index.4100d6f0.js → index.73d43dbd.js} +1 -1
  177. package/dist/assets/{index.7fd5e2a0.js → index.74342718.js} +1 -1
  178. package/dist/assets/{index.dc71b91a.js → index.767cba0b.js} +0 -0
  179. package/dist/assets/{index.ebb444cf.js → index.7d0d93ea.js} +1 -1
  180. package/dist/assets/{index.af021d8a.js → index.7fbf62c1.js} +1 -1
  181. package/dist/assets/{index.0e101049.js → index.83a348b7.js} +1 -1
  182. package/dist/assets/{index.a40592f5.js → index.83b25f0c.js} +1 -1
  183. package/dist/assets/{index.a3e085ea.js → index.8533e926.js} +1 -1
  184. package/dist/assets/{index.663b73a9.js → index.8f7e9b41.js} +1 -1
  185. package/dist/assets/{index.c35b11e6.js → index.91518e0b.js} +1 -1
  186. package/dist/assets/index.92b1a294.js +26 -0
  187. package/dist/assets/{index.c9fb33ab.js → index.9433a729.js} +1 -1
  188. package/dist/assets/{index.28aa754b.js → index.95cd1641.js} +1 -1
  189. package/dist/assets/{index.a9faa4e8.js → index.9ad498c7.js} +1 -1
  190. package/dist/assets/{index.94cf6fb4.js → index.a2f93b9e.js} +1 -1
  191. package/dist/assets/{index.cef58c9b.js → index.a8104962.js} +1 -1
  192. package/dist/assets/{index.6f0b7179.js → index.aa4487eb.js} +1 -1
  193. package/dist/assets/{index.56188e3b.js → index.abaf9f38.js} +1 -1
  194. package/dist/assets/{index.bfd23a9c.js → index.acd6a1b3.js} +1 -1
  195. package/dist/assets/{index.1b3cf886.js → index.ad621c47.js} +1 -1
  196. package/dist/assets/{index.e6715953.js → index.afa57f01.js} +1 -1
  197. package/dist/assets/{index.43fa9898.js → index.afc521b9.js} +1 -1
  198. package/dist/assets/{index.0295bc4b.js → index.b08b6d41.js} +1 -1
  199. package/dist/assets/{index.55d799e2.js → index.c2bf7561.js} +0 -0
  200. package/dist/assets/{index.1a65b37a.js → index.c33d8828.js} +1 -1
  201. package/dist/assets/{index.98713a56.js → index.c6325474.js} +1 -1
  202. package/dist/assets/{index.4ef25ded.js → index.c7c79d76.js} +1 -1
  203. package/dist/assets/{index.a71fa74c.js → index.c87077b2.js} +1 -1
  204. package/dist/assets/{index.5f5bf5b9.js → index.caf59a5f.js} +1 -1
  205. package/dist/assets/{index.7249f524.js → index.cbb1e45f.js} +1 -1
  206. package/dist/assets/index.d3abd983.js +1 -0
  207. package/dist/assets/{index.c6e501ec.js → index.d6ab24fc.js} +1 -1
  208. package/dist/assets/{index.20b34242.js → index.da01b78c.js} +1 -1
  209. package/dist/assets/{index.6f497914.css → index.dbec7bd8.css} +1 -1
  210. package/dist/assets/{index.c5266851.js → index.dd9b2ae1.js} +1 -1
  211. package/dist/assets/{index.402d83c0.js → index.deebe6ae.js} +1 -1
  212. package/dist/assets/{index.6bebaca7.js → index.df8ed86f.js} +1 -1
  213. package/dist/assets/{index.07257d01.js → index.e01833a4.js} +1 -1
  214. package/dist/assets/{index.9b60cfa4.js → index.e0c46d7a.js} +1 -1
  215. package/dist/assets/index.e2330f33.entry.js +3403 -0
  216. package/dist/assets/{index.7f906cfe.js → index.e2566961.js} +1 -1
  217. package/dist/assets/{index.e3dcc63c.js → index.e4bd37ab.js} +1 -1
  218. package/dist/assets/{index.d060d5f6.js → index.e811b103.js} +1 -1
  219. package/dist/assets/{index.d9285c22.js → index.ea000c09.js} +1 -1
  220. package/dist/assets/{index.cc6496a8.js → index.ea5cafa4.js} +1 -1
  221. package/dist/assets/{index.98ee194a.js → index.ec029011.js} +1 -1
  222. package/dist/assets/{index.c2e6211e.js → index.ede50f80.js} +1 -1
  223. package/dist/assets/{index.b43832c6.js → index.ee70e4bb.js} +1 -1
  224. package/dist/assets/{index.cda6c2d6.js → index.ef0a3f30.js} +1 -1
  225. package/dist/assets/{index.175a81f8.js → index.ef5e93b4.js} +1 -1
  226. package/dist/assets/{index.14c720ba.js → index.fcdc2b58.js} +1 -1
  227. package/dist/assets/{index.60d33aa1.js → index.ffd92bd2.js} +1 -1
  228. package/dist/assets/{input-rich-text-html.172a38cb.css → input-rich-text-html.0cdbc326.css} +1 -1
  229. package/dist/assets/{input-rich-text-html.75413785.js → input-rich-text-html.40c3be93.js} +33 -33
  230. package/dist/assets/{insights.b3ba896c.js → insights.9f2c43c6.js} +1 -1
  231. package/dist/assets/{installation.2025f88b.js → installation.76fec85e.js} +1 -1
  232. package/dist/assets/{interfaces.606c790c.js → interfaces.a65a79df.js} +8 -8
  233. package/dist/assets/{introduction.527c3465.js → introduction.32669a19.js} +1 -1
  234. package/dist/assets/{introduction.41a72fb0.js → introduction.e626ca8d.js} +1 -1
  235. package/dist/assets/{introduction.ecd17b88.js → introduction.e73b1c6c.js} +1 -1
  236. package/dist/assets/introduction.eda1c2c4.js +90 -0
  237. package/dist/assets/{is.b36ebc71.js → is.655c0831.js} +0 -0
  238. package/dist/assets/it-IT.c08c5546.js +1 -0
  239. package/dist/assets/{it.3cadf6ad.js → it.fca4d703.js} +0 -0
  240. package/dist/assets/{items.d1f658a9.js → items.ee26fa45.js} +1 -1
  241. package/dist/assets/items.f5cdbca8.js +136 -0
  242. package/dist/assets/{ja.df6f4b08.js → ja.0d51d279.js} +0 -0
  243. package/dist/assets/{javascript-hint.db799360.js → javascript-hint.ac25161a.js} +1 -1
  244. package/dist/assets/{javascript.46c46918.js → javascript.4a425e67.js} +1 -1
  245. package/dist/assets/{jinja2.71e29364.js → jinja2.3501ea01.js} +1 -1
  246. package/dist/assets/{jsonlint.e8823cb8.js → jsonlint.aae0c1e4.js} +0 -0
  247. package/dist/assets/{jsx.9ae3ca09.js → jsx.0b768eda.js} +1 -1
  248. package/dist/assets/{julia.8b46f23e.js → julia.05487698.js} +1 -1
  249. package/dist/assets/{ka.805bf11c.js → ka.b19061bf.js} +0 -0
  250. package/dist/assets/{kk.a6e57d44.js → kk.f9f646d6.js} +0 -0
  251. package/dist/assets/{ko.08fe68a9.js → ko.bb48e2f9.js} +0 -0
  252. package/dist/assets/{layouts.0aa8d645.js → layouts.e590b93d.js} +9 -9
  253. package/dist/assets/{layouts.14b157dc.js → layouts.fc5fee9f.js} +1 -1
  254. package/dist/assets/{lb.e01f5df5.js → lb.7e51ca06.js} +0 -0
  255. package/dist/assets/{livescript.1c767a4c.js → livescript.d80267df.js} +1 -1
  256. package/dist/assets/{localization.c89061c7.js → localization.998790e9.js} +1 -1
  257. package/dist/assets/{lt.0d291ae5.js → lt.90e26dcd.js} +0 -0
  258. package/dist/assets/{lua.42e69aa3.js → lua.cb506140.js} +1 -1
  259. package/dist/assets/{lv.00399f94.js → lv.c48afa11.js} +0 -0
  260. package/dist/assets/manual.363297f0.js +12 -0
  261. package/dist/assets/{mark-selection.16acf9dc.js → mark-selection.5fc9b3c0.js} +1 -1
  262. package/dist/assets/{match-highlighter.8f0791ef.js → match-highlighter.a2cc9da6.js} +1 -1
  263. package/dist/assets/{mathematica.6d38a8bc.js → mathematica.a00b79ed.js} +1 -1
  264. package/dist/assets/{mbox.04641caf.js → mbox.c0779dbf.js} +1 -1
  265. package/dist/assets/migrations.5af99cef.js +19 -0
  266. package/dist/assets/{mirc.a748cdbe.js → mirc.85bf44d0.js} +1 -1
  267. package/dist/assets/{mk.5d734698.js → mk.f9301845.js} +0 -0
  268. package/dist/assets/{mllike.78996bae.js → mllike.d68491d9.js} +1 -1
  269. package/dist/assets/{modelica.e521b192.js → modelica.e3e6bf94.js} +1 -1
  270. package/dist/assets/{modules.9b5ee510.js → modules.2403c678.js} +8 -8
  271. package/dist/assets/{ms.d459f765.js → ms.bea4163e.js} +0 -0
  272. package/dist/assets/{mscgen.4b8f9009.js → mscgen.9bdcf1c0.js} +1 -1
  273. package/dist/assets/{multiplex.c8ef0fcd.js → multiplex.febfca78.js} +1 -1
  274. package/dist/assets/{mumps.44c6f7dd.js → mumps.dfb1f9e8.js} +1 -1
  275. package/dist/assets/{nb.a3febc82.js → nb.2f4ab1ed.js} +0 -0
  276. package/dist/assets/{ne.afdfe3bf.js → ne.62693259.js} +0 -0
  277. package/dist/assets/{nginx.0aef90d9.js → nginx.871f7d94.js} +1 -1
  278. package/dist/assets/{nl.12cdd5b8.js → nl.a58ee8a1.js} +0 -0
  279. package/dist/assets/{nn.535723b4.js → nn.97ead2b5.js} +0 -0
  280. package/dist/assets/notifications.152d86b7.js +153 -0
  281. package/dist/assets/{nsis.21597a35.js → nsis.2b26c017.js} +1 -1
  282. package/dist/assets/{ntriples.a9ce3eee.js → ntriples.ccbcd275.js} +1 -1
  283. package/dist/assets/{octave.e4e6969c.js → octave.4f220d3d.js} +1 -1
  284. package/dist/assets/operations.9b3b2514.js +169 -0
  285. package/dist/assets/{operations.46679bea.js → operations.f00b8c11.js} +1 -1
  286. package/dist/assets/{overlay.725bd47b.js → overlay.e2046aae.js} +1 -1
  287. package/dist/assets/{overview.3616b560.js → overview.288d5f54.js} +1 -1
  288. package/dist/assets/{overview.6438dc44.js → overview.c3e64ee1.js} +1 -1
  289. package/dist/assets/{overview.3c9f8f3d.js → overview.d2dd9f17.js} +1 -1
  290. package/dist/assets/{oz.439981ca.js → oz.ef269d7e.js} +1 -1
  291. package/dist/assets/{panels.570ee526.js → panels.f1f6334b.js} +7 -7
  292. package/dist/assets/{pascal.e63a97cf.js → pascal.67fc5051.js} +1 -1
  293. package/dist/assets/{pegjs.9b76593b.js → pegjs.f8b94ba6.js} +1 -1
  294. package/dist/assets/{perl.e5aa6f87.js → perl.d078ddf8.js} +1 -1
  295. package/dist/assets/permissions.de41ff3d.js +178 -0
  296. package/dist/assets/{php.d553fa6c.js → php.d5a5503e.js} +1 -1
  297. package/dist/assets/{pig.657ad6df.js → pig.31796bf8.js} +1 -1
  298. package/dist/assets/{pinia.256cc3da.entry.js → pinia.b8e2dbe3.entry.js} +1 -1
  299. package/dist/assets/pl-PL.6e87b518.js +1 -0
  300. package/dist/assets/{pl.86440e6e.js → pl.0bbdb5d7.js} +0 -0
  301. package/dist/assets/plesk.0ef5ab4c.js +27 -0
  302. package/dist/assets/{powershell.d67ba3f4.js → powershell.3fced302.js} +1 -1
  303. package/dist/assets/{presets-bookmarks.522baf53.js → presets-bookmarks.5ef79225.js} +1 -1
  304. package/dist/assets/presets.db317f9f.js +164 -0
  305. package/dist/assets/project-settings.e940a11b.js +1 -0
  306. package/dist/assets/{projects.1ea6a392.js → projects.5cc2ad0c.js} +1 -1
  307. package/dist/assets/{properties.da88b13f.js → properties.e7afe8e8.js} +1 -1
  308. package/dist/assets/{protobuf.4d5afee3.js → protobuf.9c42c0f6.js} +1 -1
  309. package/dist/assets/pt-BR.02851ce6.js +1 -0
  310. package/dist/assets/{pt-PT.fae0fcc3.js → pt-PT.f5bc9b8e.js} +1 -1
  311. package/dist/assets/{pt-br.cc4b694f.js → pt-br.ce7dbf21.js} +0 -0
  312. package/dist/assets/{pt.73886c02.js → pt.0d25d212.js} +0 -0
  313. package/dist/assets/{pug.3f42b721.js → pug.2f69e794.js} +1 -1
  314. package/dist/assets/{puppet.c79d85fc.js → puppet.3ed57a22.js} +1 -1
  315. package/dist/assets/{python.d6ada07e.js → python.a38fec56.js} +1 -1
  316. package/dist/assets/{q.1a68bd88.js → q.712e23f4.js} +1 -1
  317. package/dist/assets/{query.8abea6de.js → query.f187b00c.js} +40 -40
  318. package/dist/assets/{quickstart.75164dd7.js → quickstart.62cbd1cd.js} +8 -8
  319. package/dist/assets/quickstart.8d5c02c2.js +20 -0
  320. package/dist/assets/{r.0c2eb3c2.js → r.e9fe5346.js} +1 -1
  321. package/dist/assets/relations.a37c187d.js +115 -0
  322. package/dist/assets/{relationships.cbc9b1c5.js → relationships.5cda18e3.js} +1 -1
  323. package/dist/assets/{resources.25cb1e34.js → resources.540de098.js} +1 -1
  324. package/dist/assets/revisions.e044726e.js +40 -0
  325. package/dist/assets/{ro.c45ba3d9.js → ro.b6bf02de.js} +0 -0
  326. package/dist/assets/roles.83da9d9c.js +171 -0
  327. package/dist/assets/{rpm.bf07aaab.js → rpm.f8b0779d.js} +1 -1
  328. package/dist/assets/{rst.00e6f3ec.js → rst.a8aa2b98.js} +1 -1
  329. package/dist/assets/ru-RU.1807a64c.js +1 -0
  330. package/dist/assets/{ru.638f4fa4.js → ru.ff0e24aa.js} +0 -0
  331. package/dist/assets/{ruby.a058e7d1.js → ruby.3a80b63e.js} +1 -1
  332. package/dist/assets/running-locally.31538f1b.js +27 -0
  333. package/dist/assets/{runtime-core.esm-bundler.b1f35d24.js → runtime-core.esm-bundler.e3d5f5b7.js} +1 -1
  334. package/dist/assets/{rust.f7ca883b.js → rust.fb8a8f54.js} +1 -1
  335. package/dist/assets/{sas.f9db0ec1.js → sas.305b1134.js} +1 -1
  336. package/dist/assets/{sass.6c26d08e.js → sass.628b9322.js} +1 -1
  337. package/dist/assets/scheme.41e287c8.js +1 -0
  338. package/dist/assets/sdk.297840b0.js +393 -0
  339. package/dist/assets/{security.1963da73.js → security.c18b2f34.js} +1 -1
  340. package/dist/assets/server.d8bb0f4c.js +114 -0
  341. package/dist/assets/settings.65d8a9b5.js +51 -0
  342. package/dist/assets/{settings.a02abd85.js → settings.6c879748.js} +1 -1
  343. package/dist/assets/{shell.b593f3c7.js → shell.a1c6a98e.js} +1 -1
  344. package/dist/assets/{show-hint.252396d2.js → show-hint.4e7cc694.js} +1 -1
  345. package/dist/assets/{sieve.b20bbc45.js → sieve.c3bdd506.js} +1 -1
  346. package/dist/assets/simple.671a83a0.js +1 -0
  347. package/dist/assets/{sk.883343ad.js → sk.ff92f7ac.js} +0 -0
  348. package/dist/assets/{sl.9c1d7271.js → sl.29a98aa1.js} +0 -0
  349. package/dist/assets/{slim.2a6f8eee.js → slim.5bbc59c4.js} +1 -1
  350. package/dist/assets/{smalltalk.9bee6f9b.js → smalltalk.8235f72d.js} +1 -1
  351. package/dist/assets/{smarty.be5c58b8.js → smarty.0f865b35.js} +1 -1
  352. package/dist/assets/solr.2bb7daf5.js +1 -0
  353. package/dist/assets/{soy.0ff77af9.js → soy.e365e851.js} +1 -1
  354. package/dist/assets/{sparql.9f5e3d7d.js → sparql.688ebcb1.js} +1 -1
  355. package/dist/assets/{spreadsheet.062b3700.js → spreadsheet.197a1dda.js} +1 -1
  356. package/dist/assets/{sq.94f802c2.js → sq.74e96d5e.js} +0 -0
  357. package/dist/assets/{sql.a5128e43.js → sql.5b110124.js} +1 -1
  358. package/dist/assets/{sr-cyrl.cf2bde33.js → sr-cyrl.02689042.js} +0 -0
  359. package/dist/assets/{sr.ae9ed7f6.js → sr.d758ce65.js} +0 -0
  360. package/dist/assets/{sso-examples.048b39c5.js → sso-examples.a785e77c.js} +1 -1
  361. package/dist/assets/{sso.70be105f.js → sso.36061e28.js} +6 -6
  362. package/dist/assets/{stex.0331c80e.js → stex.cd97f0ca.js} +1 -1
  363. package/dist/assets/{stylus.6423d65d.js → stylus.2208c6ae.js} +1 -1
  364. package/dist/assets/{support.fce2dba5.js → support.a149b5a4.js} +1 -1
  365. package/dist/assets/{sv.4d9818be.js → sv.424581fc.js} +0 -0
  366. package/dist/assets/{swift.979a2826.js → swift.3a00161d.js} +1 -1
  367. package/dist/assets/{ta-in.58b9457c.js → ta-in.266b59a6.js} +0 -0
  368. package/dist/assets/{tcl.fa1b798c.js → tcl.9a04881b.js} +1 -1
  369. package/dist/assets/{teams.44eb670e.js → teams.86e324d5.js} +1 -1
  370. package/dist/assets/{textile.9dbd9b93.js → textile.d25b7475.js} +1 -1
  371. package/dist/assets/{th.2e10ae87.js → th.503d2b5a.js} +0 -0
  372. package/dist/assets/{themes.e4a7762f.js → themes.3d8b2b78.js} +4 -4
  373. package/dist/assets/{tiddlywiki.fb030aa9.js → tiddlywiki.fd2d8138.js} +1 -1
  374. package/dist/assets/{tiki.2e2e82c0.js → tiki.2ed0ba56.js} +1 -1
  375. package/dist/assets/{toml.0c911c34.js → toml.4b14c94c.js} +1 -1
  376. package/dist/assets/{tornado.466faa98.js → tornado.3b85564f.js} +1 -1
  377. package/dist/assets/{tr.56778c02.js → tr.5f7e8301.js} +0 -0
  378. package/dist/assets/{translation-strings.4ed25965.js → translation-strings.2d32b80f.js} +1 -1
  379. package/dist/assets/{translations.cf2353ca.js → translations.9a0e8cc4.js} +1 -1
  380. package/dist/assets/{triggers.05092cdf.js → triggers.49fa8cca.js} +1 -1
  381. package/dist/assets/{troff.398ba40d.js → troff.f32690ea.js} +1 -1
  382. package/dist/assets/{ttcn-cfg.7c37ebe0.js → ttcn-cfg.b6e34846.js} +1 -1
  383. package/dist/assets/{ttcn.58e768c8.js → ttcn.07218ce0.js} +1 -1
  384. package/dist/assets/{turtle.2b65ee77.js → turtle.f5b50f39.js} +1 -1
  385. package/dist/assets/{twig.0cf35761.js → twig.555b3129.js} +1 -1
  386. package/dist/assets/ubuntu.bd27c73d.js +11 -0
  387. package/dist/assets/{ug.6363a215.js → ug.b3647d71.js} +0 -0
  388. package/dist/assets/{uk.5a9060bd.js → uk.d81573f6.js} +0 -0
  389. package/dist/assets/{upgrades-migrations.9218bbe9.js → upgrades-migrations.e91a553b.js} +1 -1
  390. package/dist/assets/use-sync.dc6ed73f.js +28 -0
  391. package/dist/assets/{user-directory.3daaa818.js → user-directory.8d94737c.js} +1 -1
  392. package/dist/assets/{users-roles-permissions.6e18f7ca.js → users-roles-permissions.d63af527.js} +1 -1
  393. package/dist/assets/users.9e656e05.js +252 -0
  394. package/dist/assets/utilities.4a346b3b.js +74 -0
  395. package/dist/assets/{uz.687d7fbd.js → uz.d1d62588.js} +0 -0
  396. package/dist/assets/{vb.269200a5.js → vb.82528105.js} +1 -1
  397. package/dist/assets/{vbscript.b9c30330.js → vbscript.f3012ea2.js} +1 -1
  398. package/dist/assets/{velocity.a54e5f76.js → velocity.87d27c70.js} +1 -1
  399. package/dist/assets/{verilog.fd6a1be7.js → verilog.b421b7be.js} +1 -1
  400. package/dist/assets/{vhdl.846afe81.js → vhdl.8a45e1a3.js} +1 -1
  401. package/dist/assets/{vi.2bf54ce7.js → vi.7af054bb.js} +0 -0
  402. package/dist/assets/{vue-i18n.ecb0af35.entry.js → vue-i18n.3cc3a25f.entry.js} +1 -1
  403. package/dist/assets/{vue-router.8987d576.entry.js → vue-router.1ad5ff1f.entry.js} +2 -2
  404. package/dist/assets/{vue.74e2af44.js → vue.53eaa62a.js} +1 -1
  405. package/dist/assets/{vue.1f4d921a.entry.js → vue.f73b7cd5.entry.js} +1 -1
  406. package/dist/assets/{vue.runtime.esm-bundler.ac4ff7af.js → vue.runtime.esm-bundler.ee2a778f.js} +1 -1
  407. package/dist/assets/{wast.38b3f34b.js → wast.e82a4b6b.js} +1 -1
  408. package/dist/assets/{webhooks.01ddb390.js → webhooks.235f76fb.js} +1 -1
  409. package/dist/assets/webhooks.256ac76b.js +147 -0
  410. package/dist/assets/{webidl.481665e3.js → webidl.3daa881b.js} +1 -1
  411. package/dist/assets/{xquery.e254ba63.js → xquery.493692d6.js} +1 -1
  412. package/dist/assets/{yacas.fc329640.js → yacas.19e6c7b7.js} +1 -1
  413. package/dist/assets/{yaml-frontmatter.84cccda6.js → yaml-frontmatter.325a0403.js} +1 -1
  414. package/dist/assets/{yaml.3a95e8e9.js → yaml.77f2da41.js} +1 -1
  415. package/dist/assets/{z80.691a0cb9.js → z80.0091ce2a.js} +1 -1
  416. package/dist/assets/zh-CN.5f89875e.js +1 -0
  417. package/dist/assets/{zh-cn.aac76920.js → zh-cn.fea96989.js} +0 -0
  418. package/dist/assets/{zh-tw.d89266cf.js → zh-tw.31f5361f.js} +0 -0
  419. package/dist/index.html +8 -8
  420. package/package.json +133 -119
  421. package/dist/assets/@directus_extensions-sdk.016f1070.entry.js +0 -1
  422. package/dist/assets/activity.fbd319d5.js +0 -80
  423. package/dist/assets/ar-SA.215069dc.js +0 -1
  424. package/dist/assets/authentication.bc20bce5.js +0 -73
  425. package/dist/assets/avatar-placeholder.446bf113.svg +0 -6
  426. package/dist/assets/codebase-overview.b46635f9.js +0 -1
  427. package/dist/assets/collections.80e4a52c.js +0 -106
  428. package/dist/assets/creating-extensions.9a98925a.js +0 -11
  429. package/dist/assets/cs-CZ.a3c83b73.js +0 -1
  430. package/dist/assets/de-DE.350023db.js +0 -1
  431. package/dist/assets/el-GR.103ebf8d.js +0 -1
  432. package/dist/assets/endpoints.2c9172db.js +0 -27
  433. package/dist/assets/es-419.10094709.js +0 -1
  434. package/dist/assets/es-CL.7f44ec7c.js +0 -1
  435. package/dist/assets/es-MX.17370b17.js +0 -1
  436. package/dist/assets/faq.63c79c18.js +0 -2
  437. package/dist/assets/fields.715d4591.js +0 -135
  438. package/dist/assets/files.7c2ccfe2.js +0 -189
  439. package/dist/assets/filter-rules.056b97be.js +0 -76
  440. package/dist/assets/flows.38f60cc8.js +0 -172
  441. package/dist/assets/forth.5d8db187.js +0 -1
  442. package/dist/assets/fr-CA.0e824ae4.js +0 -1
  443. package/dist/assets/go.18ea1afe.js +0 -1
  444. package/dist/assets/hooks.f7efe9af.js +0 -60
  445. package/dist/assets/index.02dcddad.entry.js +0 -3402
  446. package/dist/assets/index.087465cd.css +0 -1
  447. package/dist/assets/index.4254793b.js +0 -26
  448. package/dist/assets/index.63d1f569.js +0 -1
  449. package/dist/assets/introduction.5566b96e.js +0 -90
  450. package/dist/assets/it-IT.58422a56.js +0 -1
  451. package/dist/assets/items.d9c6a0b4.js +0 -136
  452. package/dist/assets/manual.20d730b3.js +0 -12
  453. package/dist/assets/migrations.f13ec64d.js +0 -19
  454. package/dist/assets/notifications.674ee6f9.js +0 -153
  455. package/dist/assets/operations.9995851b.js +0 -169
  456. package/dist/assets/permissions.768d1878.js +0 -178
  457. package/dist/assets/pl-PL.80cfbed6.js +0 -1
  458. package/dist/assets/plesk.b0ee9a9a.js +0 -27
  459. package/dist/assets/presets.d902ebfa.js +0 -164
  460. package/dist/assets/project-settings.1f95b799.js +0 -1
  461. package/dist/assets/pt-BR.40750500.js +0 -1
  462. package/dist/assets/quickstart.9985cb15.js +0 -20
  463. package/dist/assets/relations.9011b2b5.js +0 -115
  464. package/dist/assets/revisions.c90ecb76.js +0 -40
  465. package/dist/assets/roles.22f7aa37.js +0 -171
  466. package/dist/assets/ru-RU.35703ea4.js +0 -1
  467. package/dist/assets/running-locally.ce0a8200.js +0 -26
  468. package/dist/assets/scheme.b19aee0d.js +0 -1
  469. package/dist/assets/sdk.916109ed.js +0 -393
  470. package/dist/assets/server.afec52fc.js +0 -114
  471. package/dist/assets/settings.835be62f.js +0 -51
  472. package/dist/assets/simple.8b298831.js +0 -1
  473. package/dist/assets/solr.49b61be0.js +0 -1
  474. package/dist/assets/ubuntu.35dc97df.js +0 -11
  475. package/dist/assets/use-sync.c0f4dfab.js +0 -28
  476. package/dist/assets/users.4f11a7c5.js +0 -252
  477. package/dist/assets/utilities.0e0d0ace.js +0 -74
  478. package/dist/assets/webhooks.00ee297b.js +0 -147
  479. 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};