@directus/app 9.14.5 → 9.15.0

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 (369) hide show
  1. package/dist/assets/@directus_extensions-sdk.a04f8e82.entry.js +1 -0
  2. package/dist/assets/{accounts.d4221901.js → accounts.8fbf8699.js} +1 -1
  3. package/dist/assets/{active-line.5b9f7d21.js → active-line.37204566.js} +1 -1
  4. package/dist/assets/{activity-log.0479877c.js → activity-log.edaa174f.js} +0 -0
  5. package/dist/assets/{activity.941cbf2b.js → activity.f03e4c50.js} +19 -19
  6. package/dist/assets/{apl.38b1f117.js → apl.aa72adb8.js} +1 -1
  7. package/dist/assets/{architecture.ddda2484.js → architecture.a1dad632.js} +0 -0
  8. package/dist/assets/{asciiarmor.de2f91d3.js → asciiarmor.67b12091.js} +1 -1
  9. package/dist/assets/{asn.1.2671e5d6.js → asn.1.c5725a55.js} +1 -1
  10. package/dist/assets/{asterisk.265fd20b.js → asterisk.0f667406.js} +1 -1
  11. package/dist/assets/{authentication.d5cd539e.js → authentication.a37290ac.js} +14 -14
  12. package/dist/assets/{autorefresh.d7b5f888.js → autorefresh.e9c801fd.js} +1 -1
  13. package/dist/assets/{aws.65b39fe1.js → aws.81dde688.js} +1 -1
  14. package/dist/assets/{backing-directus.2809dd5a.js → backing-directus.877781ff.js} +1 -1
  15. package/dist/assets/bg-BG.8d8c105a.js +1 -0
  16. package/dist/assets/{brainfuck.b5c5b4d3.js → brainfuck.e73b74b2.js} +1 -1
  17. package/dist/assets/{cli.6ee7cfc0.js → cli.acbc6a21.js} +3 -3
  18. package/dist/assets/{cli.fce4fcbe.js → cli.e9c97474.js} +12 -12
  19. package/dist/assets/{clike.f961e135.js → clike.296c3a16.js} +1 -1
  20. package/dist/assets/{clojure.4dd0505f.js → clojure.d9687d7c.js} +1 -1
  21. package/dist/assets/{cloudron.735aeaf5.js → cloudron.ccb9f60b.js} +0 -0
  22. package/dist/assets/{cmake.ed515b1b.js → cmake.c00d972a.js} +1 -1
  23. package/dist/assets/{cobol.fc02ebc2.js → cobol.029a8cf3.js} +1 -1
  24. package/dist/assets/{codebase-overview.3de1bbdc.js → codebase-overview.2867468d.js} +1 -1
  25. package/dist/assets/{coffeescript.4cf3e4f3.js → coffeescript.8aefc36c.js} +1 -1
  26. package/dist/assets/{collections.11aae4a8.js → collections.09fe8eef.js} +20 -20
  27. package/dist/assets/collections.d440e2c1.js +2 -0
  28. package/dist/assets/commonlisp.0b15e5a5.js +1 -0
  29. package/dist/assets/{config-options.9b79feaf.js → config-options.592aab17.js} +15 -15
  30. package/dist/assets/content.d6024fae.js +1 -0
  31. package/dist/assets/{creating-extensions.054f4231.js → creating-extensions.028151bd.js} +5 -5
  32. package/dist/assets/{crystal.de3725fb.js → crystal.e19a3a38.js} +1 -1
  33. package/dist/assets/{cs-CZ.5045b098.js → cs-CZ.ba778ad2.js} +1 -1
  34. package/dist/assets/{css.98183349.js → css.2715c204.js} +1 -1
  35. package/dist/assets/{cypher.c571b7dd.js → cypher.00e9acae.js} +1 -1
  36. package/dist/assets/{d.0053cf91.js → d.5a35cc30.js} +1 -1
  37. package/dist/assets/{da-DK.3c379038.js → da-DK.38409d46.js} +1 -1
  38. package/dist/assets/{dart.62f7758b.js → dart.a107f6c3.js} +1 -1
  39. package/dist/assets/{data-model.eb5f7e27.js → data-model.b806a25a.js} +1 -1
  40. package/dist/assets/de-DE.8d6a71ed.js +1 -0
  41. package/dist/assets/{diff.6acd273a.js → diff.035b0e41.js} +1 -1
  42. package/dist/assets/{digitalocean-app-platform.62c81303.js → digitalocean-app-platform.542bac85.js} +1 -1
  43. package/dist/assets/{display-templates.2bbee0eb.js → display-templates.af38b75d.js} +1 -1
  44. package/dist/assets/{displays.037994a0.js → displays.027c9ffc.js} +4 -4
  45. package/dist/assets/django.771bf030.js +1 -0
  46. package/dist/assets/{docker.1f4e694b.js → docker.ce60011d.js} +5 -5
  47. package/dist/assets/{dockerfile.4721ec68.js → dockerfile.69a18e53.js} +1 -1
  48. package/dist/assets/{documentation.60e724e3.js → documentation.d5124166.js} +0 -0
  49. package/dist/assets/{dtd.1a26b16b.js → dtd.df94c92f.js} +1 -1
  50. package/dist/assets/{dylan.27c31fbb.js → dylan.4f1df30d.js} +1 -1
  51. package/dist/assets/{ebnf.5a331186.js → ebnf.5b209db0.js} +1 -1
  52. package/dist/assets/{ecl.5288ac09.js → ecl.7e72deb8.js} +1 -1
  53. package/dist/assets/{eiffel.d48a1fb6.js → eiffel.9bf84ee8.js} +1 -1
  54. package/dist/assets/{elm.5525d8fa.js → elm.46445fd8.js} +1 -1
  55. package/dist/assets/{email-templates.062d08d1.js → email-templates.cf7de2aa.js} +1 -1
  56. package/dist/assets/en-GB.61c87be5.js +1 -0
  57. package/dist/assets/{endpoints.b6214ea4.js → endpoints.0f025685.js} +2 -2
  58. package/dist/assets/{erlang.acb354b6.js → erlang.50accc38.js} +1 -1
  59. package/dist/assets/{extensions.0f9a4545.js → extensions.27ee4742.js} +4 -4
  60. package/dist/assets/{factor.74747951.js → factor.164d6f9d.js} +1 -1
  61. package/dist/assets/{faq.c134fb00.js → faq.633c25f1.js} +2 -2
  62. package/dist/assets/{fcl.76ae408d.js → fcl.2c3dc0b9.js} +1 -1
  63. package/dist/assets/{fields.2c2cc037.js → fields.47aabeca.js} +24 -24
  64. package/dist/assets/file-library.82e96a16.js +1 -0
  65. package/dist/assets/{files.1d250203.js → files.97dd14f6.js} +34 -34
  66. package/dist/assets/{filter-rules.6cc70dd4.js → filter-rules.f7296d23.js} +6 -6
  67. package/dist/assets/{filters.0ef5a5ed.js → filters.b1397c95.js} +1 -1
  68. package/dist/assets/{flows.19c6599f.js → flows.0173f6d4.js} +36 -36
  69. package/dist/assets/{flows.03ed1b32.js → flows.7116f535.js} +3 -3
  70. package/dist/assets/{folders.e417fd8b.js → folders.0622ae98.js} +32 -32
  71. package/dist/assets/{forth.7ddbc993.js → forth.49d85bf7.js} +1 -1
  72. package/dist/assets/{fortran.d23e51d4.js → fortran.12803734.js} +1 -1
  73. package/dist/assets/fr-CA.87857f82.js +1 -0
  74. package/dist/assets/fr-FR.43594476.js +1 -0
  75. package/dist/assets/{gas.b4331512.js → gas.912b174f.js} +1 -1
  76. package/dist/assets/{gcp.293edb91.js → gcp.8ca78211.js} +2 -2
  77. package/dist/assets/{gfm.9d7d842c.js → gfm.95f7b838.js} +1 -1
  78. package/dist/assets/{gherkin.a2d07b4b.js → gherkin.ef890b31.js} +1 -1
  79. package/dist/assets/{github-ci.20236bca.js → github-ci.40c9d16d.js} +1 -1
  80. package/dist/assets/{glossary.26a7ec6d.js → glossary.38068d72.js} +1 -1
  81. package/dist/assets/{glossary.c947165b.js → glossary.ecc8e7cf.js} +1 -1
  82. package/dist/assets/go.ec5a1c94.js +1 -0
  83. package/dist/assets/{groovy.494f3e93.js → groovy.0da0e846.js} +1 -1
  84. package/dist/assets/{haml.1f9900d3.js → haml.0ccf17af.js} +1 -1
  85. package/dist/assets/{handlebars.9bc2d0c9.js → handlebars.c8657b1d.js} +1 -1
  86. package/dist/assets/{haskell-literate.5435a3e9.js → haskell-literate.8c4cf534.js} +1 -1
  87. package/dist/assets/{haskell.fc63f26c.js → haskell.0a0dfa79.js} +1 -1
  88. package/dist/assets/{haxe.94355408.js → haxe.72a9d4fd.js} +1 -1
  89. package/dist/assets/he-IL.7b11dc5e.js +1 -0
  90. package/dist/assets/{hooks.619f1e3f.js → hooks.5488f34d.js} +4 -4
  91. package/dist/assets/{htmlembedded.6ebc575e.js → htmlembedded.ea02349b.js} +1 -1
  92. package/dist/assets/{htmlmixed.fddfb235.js → htmlmixed.71c55a95.js} +1 -1
  93. package/dist/assets/http.e373a3b6.js +1 -0
  94. package/dist/assets/hu-HU.3c8e2cdc.js +1 -0
  95. package/dist/assets/{idl.87aed386.js → idl.9bc82209.js} +1 -1
  96. package/dist/assets/{iis.28211ce4.js → iis.9e682df0.js} +2 -2
  97. package/dist/assets/{import-export.34657c23.js → import-export.2114c732.js} +2 -2
  98. package/dist/assets/{index.7c8f7bca.js → index.0152af18.js} +1 -1
  99. package/dist/assets/{index.a2d2ff92.js → index.048bfcd4.js} +1 -1
  100. package/dist/assets/{index.e95f45d7.js → index.094d7435.js} +1 -1
  101. package/dist/assets/{index.91fbefea.js → index.15e3c95b.js} +1 -1
  102. package/dist/assets/{index.65c58270.js → index.16102ca4.js} +1 -1
  103. package/dist/assets/{index.04f4681f.js → index.1c2bca61.js} +1 -1
  104. package/dist/assets/{index.e0295cb0.js → index.21e15966.js} +1 -1
  105. package/dist/assets/{index.51da8268.js → index.22cbe4df.js} +1 -1
  106. package/dist/assets/{index.7b1ae0e3.js → index.238d8ccc.js} +1 -1
  107. package/dist/assets/{index.632970d8.js → index.286f3139.js} +1 -1
  108. package/dist/assets/{index.610f817e.js → index.2fa94ca6.js} +1 -1
  109. package/dist/assets/{index.f3a47a7c.js → index.34e50685.js} +1 -1
  110. package/dist/assets/{index.a977949d.js → index.36361e5b.js} +1 -1
  111. package/dist/assets/{index.733f5f4d.js → index.38ca65a8.js} +1 -1
  112. package/dist/assets/{index.f1e5bfe4.js → index.3a449212.js} +1 -1
  113. package/dist/assets/{index.70c01091.js → index.3dbbeee8.js} +1 -1
  114. package/dist/assets/{index.b22c6489.js → index.43fc16cf.js} +1 -1
  115. package/dist/assets/{index.ba2729bd.js → index.44dfee18.js} +1 -1
  116. package/dist/assets/{index.998500ca.js → index.4caf473d.js} +1 -1
  117. package/dist/assets/{index.9c1c3dcb.js → index.4f3e1405.js} +1 -1
  118. package/dist/assets/{index.7fee55e4.js → index.504c871e.js} +1 -1
  119. package/dist/assets/{index.2aaac8bd.js → index.558dbe9d.js} +1 -1
  120. package/dist/assets/{index.a3a6d636.js → index.5785bd5b.js} +1 -1
  121. package/dist/assets/{index.062b5c4e.js → index.58ce5d3f.js} +1 -1
  122. package/dist/assets/{index.55f95a2f.js → index.5bccbb70.js} +1 -1
  123. package/dist/assets/{index.e975fc43.js → index.5e2156f1.js} +1 -1
  124. package/dist/assets/{index.dff2a130.js → index.5efaa053.js} +1 -1
  125. package/dist/assets/{index.552cd104.js → index.63beca13.js} +1 -1
  126. package/dist/assets/{index.2799a3fe.js → index.65ef9955.js} +1 -1
  127. package/dist/assets/{index.a968c50b.js → index.6ac5a367.js} +1 -1
  128. package/dist/assets/{index.0b930698.js → index.6b8582b3.js} +1 -1
  129. package/dist/assets/{index.55a57945.js → index.6be1ec19.js} +1 -1
  130. package/dist/assets/{index.888b390d.js → index.6c3cfd9d.js} +1 -1
  131. package/dist/assets/index.719a1bf6.css +1 -0
  132. package/dist/assets/{index.c1fc17bc.js → index.727f38c4.js} +1 -1
  133. package/dist/assets/{index.8849b22a.js → index.73791b0b.js} +1 -1
  134. package/dist/assets/{index.c62ebcc5.js → index.766f9329.js} +1 -1
  135. package/dist/assets/{index.899d7ee6.js → index.7f1515ca.js} +1 -1
  136. package/dist/assets/{index.2e81f792.js → index.7fe2a6c1.js} +1 -1
  137. package/dist/assets/{index.d3abd983.js → index.8627ddb4.js} +0 -0
  138. package/dist/assets/{index.903dc700.js → index.86900d0e.js} +1 -1
  139. package/dist/assets/{index.46f1f69a.js → index.87997092.js} +1 -1
  140. package/dist/assets/{index.9f57589f.js → index.8b6e1cf5.js} +1 -1
  141. package/dist/assets/{index.b62592c3.js → index.8b727b3d.js} +1 -1
  142. package/dist/assets/{index.172f9ed4.js → index.8b83352c.js} +1 -1
  143. package/dist/assets/{index.01a3b92d.js → index.8d64a2cc.js} +1 -1
  144. package/dist/assets/{index.74e00be8.js → index.8e6a2df6.js} +1 -1
  145. package/dist/assets/{index.107979f6.js → index.909efb92.js} +1 -1
  146. package/dist/assets/{index.64d37708.js → index.937b45e4.js} +1 -1
  147. package/dist/assets/{index.84179c87.js → index.938b9c64.js} +1 -1
  148. package/dist/assets/{index.5cee23da.js → index.970729f9.js} +1 -1
  149. package/dist/assets/{index.ad338b08.js → index.9a2ded43.js} +1 -1
  150. package/dist/assets/{index.7aa33ef4.js → index.a14f652a.js} +1 -1
  151. package/dist/assets/{index.e282364f.js → index.a157d24b.js} +1 -1
  152. package/dist/assets/{index.c859516b.js → index.ab135b59.js} +1 -1
  153. package/dist/assets/{index.e003b179.js → index.ac660d97.js} +1 -1
  154. package/dist/assets/{index.a0faf01e.js → index.aeca2d25.js} +1 -1
  155. package/dist/assets/{index.243aba72.js → index.b3227ed5.js} +1 -1
  156. package/dist/assets/{index.df853543.js → index.b4512435.js} +1 -1
  157. package/dist/assets/{index.777553ca.js → index.b73eaa87.js} +1 -1
  158. package/dist/assets/{index.f6326954.js → index.b91f7cb9.js} +1 -1
  159. package/dist/assets/{index.a8265354.js → index.b990ffa7.js} +1 -1
  160. package/dist/assets/index.b9f1c213.css +1 -0
  161. package/dist/assets/{index.3fc8253a.js → index.bb39eac1.js} +1 -1
  162. package/dist/assets/{index.4d7f8516.js → index.c0a6d945.js} +1 -1
  163. package/dist/assets/{index.9ac7a0ad.js → index.ca46607e.js} +1 -1
  164. package/dist/assets/{index.61092ae0.js → index.ce459a32.js} +1 -1
  165. package/dist/assets/{index.201cdc9c.js → index.d3e27d97.js} +1 -1
  166. package/dist/assets/{index.fe5f6362.js → index.d78b4dd1.js} +1 -1
  167. package/dist/assets/{index.60e074b9.js → index.d9e06c0f.js} +1 -1
  168. package/dist/assets/{index.76fb5db6.js → index.dae019ea.js} +1 -1
  169. package/dist/assets/{index.19099a8f.js → index.dccdb81c.js} +1 -1
  170. package/dist/assets/{index.640cb361.js → index.dd5b5aec.js} +1 -1
  171. package/dist/assets/{index.917a76e9.entry.js → index.e00d2c6d.entry.js} +642 -642
  172. package/dist/assets/{index.2598162d.js → index.e24720c2.js} +1 -1
  173. package/dist/assets/{index.ad869bd2.js → index.e7e3b4f1.js} +1 -1
  174. package/dist/assets/{index.0659d17a.js → index.ebace2a1.js} +1 -1
  175. package/dist/assets/{index.90f3c017.js → index.ebc5fd3e.js} +1 -1
  176. package/dist/assets/index.ec7b5840.js +26 -0
  177. package/dist/assets/{index.28d160f6.js → index.ee33b489.js} +1 -1
  178. package/dist/assets/{index.476a4006.js → index.efb2f918.js} +1 -1
  179. package/dist/assets/{index.6a44e176.js → index.f45296e2.js} +1 -1
  180. package/dist/assets/{index.ca7fad51.js → index.fd19f059.js} +1 -1
  181. package/dist/assets/{index.2451efbb.js → index.fee1fadb.js} +1 -1
  182. package/dist/assets/{index.2ef6ea17.js → index.ffa2a1cd.js} +1 -1
  183. package/dist/assets/{input-rich-text-html.e69dfa94.js → input-rich-text-html.0b6df824.js} +2 -2
  184. package/dist/assets/{input-rich-text-html.0cdbc326.css → input-rich-text-html.49906812.css} +1 -1
  185. package/dist/assets/{insights.9f2c43c6.js → insights.7988716a.js} +1 -1
  186. package/dist/assets/{installation.76fec85e.js → installation.5215ce07.js} +1 -1
  187. package/dist/assets/{interfaces.a65a79df.js → interfaces.38099de0.js} +3 -3
  188. package/dist/assets/introduction.807bce52.js +1 -0
  189. package/dist/assets/{introduction.eda1c2c4.js → introduction.a173e7ad.js} +7 -7
  190. package/dist/assets/{introduction.e73b1c6c.js → introduction.a6b2c1f0.js} +1 -1
  191. package/dist/assets/{introduction.32669a19.js → introduction.e6dc6284.js} +3 -3
  192. package/dist/assets/it-IT.39e71c5e.js +1 -0
  193. package/dist/assets/items.02ad4f11.js +1 -0
  194. package/dist/assets/{items.f5cdbca8.js → items.ba1efbf4.js} +33 -33
  195. package/dist/assets/ja-JP.bfb2f81a.js +1 -0
  196. package/dist/assets/{javascript-hint.d74b2cdb.js → javascript-hint.bd8ca2b7.js} +1 -1
  197. package/dist/assets/{javascript.b2307aa3.js → javascript.498e8ddb.js} +1 -1
  198. package/dist/assets/{jinja2.4886bfd6.js → jinja2.54efd8a5.js} +1 -1
  199. package/dist/assets/{jsx.8937d19d.js → jsx.efc77b84.js} +1 -1
  200. package/dist/assets/{julia.a7a31ee0.js → julia.90341379.js} +1 -1
  201. package/dist/assets/ku-TR.ad6b2677.js +1 -0
  202. package/dist/assets/{layouts.fc5fee9f.js → layouts.dded37a5.js} +1 -1
  203. package/dist/assets/{layouts.e590b93d.js → layouts.f9cfede4.js} +3 -3
  204. package/dist/assets/{livescript.9a710f73.js → livescript.cb85e981.js} +1 -1
  205. package/dist/assets/localization.f384f316.js +1 -0
  206. package/dist/assets/{lua.d236c940.js → lua.cc15c79a.js} +1 -1
  207. package/dist/assets/{manual.363297f0.js → manual.cc05cff9.js} +4 -4
  208. package/dist/assets/{mark-selection.cb7787e2.js → mark-selection.cfa3fcec.js} +1 -1
  209. package/dist/assets/{match-highlighter.450b65c5.js → match-highlighter.bd16b014.js} +1 -1
  210. package/dist/assets/{mathematica.f8910884.js → mathematica.17c84e9b.js} +1 -1
  211. package/dist/assets/{mbox.18380965.js → mbox.c07261a5.js} +1 -1
  212. package/dist/assets/{migrations.5af99cef.js → migrations.fa20b23d.js} +3 -3
  213. package/dist/assets/{mirc.31870a2d.js → mirc.6c81e0d9.js} +1 -1
  214. package/dist/assets/{mllike.0e1e0100.js → mllike.647fee7d.js} +1 -1
  215. package/dist/assets/{modelica.7ecb8aeb.js → modelica.7f095a0c.js} +1 -1
  216. package/dist/assets/{modules.2403c678.js → modules.aed8795b.js} +4 -4
  217. package/dist/assets/{mscgen.c34e85a5.js → mscgen.e7ec6db0.js} +1 -1
  218. package/dist/assets/{multiplex.225aced9.js → multiplex.b20d59d9.js} +2 -2
  219. package/dist/assets/{mumps.7a0dbb45.js → mumps.e1926e1a.js} +1 -1
  220. package/dist/assets/{nginx.1bc410b6.js → nginx.3e60b1d8.js} +1 -1
  221. package/dist/assets/nl-NL.e613d40a.js +1 -0
  222. package/dist/assets/{notifications.152d86b7.js → notifications.5186ee54.js} +32 -32
  223. package/dist/assets/{nsis.04a63636.js → nsis.b4d2f79d.js} +1 -1
  224. package/dist/assets/{ntriples.0d5ceb8c.js → ntriples.23fe57b5.js} +1 -1
  225. package/dist/assets/{octave.ce59fab4.js → octave.bc18fbba.js} +1 -1
  226. package/dist/assets/{operations.f00b8c11.js → operations.51c06345.js} +1 -1
  227. package/dist/assets/operations.a263ba49.js +30 -0
  228. package/dist/assets/{operations.9b3b2514.js → operations.eaacfa1d.js} +34 -34
  229. package/dist/assets/{overlay.7f8598fd.js → overlay.914efac4.js} +1 -1
  230. package/dist/assets/{overview.c3e64ee1.js → overview.0fe284a4.js} +1 -1
  231. package/dist/assets/{overview.d2dd9f17.js → overview.21a42c2e.js} +1 -1
  232. package/dist/assets/{overview.288d5f54.js → overview.a1598534.js} +1 -1
  233. package/dist/assets/{oz.7763d971.js → oz.467f2daf.js} +1 -1
  234. package/dist/assets/{panels.f1f6334b.js → panels.d307c197.js} +3 -3
  235. package/dist/assets/{pascal.fa5fc379.js → pascal.3b07fc1d.js} +1 -1
  236. package/dist/assets/{pegjs.5286f797.js → pegjs.d8aa363f.js} +1 -1
  237. package/dist/assets/{perl.7bceb7a2.js → perl.5b744b42.js} +1 -1
  238. package/dist/assets/{permissions.de41ff3d.js → permissions.355cb88d.js} +32 -32
  239. package/dist/assets/{php.fc781bce.js → php.139f8b23.js} +1 -1
  240. package/dist/assets/{pig.a02372ee.js → pig.df6cedd4.js} +1 -1
  241. package/dist/assets/{pl-PL.6e87b518.js → pl-PL.91a0c1e6.js} +1 -1
  242. package/dist/assets/{plesk.0ef5ab4c.js → plesk.c1379970.js} +6 -6
  243. package/dist/assets/{powershell.5a697151.js → powershell.b3b5efd9.js} +1 -1
  244. package/dist/assets/{presets-bookmarks.5ef79225.js → presets-bookmarks.668779cf.js} +1 -1
  245. package/dist/assets/{presets.db317f9f.js → presets.0d5dc9c6.js} +32 -32
  246. package/dist/assets/{project-settings.e940a11b.js → project-settings.2a64f071.js} +1 -1
  247. package/dist/assets/{projects.5cc2ad0c.js → projects.f82931e8.js} +1 -1
  248. package/dist/assets/{properties.7b2f128a.js → properties.7b21f6e1.js} +1 -1
  249. package/dist/assets/{protobuf.4e0b6dfc.js → protobuf.a9cd2a14.js} +1 -1
  250. package/dist/assets/pt-BR.ce1fdc59.js +1 -0
  251. package/dist/assets/{pug.4829baa5.js → pug.1187ae8d.js} +1 -1
  252. package/dist/assets/{puppet.0cc3dfc6.js → puppet.19c616b8.js} +1 -1
  253. package/dist/assets/{python.97758a3a.js → python.ccb55c13.js} +1 -1
  254. package/dist/assets/{q.f7c0a7a0.js → q.24958204.js} +1 -1
  255. package/dist/assets/{query.f187b00c.js → query.8fb6cf04.js} +27 -27
  256. package/dist/assets/{quickstart.8d5c02c2.js → quickstart.c0e4b8bd.js} +2 -2
  257. package/dist/assets/{quickstart.62cbd1cd.js → quickstart.f2432960.js} +1 -1
  258. package/dist/assets/{r.65bf4228.js → r.acb07d5a.js} +1 -1
  259. package/dist/assets/{relations.a37c187d.js → relations.2dfa7993.js} +24 -24
  260. package/dist/assets/{relationships.5cda18e3.js → relationships.eb7e340c.js} +5 -5
  261. package/dist/assets/{resources.540de098.js → resources.b4808e35.js} +1 -1
  262. package/dist/assets/{revisions.e044726e.js → revisions.cf799486.js} +8 -8
  263. package/dist/assets/{roles.83da9d9c.js → roles.b0107422.js} +32 -32
  264. package/dist/assets/{rpm.4485b248.js → rpm.f085c147.js} +1 -1
  265. package/dist/assets/{rst.9bf2ecf3.js → rst.d419af03.js} +1 -1
  266. package/dist/assets/ru-RU.74ac881b.js +1 -0
  267. package/dist/assets/{ruby.3f0bf45a.js → ruby.43be0a34.js} +1 -1
  268. package/dist/assets/{running-locally.31538f1b.js → running-locally.a3ec7567.js} +8 -8
  269. package/dist/assets/{rust.4520397b.js → rust.cce3b400.js} +1 -1
  270. package/dist/assets/{sas.94641767.js → sas.16484722.js} +1 -1
  271. package/dist/assets/{sass.ebdaaefc.js → sass.7051c1f1.js} +1 -1
  272. package/dist/assets/scheme.ca9d730a.js +1 -0
  273. package/dist/assets/{sdk.297840b0.js → sdk.ea5b0946.js} +54 -54
  274. package/dist/assets/security.b7fcc1c2.js +1 -0
  275. package/dist/assets/{server.d8bb0f4c.js → server.22f6f2c1.js} +17 -17
  276. package/dist/assets/{settings.6c879748.js → settings.509b7560.js} +0 -0
  277. package/dist/assets/{settings.65d8a9b5.js → settings.c4a634ae.js} +8 -8
  278. package/dist/assets/shares.4d7659d8.js +1 -0
  279. package/dist/assets/{shell.9d77a8b4.js → shell.459f40ee.js} +1 -1
  280. package/dist/assets/{show-hint.0e85091b.js → show-hint.e01428dd.js} +1 -1
  281. package/dist/assets/{sieve.0bb4a673.js → sieve.0bc80c89.js} +1 -1
  282. package/dist/assets/{slim.87008de5.js → slim.2d290285.js} +1 -1
  283. package/dist/assets/smalltalk.41636747.js +1 -0
  284. package/dist/assets/{smarty.fefb4633.js → smarty.d1631985.js} +1 -1
  285. package/dist/assets/solr.b1df9d52.js +1 -0
  286. package/dist/assets/{soy.ca07f4e2.js → soy.99e75aa8.js} +1 -1
  287. package/dist/assets/{sparql.5d956528.js → sparql.d5b1eee4.js} +1 -1
  288. package/dist/assets/{spreadsheet.5beb51ed.js → spreadsheet.29a03e30.js} +1 -1
  289. package/dist/assets/{sql.6d3b3091.js → sql.3413d6f9.js} +1 -1
  290. package/dist/assets/{sso-examples.a785e77c.js → sso-examples.ad647c9c.js} +11 -11
  291. package/dist/assets/{sso.36061e28.js → sso.cf805e38.js} +2 -2
  292. package/dist/assets/{stex.0fe2ac60.js → stex.7276068b.js} +1 -1
  293. package/dist/assets/{stylus.e000276e.js → stylus.ed00f8db.js} +1 -1
  294. package/dist/assets/{support.a149b5a4.js → support.6594facf.js} +1 -1
  295. package/dist/assets/{swift.486a5a13.js → swift.26ec0a65.js} +1 -1
  296. package/dist/assets/{tcl.b3e3538d.js → tcl.ebb4437a.js} +1 -1
  297. package/dist/assets/{teams.86e324d5.js → teams.f575332d.js} +1 -1
  298. package/dist/assets/{textile.b258ec97.js → textile.7ff1ea5c.js} +1 -1
  299. package/dist/assets/{themes.3d8b2b78.js → themes.3d802c3b.js} +1 -1
  300. package/dist/assets/{tiddlywiki.f7d8e471.js → tiddlywiki.36daf39b.js} +1 -1
  301. package/dist/assets/{tiki.70203351.js → tiki.c1a7e00c.js} +1 -1
  302. package/dist/assets/{toml.86996664.js → toml.16e84917.js} +1 -1
  303. package/dist/assets/{tornado.95569557.js → tornado.9b8dbfb8.js} +1 -1
  304. package/dist/assets/{translation-strings.2d32b80f.js → translation-strings.fe88793b.js} +1 -1
  305. package/dist/assets/{translations.9a0e8cc4.js → translations.4be9ec77.js} +1 -1
  306. package/dist/assets/{triggers.49fa8cca.js → triggers.c34177a3.js} +1 -1
  307. package/dist/assets/{troff.e305afe5.js → troff.a86a07b9.js} +1 -1
  308. package/dist/assets/{ttcn-cfg.befad34e.js → ttcn-cfg.df680d6a.js} +1 -1
  309. package/dist/assets/{ttcn.3f026b3f.js → ttcn.33574dcc.js} +1 -1
  310. package/dist/assets/{turtle.0a719577.js → turtle.93ac23eb.js} +1 -1
  311. package/dist/assets/{twig.473996c3.js → twig.04df7bbf.js} +1 -1
  312. package/dist/assets/{ubuntu.bd27c73d.js → ubuntu.cc908491.js} +0 -0
  313. package/dist/assets/{upgrades-migrations.e91a553b.js → upgrades-migrations.a57ef987.js} +1 -1
  314. package/dist/assets/{use-sync.138c50b0.js → use-sync.1dee2657.js} +14 -14
  315. package/dist/assets/{user-directory.8d94737c.js → user-directory.7b875602.js} +1 -1
  316. package/dist/assets/{users-roles-permissions.d63af527.js → users-roles-permissions.00ffdc25.js} +1 -1
  317. package/dist/assets/{users.9e656e05.js → users.0638ab5f.js} +58 -58
  318. package/dist/assets/{utilities.4a346b3b.js → utilities.b2f15bfd.js} +17 -17
  319. package/dist/assets/{vb.34ccd0bd.js → vb.44c875a2.js} +1 -1
  320. package/dist/assets/{vbscript.1e31724d.js → vbscript.87bdeb77.js} +1 -1
  321. package/dist/assets/{velocity.3076e2d2.js → velocity.cc1dfc19.js} +1 -1
  322. package/dist/assets/{verilog.d290c732.js → verilog.0f07ab6c.js} +1 -1
  323. package/dist/assets/{vhdl.bc9a1438.js → vhdl.41fb7cf9.js} +1 -1
  324. package/dist/assets/{vue.08b7467a.js → vue.5d653ac7.js} +1 -1
  325. package/dist/assets/{wast.96359ee5.js → wast.0d4923e5.js} +1 -1
  326. package/dist/assets/{webhooks.256ac76b.js → webhooks.1f89f80a.js} +31 -31
  327. package/dist/assets/{webhooks.235f76fb.js → webhooks.3d6334e9.js} +1 -1
  328. package/dist/assets/{webidl.9f8f6f0f.js → webidl.e399c0a3.js} +1 -1
  329. package/dist/assets/{xquery.0ea30239.js → xquery.45a960e6.js} +1 -1
  330. package/dist/assets/{yacas.6a86aa92.js → yacas.842e0a74.js} +1 -1
  331. package/dist/assets/{yaml-frontmatter.d4e317c1.js → yaml-frontmatter.93f99653.js} +1 -1
  332. package/dist/assets/{yaml.3914e7da.js → yaml.da4da1d2.js} +1 -1
  333. package/dist/assets/{z80.f974aea9.js → z80.e8d0aed2.js} +1 -1
  334. package/dist/assets/zh-TW.2ac2bb07.js +1 -0
  335. package/dist/index.html +3 -3
  336. package/package.json +11 -9
  337. package/dist/assets/@directus_extensions-sdk.118c3166.entry.js +0 -1
  338. package/dist/assets/bg-BG.9288ea83.js +0 -1
  339. package/dist/assets/collections.e06a8b1f.js +0 -2
  340. package/dist/assets/commonlisp.725a0889.js +0 -1
  341. package/dist/assets/content.07b42fc5.js +0 -1
  342. package/dist/assets/data-sharing.8b80b0f4.js +0 -1
  343. package/dist/assets/de-DE.5535b278.js +0 -1
  344. package/dist/assets/django.98a7f8f7.js +0 -1
  345. package/dist/assets/en-GB.c55341c7.js +0 -1
  346. package/dist/assets/file-library.92f387e2.js +0 -1
  347. package/dist/assets/fr-CA.6b485ca2.js +0 -1
  348. package/dist/assets/fr-FR.77a5277c.js +0 -1
  349. package/dist/assets/go.6ecfe8d8.js +0 -1
  350. package/dist/assets/he-IL.62301c5a.js +0 -1
  351. package/dist/assets/http.de052b25.js +0 -1
  352. package/dist/assets/hu-HU.47ab36e8.js +0 -1
  353. package/dist/assets/index.9335a1f8.css +0 -1
  354. package/dist/assets/index.d87c135a.js +0 -26
  355. package/dist/assets/index.dbec7bd8.css +0 -1
  356. package/dist/assets/introduction.e626ca8d.js +0 -1
  357. package/dist/assets/it-IT.c08c5546.js +0 -1
  358. package/dist/assets/items.ee26fa45.js +0 -1
  359. package/dist/assets/ja-JP.84597497.js +0 -1
  360. package/dist/assets/ku-TR.3a07a57e.js +0 -1
  361. package/dist/assets/localization.998790e9.js +0 -1
  362. package/dist/assets/nl-NL.2f00af44.js +0 -1
  363. package/dist/assets/pt-BR.02851ce6.js +0 -1
  364. package/dist/assets/ru-RU.1807a64c.js +0 -1
  365. package/dist/assets/scheme.9d08c24e.js +0 -1
  366. package/dist/assets/security.c18b2f34.js +0 -1
  367. package/dist/assets/smalltalk.fe7d0a09.js +0 -1
  368. package/dist/assets/solr.3d0019cc.js +0 -1
  369. package/dist/assets/zh-TW.cac20c88.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a,o,b as r,w as i,g as s,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const c=s("div",{class:"markdown-body"},[s("blockquote",null,[s("p",null,"Custom API Endpoints register new API routes which can be used to infinitely extend the core functionality of the platform.")]),s("h2",{id:"extension-entrypoint",tabindex:"-1"},[e("Extension Entrypoint "),s("a",{class:"header-anchor",href:"#extension-entrypoint"},"#")]),s("p",null,[e("The entrypoint of your endpoint is the "),s("code",null,"index"),e(" file inside the "),s("code",null,"src/"),e(" folder of your extension package. It exports a register function to register one or more custom routes. Each route of your endpoint will be a sub-route of "),s("code",null,"/<extension-name>"),e(".")]),s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Extension Name"),s("p",null,"The extension name is usually the name of the folder where you put your extension when deploying it.")]),s("p",null,"Example of an entrypoint:"),s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"export"),e(),s("span",{class:"hljs-keyword"},"default"),e(` (router) => {
1
+ import{a,o,b as r,w as i,g as s,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const c=s("div",{class:"markdown-body"},[s("blockquote",null,[s("p",null,"Custom API Endpoints register new API routes which can be used to infinitely extend the core functionality of the platform.")]),s("h2",{id:"extension-entrypoint",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#extension-entrypoint"},"#"),e(" Extension Entrypoint")]),s("p",null,[e("The entrypoint of your endpoint is the "),s("code",null,"index"),e(" file inside the "),s("code",null,"src/"),e(" folder of your extension package. It exports a register function to register one or more custom routes. Each route of your endpoint will be a sub-route of "),s("code",null,"/<extension-name>"),e(".")]),s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Extension Name"),s("p",null,"The extension name is usually the name of the folder where you put your extension when deploying it.")]),s("p",null,"Example of an entrypoint:"),s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"export"),e(),s("span",{class:"hljs-keyword"},"default"),e(` (router) => {
2
2
  router.`),s("span",{class:"hljs-title function_"},"get"),e("("),s("span",{class:"hljs-string"},"'/'"),e(", "),s("span",{class:"hljs-function"},[e("("),s("span",{class:"hljs-params"},"req, res"),e(") =>")]),e(" res."),s("span",{class:"hljs-title function_"},"send"),e("("),s("span",{class:"hljs-string"},"'Hello, World!'"),e(`));
3
3
  };
4
4
  `)])]),s("p",null,"Alternatively, you can export a configuration object to be able to customize the root route:"),s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"export"),e(),s("span",{class:"hljs-keyword"},"default"),e(` {
@@ -9,7 +9,7 @@ import{a,o,b as r,w as i,g as s,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.
9
9
  router.`),s("span",{class:"hljs-title function_"},"get"),e("("),s("span",{class:"hljs-string"},"'/goodbye'"),e(", "),s("span",{class:"hljs-function"},[e("("),s("span",{class:"hljs-params"},"req, res"),e(") =>")]),e(" res."),s("span",{class:"hljs-title function_"},"send"),e("("),s("span",{class:"hljs-string"},"'Goodbye!'"),e(`));
10
10
  },
11
11
  };
12
- `)])]),s("p",null,[e("The routes of this endpoint are accessible at "),s("code",null,"/greet"),e(", "),s("code",null,"/greet/intro"),e(" and "),s("code",null,"/greet/goodbye"),e(".")]),s("h4",{id:"available-options",tabindex:"-1"},[e("Available Options "),s("a",{class:"header-anchor",href:"#available-options"},"#")]),s("ul",null,[s("li",null,[s("code",null,"id"),e(" \u2014 The unique key for this endpoint. Each route of your endpoint will be a sub-route of "),s("code",null,"/<id>"),e(".")]),s("li",null,[s("code",null,"handler"),e(" \u2014 The endpoint\u2019s registration handler function.")])]),s("h2",{id:"register-function",tabindex:"-1"},[e("Register Function "),s("a",{class:"header-anchor",href:"#register-function"},"#")]),s("p",null,[e("The register function receives the two parameters "),s("code",null,"router"),e(" and "),s("code",null,"context"),e(". "),s("code",null,"router"),e(" is an Express router instance. "),s("code",null,"context"),e(" is an object with the following properties:")]),s("ul",null,[s("li",null,[s("code",null,"services"),e(" \u2014 All API internal services.")]),s("li",null,[s("code",null,"exceptions"),e(" \u2014 API exception objects that can be used to throw \u201Cproper\u201D errors.")]),s("li",null,[s("code",null,"database"),e(" \u2014 Knex instance that is connected to the current database.")]),s("li",null,[s("code",null,"getSchema"),e(" \u2014 Async function that reads the full available schema for use in services")]),s("li",null,[s("code",null,"env"),e(" \u2014 Parsed environment variables.")]),s("li",null,[s("code",null,"logger"),e(" \u2014 "),s("a",{href:"https://github.com/pinojs/pino",target:"_blank",rel:"noopener noreferrer"},"Pino"),e(" instance.")]),s("li",null,[s("code",null,"emitter"),e(" \u2014 "),s("a",{href:"https://github.com/directus/directus/blob/main/api/src/emitter.ts",target:"_blank",rel:"noopener noreferrer"},"Event emitter"),e(" instance that can be used to trigger custom events for other extensions.")])]),s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Event loop"),s("p",null,"When implementing custom events using the emitter make sure you never directly or indirectly emit the same event your hook is currently handling as that would result in an infinite loop!")]),s("h2",{id:"example%3A-recipes",tabindex:"-1"},[e("Example: Recipes "),s("a",{class:"header-anchor",href:"#example%3A-recipes"},"#")]),s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"export"),e(),s("span",{class:"hljs-keyword"},"default"),e(` (router, { services, exceptions }) => {
12
+ `)])]),s("p",null,[e("The routes of this endpoint are accessible at "),s("code",null,"/greet"),e(", "),s("code",null,"/greet/intro"),e(" and "),s("code",null,"/greet/goodbye"),e(".")]),s("h4",{id:"available-options",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#available-options"},"#"),e(" Available Options")]),s("ul",null,[s("li",null,[s("code",null,"id"),e(" \u2014 The unique key for this endpoint. Each route of your endpoint will be a sub-route of "),s("code",null,"/<id>"),e(".")]),s("li",null,[s("code",null,"handler"),e(" \u2014 The endpoint\u2019s registration handler function.")])]),s("h2",{id:"register-function",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#register-function"},"#"),e(" Register Function")]),s("p",null,[e("The register function receives the two parameters "),s("code",null,"router"),e(" and "),s("code",null,"context"),e(". "),s("code",null,"router"),e(" is an Express router instance. "),s("code",null,"context"),e(" is an object with the following properties:")]),s("ul",null,[s("li",null,[s("code",null,"services"),e(" \u2014 All API internal services.")]),s("li",null,[s("code",null,"exceptions"),e(" \u2014 API exception objects that can be used to throw \u201Cproper\u201D errors.")]),s("li",null,[s("code",null,"database"),e(" \u2014 Knex instance that is connected to the current database.")]),s("li",null,[s("code",null,"getSchema"),e(" \u2014 Async function that reads the full available schema for use in services")]),s("li",null,[s("code",null,"env"),e(" \u2014 Parsed environment variables.")]),s("li",null,[s("code",null,"logger"),e(" \u2014 "),s("a",{href:"https://github.com/pinojs/pino",target:"_blank",rel:"noopener noreferrer"},"Pino"),e(" instance.")]),s("li",null,[s("code",null,"emitter"),e(" \u2014 "),s("a",{href:"https://github.com/directus/directus/blob/main/api/src/emitter.ts",target:"_blank",rel:"noopener noreferrer"},"Event emitter"),e(" instance that can be used to trigger custom events for other extensions.")])]),s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Event loop"),s("p",null,"When implementing custom events using the emitter make sure you never directly or indirectly emit the same event your hook is currently handling as that would result in an infinite loop!")]),s("h2",{id:"example%3A-recipes",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example%3A-recipes"},"#"),e(" Example: Recipes")]),s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"export"),e(),s("span",{class:"hljs-keyword"},"default"),e(` (router, { services, exceptions }) => {
13
13
  `),s("span",{class:"hljs-keyword"},"const"),e(" { "),s("span",{class:"hljs-title class_"},"ItemsService"),e(` } = services;
14
14
  `),s("span",{class:"hljs-keyword"},"const"),e(" { "),s("span",{class:"hljs-title class_"},"ServiceUnavailableException"),e(` } = exceptions;
15
15
 
@@ -1 +1 @@
1
- import{z as X}from"./index.917a76e9.entry.js";function Y(s,k){return k.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(_){if(_!=="default"&&!(_ in s)){var b=Object.getOwnPropertyDescriptor(c,_);Object.defineProperty(s,_,b.get?b:{enumerable:!0,get:function(){return c[_]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var P={exports:{}};(function(s,k){(function(c){c(X.exports)})(function(c){c.defineMIME("text/x-erlang","erlang"),c.defineMode("erlang",function(_){var b=["-type","-spec","-export_type","-opaque"],m=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],A=/[\->,;]/,R=["->",";",","],U=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],j=/[\+\-\*\/<>=\|:!]/,O=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],Z=/[<\(\[\{]/,h=["<<","(","[","{"],q=/[>\)\]\}]/,w=["}","]",")",">>"],$=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],I=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],g=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,Q=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function D(e,n){if(n.in_string)return n.in_string=!W(e),i(n,e,"string");if(n.in_atom)return n.in_atom=!E(e),i(n,e,"atom");if(e.eatSpace())return i(n,e,"whitespace");if(!d(n)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return u(e.current(),b)?i(n,e,"type"):i(n,e,"attribute");var r=e.next();if(r=="%")return e.skipToEnd(),i(n,e,"comment");if(r==":")return i(n,e,"colon");if(r=="?")return e.eatSpace(),e.eatWhile(g),i(n,e,"macro");if(r=="#")return e.eatSpace(),e.eatWhile(g),i(n,e,"record");if(r=="$")return e.next()=="\\"&&!e.match(Q)?i(n,e,"error"):i(n,e,"number");if(r==".")return i(n,e,"dot");if(r=="'"){if(!(n.in_atom=!E(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),i(n,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return i(n,e,"function")}return i(n,e,"atom")}if(r=='"')return n.in_string=!W(e),i(n,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(g),i(n,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(g),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),i(n,e,"fun");var t=e.current();return u(t,m)?i(n,e,"keyword"):u(t,U)?i(n,e,"operator"):e.match(/\s*\(/,!1)?u(t,I)&&(d(n).token!=":"||d(n,2).token=="erlang")?i(n,e,"builtin"):u(t,$)?i(n,e,"guard"):i(n,e,"function"):N(e)==":"?t=="erlang"?i(n,e,"builtin"):i(n,e,"function"):u(t,["true","false"])?i(n,e,"boolean"):i(n,e,"atom")}var l=/[0-9]/,o=/[0-9a-zA-Z]/;return l.test(r)?(e.eatWhile(l),e.eat("#")?e.eatWhile(o)||e.backUp(1):e.eat(".")&&(e.eatWhile(l)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(l)||e.backUp(2):e.eatWhile(l)||e.backUp(1)):e.backUp(1)),i(n,e,"number")):x(e,Z,h)?i(n,e,"open_paren"):x(e,q,w)?i(n,e,"close_paren"):S(e,A,R)?i(n,e,"separator"):S(e,j,O)?i(n,e,"operator"):i(n,e,null)}function x(e,n,r){if(e.current().length==1&&n.test(e.current())){for(e.backUp(1);n.test(e.peek());)if(e.next(),u(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function S(e,n,r){if(e.current().length==1&&n.test(e.current())){for(;n.test(e.peek());)e.next();for(;0<e.current().length;){if(u(e.current(),r))return!0;e.backUp(1)}e.next()}return!1}function W(e){return z(e,'"',"\\")}function E(e){return z(e,"'","\\")}function z(e,n,r){for(;!e.eol();){var t=e.next();if(t==n)return!0;t==r&&e.next()}return!1}function N(e){var n=e.match(/^\s*([^\s%])/,!1);return n?n[1]:""}function u(e,n){return-1<n.indexOf(e)}function i(e,n,r){switch(G(e,B(r,n)),r){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":return null;case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function T(e,n,r,t){return{token:e,column:n,indent:r,type:t}}function B(e,n){return T(n.current(),n.column(),n.indentation(),e)}function F(e){return T(e,0,0,e)}function d(e,n){var r=e.tokenStack.length,t=n||1;return r<t?!1:e.tokenStack[r-t]}function G(e,n){n.type=="comment"||n.type=="whitespace"||(e.tokenStack=H(e.tokenStack,n),e.tokenStack=J(e.tokenStack))}function H(e,n){var r=e.length-1;return 0<r&&e[r].type==="record"&&n.type==="dot"?e.pop():(0<r&&e[r].type==="group"&&e.pop(),e.push(n)),e}function J(e){if(!e.length)return e;var n=e.length-1;if(e[n].type==="dot")return[];if(n>1&&e[n].type==="fun"&&e[n-1].token==="fun")return e.slice(0,n-1);switch(e[n].token){case"}":return f(e,{g:["{"]});case"]":return f(e,{i:["["]});case")":return f(e,{i:["("]});case">>":return f(e,{i:["<<"]});case"end":return f(e,{i:["begin","case","fun","if","receive","try"]});case",":return f(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return f(e,{r:["when"],m:["try","if","case","receive"]});case";":return f(e,{E:["case","fun","if","receive","try","when"]});case"catch":return f(e,{e:["try"]});case"of":return f(e,{e:["case"]});case"after":return f(e,{e:["receive","try"]});default:return e}}function f(e,n){for(var r in n)for(var t=e.length-1,l=n[r],o=t-1;-1<o;o--)if(u(e[o].token,l)){var a=e.slice(0,o);switch(r){case"m":return a.concat(e[o]).concat(e[t]);case"r":return a.concat(e[t]);case"i":return a;case"g":return a.concat(F("group"));case"E":return a.concat(e[o]);case"e":return a.concat(e[o])}}return r=="E"?[]:e}function K(e,n){var r,t=_.indentUnit,l=L(n),o=d(e,1),a=d(e,2);return e.in_string||e.in_atom?c.Pass:a?o.token=="when"?o.column+t:l==="when"&&a.type==="function"?a.indent+t:l==="("&&o.token==="fun"?o.column+3:l==="catch"&&(r=y(e,["try"]))?r.column:u(l,["end","after","of"])?(r=y(e,["begin","case","fun","if","receive","try"]),r?r.column:c.Pass):u(l,w)?(r=y(e,h),r?r.column:c.Pass):u(o.token,[",","|","||"])||u(l,[",","|","||"])?(r=M(e),r?r.column+r.token.length:t):o.token=="->"?u(a.token,["receive","case","if","try"])?a.column+t+t:a.column+t:u(o.token,h)?o.column+o.token.length:(r=V(e),p(r)?r.column+t:0):0}function L(e){var n=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return p(n)&&n.index===0?n[0]:""}function M(e){var n=e.tokenStack.slice(0,-1),r=v(n,"type",["open_paren"]);return p(n[r])?n[r]:!1}function V(e){var n=e.tokenStack,r=v(n,"type",["open_paren","separator","keyword"]),t=v(n,"type",["operator"]);return p(r)&&p(t)&&r<t?n[r+1]:p(r)?n[r]:!1}function y(e,n){var r=e.tokenStack,t=v(r,"token",n);return p(r[t])?r[t]:!1}function v(e,n,r){for(var t=e.length-1;-1<t;t--)if(u(e[t][n],r))return t;return!1}function p(e){return e!==!1&&e!=null}return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,n){return D(e,n)},indent:function(e,n){return K(e,n)},lineComment:"%"}})})})();var C=P.exports,ne=Y({__proto__:null,default:C},[P.exports]);export{ne as e};
1
+ import{y as X}from"./index.e00d2c6d.entry.js";function Y(s,k){return k.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(_){if(_!=="default"&&!(_ in s)){var b=Object.getOwnPropertyDescriptor(c,_);Object.defineProperty(s,_,b.get?b:{enumerable:!0,get:function(){return c[_]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var P={exports:{}};(function(s,k){(function(c){c(X.exports)})(function(c){c.defineMIME("text/x-erlang","erlang"),c.defineMode("erlang",function(_){var b=["-type","-spec","-export_type","-opaque"],m=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],A=/[\->,;]/,R=["->",";",","],U=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],j=/[\+\-\*\/<>=\|:!]/,O=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],Z=/[<\(\[\{]/,h=["<<","(","[","{"],q=/[>\)\]\}]/,w=["}","]",")",">>"],$=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],I=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],g=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,Q=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function D(e,n){if(n.in_string)return n.in_string=!W(e),i(n,e,"string");if(n.in_atom)return n.in_atom=!E(e),i(n,e,"atom");if(e.eatSpace())return i(n,e,"whitespace");if(!d(n)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return u(e.current(),b)?i(n,e,"type"):i(n,e,"attribute");var r=e.next();if(r=="%")return e.skipToEnd(),i(n,e,"comment");if(r==":")return i(n,e,"colon");if(r=="?")return e.eatSpace(),e.eatWhile(g),i(n,e,"macro");if(r=="#")return e.eatSpace(),e.eatWhile(g),i(n,e,"record");if(r=="$")return e.next()=="\\"&&!e.match(Q)?i(n,e,"error"):i(n,e,"number");if(r==".")return i(n,e,"dot");if(r=="'"){if(!(n.in_atom=!E(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),i(n,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return i(n,e,"function")}return i(n,e,"atom")}if(r=='"')return n.in_string=!W(e),i(n,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(g),i(n,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(g),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),i(n,e,"fun");var t=e.current();return u(t,m)?i(n,e,"keyword"):u(t,U)?i(n,e,"operator"):e.match(/\s*\(/,!1)?u(t,I)&&(d(n).token!=":"||d(n,2).token=="erlang")?i(n,e,"builtin"):u(t,$)?i(n,e,"guard"):i(n,e,"function"):N(e)==":"?t=="erlang"?i(n,e,"builtin"):i(n,e,"function"):u(t,["true","false"])?i(n,e,"boolean"):i(n,e,"atom")}var l=/[0-9]/,o=/[0-9a-zA-Z]/;return l.test(r)?(e.eatWhile(l),e.eat("#")?e.eatWhile(o)||e.backUp(1):e.eat(".")&&(e.eatWhile(l)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(l)||e.backUp(2):e.eatWhile(l)||e.backUp(1)):e.backUp(1)),i(n,e,"number")):x(e,Z,h)?i(n,e,"open_paren"):x(e,q,w)?i(n,e,"close_paren"):S(e,A,R)?i(n,e,"separator"):S(e,j,O)?i(n,e,"operator"):i(n,e,null)}function x(e,n,r){if(e.current().length==1&&n.test(e.current())){for(e.backUp(1);n.test(e.peek());)if(e.next(),u(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function S(e,n,r){if(e.current().length==1&&n.test(e.current())){for(;n.test(e.peek());)e.next();for(;0<e.current().length;){if(u(e.current(),r))return!0;e.backUp(1)}e.next()}return!1}function W(e){return z(e,'"',"\\")}function E(e){return z(e,"'","\\")}function z(e,n,r){for(;!e.eol();){var t=e.next();if(t==n)return!0;t==r&&e.next()}return!1}function N(e){var n=e.match(/^\s*([^\s%])/,!1);return n?n[1]:""}function u(e,n){return-1<n.indexOf(e)}function i(e,n,r){switch(G(e,B(r,n)),r){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":return null;case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function T(e,n,r,t){return{token:e,column:n,indent:r,type:t}}function B(e,n){return T(n.current(),n.column(),n.indentation(),e)}function F(e){return T(e,0,0,e)}function d(e,n){var r=e.tokenStack.length,t=n||1;return r<t?!1:e.tokenStack[r-t]}function G(e,n){n.type=="comment"||n.type=="whitespace"||(e.tokenStack=H(e.tokenStack,n),e.tokenStack=J(e.tokenStack))}function H(e,n){var r=e.length-1;return 0<r&&e[r].type==="record"&&n.type==="dot"?e.pop():(0<r&&e[r].type==="group"&&e.pop(),e.push(n)),e}function J(e){if(!e.length)return e;var n=e.length-1;if(e[n].type==="dot")return[];if(n>1&&e[n].type==="fun"&&e[n-1].token==="fun")return e.slice(0,n-1);switch(e[n].token){case"}":return f(e,{g:["{"]});case"]":return f(e,{i:["["]});case")":return f(e,{i:["("]});case">>":return f(e,{i:["<<"]});case"end":return f(e,{i:["begin","case","fun","if","receive","try"]});case",":return f(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return f(e,{r:["when"],m:["try","if","case","receive"]});case";":return f(e,{E:["case","fun","if","receive","try","when"]});case"catch":return f(e,{e:["try"]});case"of":return f(e,{e:["case"]});case"after":return f(e,{e:["receive","try"]});default:return e}}function f(e,n){for(var r in n)for(var t=e.length-1,l=n[r],o=t-1;-1<o;o--)if(u(e[o].token,l)){var a=e.slice(0,o);switch(r){case"m":return a.concat(e[o]).concat(e[t]);case"r":return a.concat(e[t]);case"i":return a;case"g":return a.concat(F("group"));case"E":return a.concat(e[o]);case"e":return a.concat(e[o])}}return r=="E"?[]:e}function K(e,n){var r,t=_.indentUnit,l=L(n),o=d(e,1),a=d(e,2);return e.in_string||e.in_atom?c.Pass:a?o.token=="when"?o.column+t:l==="when"&&a.type==="function"?a.indent+t:l==="("&&o.token==="fun"?o.column+3:l==="catch"&&(r=y(e,["try"]))?r.column:u(l,["end","after","of"])?(r=y(e,["begin","case","fun","if","receive","try"]),r?r.column:c.Pass):u(l,w)?(r=y(e,h),r?r.column:c.Pass):u(o.token,[",","|","||"])||u(l,[",","|","||"])?(r=M(e),r?r.column+r.token.length:t):o.token=="->"?u(a.token,["receive","case","if","try"])?a.column+t+t:a.column+t:u(o.token,h)?o.column+o.token.length:(r=V(e),p(r)?r.column+t:0):0}function L(e){var n=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return p(n)&&n.index===0?n[0]:""}function M(e){var n=e.tokenStack.slice(0,-1),r=v(n,"type",["open_paren"]);return p(n[r])?n[r]:!1}function V(e){var n=e.tokenStack,r=v(n,"type",["open_paren","separator","keyword"]),t=v(n,"type",["operator"]);return p(r)&&p(t)&&r<t?n[r+1]:p(r)?n[r]:!1}function y(e,n){var r=e.tokenStack,t=v(r,"token",n);return p(r[t])?r[t]:!1}function v(e,n,r){for(var t=e.length-1;-1<t;t--)if(u(e[t][n],r))return t;return!1}function p(e){return e!==!1&&e!=null}return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,n){return D(e,n)},indent:function(e,n){return K(e,n)},lineComment:"%"}})})})();var C=P.exports,ne=Y({__proto__:null,default:C},[P.exports]);export{ne as e};
@@ -1,10 +1,10 @@
1
- import{a as n,o as i,b as c,w as a,g as e,e as d,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},p={class:"two-up"},u={class:"left"},x=s("The extensions endpoints are used by the Admin App to retrieve what extensions to install. "),_=s("Learn more about Extensions"),f=s("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#list-extensions"},"List Extensions ")])])])])],-1),y=e("hr",null,null,-1),g=e("h2",{id:"list-extensions",tabindex:"-1"},[s("List Extensions "),e("a",{class:"header-anchor",href:"#list-extensions"},"#")],-1),b=e("p",null,"List the available extensions in the project. The types of extensions that you can list are interfaces, displays, layouts, modules.",-1),E=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"returns",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")]),e("p",null,"An array of interface extension keys.")]),e("div",{class:"right"},[e("h3",{id:"rest-api",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")]),e("pre",null,[e("code",null,`GET /extensions/:type
2
- `)]),e("h5",{id:"example",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example"},"#")]),e("pre",null,[e("code",null,`GET /extensions/interfaces
3
- `)]),e("h3",{id:"graphql",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
1
+ import{a as n,o as i,b as c,w as a,g as e,e as d,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},p={class:"two-up"},u={class:"left"},x=s("The extensions endpoints are used by the Admin App to retrieve what extensions to install. "),_=s("Learn more about Extensions"),f=s("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#list-extensions"}," List Extensions")])])])])],-1),y=e("hr",null,null,-1),g=e("h2",{id:"list-extensions",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#list-extensions"},"#"),s(" List Extensions")],-1),b=e("p",null,"List the available extensions in the project. The types of extensions that you can list are interfaces, displays, layouts, modules.",-1),E=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters"},"#"),s(" Query Parameters")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"returns",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns"},"#"),s(" Returns")]),e("p",null,"An array of interface extension keys.")]),e("div",{class:"right"},[e("h3",{id:"rest-api",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api"},"#"),s(" REST API")]),e("pre",null,[e("code",null,`GET /extensions/:type
2
+ `)]),e("h5",{id:"example",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example"},"#"),s(" Example")]),e("pre",null,[e("code",null,`GET /extensions/interfaces
3
+ `)]),e("h3",{id:"graphql",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql"},"#"),s(" GraphQL")]),e("pre",null,[e("code",null,`POST /graphql/system
4
4
  `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
5
5
  extensions: extensions
6
6
  }
7
- `)])]),e("h5",{id:"example-1",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-1"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
7
+ `)])]),e("h5",{id:"example-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-1"},"#"),s(" Example")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
8
8
  extensions {
9
9
  interfaces
10
10
  }
@@ -1 +1 @@
1
- import{z as g}from"./index.917a76e9.entry.js";import{s as a}from"./simple.1606e663.js";function x(r,n){return n.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if(t!=="default"&&!(t in r)){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(r,n){(function(e){e(g.exports,a.exports)})(function(e){e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:["!","#!"]}}),e.defineMIME("text/x-factor","factor")})})();var i=s.exports,u=x({__proto__:null,default:i},[s.exports]);export{u as f};
1
+ import{y as g}from"./index.e00d2c6d.entry.js";import{s as a}from"./simple.1606e663.js";function x(r,n){return n.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if(t!=="default"&&!(t in r)){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(r,n){(function(e){e(g.exports,a.exports)})(function(e){e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:["!","#!"]}}),e.defineMIME("text/x-factor","factor")})})();var i=s.exports,u=x({__proto__:null,default:i},[s.exports]);export{u as f};
@@ -1,2 +1,2 @@
1
- import{a as r,o as n,b as i,w as l,g as e,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const c=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,"TK")]),e("h2",{id:"is-it-possible-to-update-the-admin-user-password-via-cli%3F",tabindex:"-1"},[s("Is it possible to update the admin user password via CLI? "),e("a",{class:"header-anchor",href:"#is-it-possible-to-update-the-admin-user-password-via-cli%3F"},"#")]),e("p",null,"You can do this with the following command:"),e("pre",null,[e("code",{class:"language-sh"},[s("npx directus "),e("span",{class:"hljs-built_in"},"users"),s(` passwd --email admin@example.com --password newpasswordhere
2
- `)])]),e("h2",{id:"why-isn%E2%80%99t-directus-properly-saving-chinese-characters-or-emoji%3F",tabindex:"-1"},[s("Why isn\u2019t Directus properly saving Chinese characters or emoji? "),e("a",{class:"header-anchor",href:"#why-isn%E2%80%99t-directus-properly-saving-chinese-characters-or-emoji%3F"},"#")]),e("p",null,[s("Please ensure that the encoding for your database, tables, and fields are set to "),e("code",null,"utf8mb4"),s(".")])],-1),m="Frequently Asked Questions",w=!1,f={name:"faq",setup(d,{expose:t}){const a={title:"Frequently Asked Questions",modularExtension:!1};return t({frontmatter:a}),(p,u)=>{const o=r("docs-wrapper");return n(),i(o,{frontmatter:a},{default:l(()=>[c]),_:1})}}};export{f as default,w as modularExtension,m as title};
1
+ import{a as r,o as n,b as i,w as l,g as e,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const c=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,"TK")]),e("h2",{id:"is-it-possible-to-update-the-admin-user-password-via-cli%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#is-it-possible-to-update-the-admin-user-password-via-cli%3F"},"#"),s(" Is it possible to update the admin user password via CLI?")]),e("p",null,"You can do this with the following command:"),e("pre",null,[e("code",{class:"language-sh"},[s("npx directus "),e("span",{class:"hljs-built_in"},"users"),s(` passwd --email admin@example.com --password newpasswordhere
2
+ `)])]),e("h2",{id:"why-isn%E2%80%99t-directus-properly-saving-chinese-characters-or-emoji%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#why-isn%E2%80%99t-directus-properly-saving-chinese-characters-or-emoji%3F"},"#"),s(" Why isn\u2019t Directus properly saving Chinese characters or emoji?")]),e("p",null,[s("Please ensure that the encoding for your database, tables, and fields are set to "),e("code",null,"utf8mb4"),s(".")])],-1),m="Frequently Asked Questions",w=!1,f={name:"faq",setup(d,{expose:t}){const a={title:"Frequently Asked Questions",modularExtension:!1};return t({frontmatter:a}),(p,u)=>{const o=r("docs-wrapper");return n(),i(o,{frontmatter:a},{default:l(()=>[c]),_:1})}}};export{f as default,w as modularExtension,m as title};
@@ -1 +1 @@
1
- import{z as _}from"./index.917a76e9.entry.js";function g(f,d){return d.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(u)&&Object.keys(u).forEach(function(o){if(o!=="default"&&!(o in f)){var i=Object.getOwnPropertyDescriptor(u,o);Object.defineProperty(f,o,i.get?i:{enumerable:!0,get:function(){return u[o]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,d){(function(u){u(_.exports)})(function(u){u.defineMode("fcl",function(o){var i=o.indentUnit,y={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},p={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},l={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},s={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},b=/[+\-*&^%:=<>!|\/]/;function a(e,n){var t=e.next();if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(t=="/"||t=="("){if(e.eat("*"))return n.tokenize=m,m(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(b.test(t))return e.eatWhile(b),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return y.propertyIsEnumerable(r)||p.propertyIsEnumerable(r)||l.propertyIsEnumerable(r)?"keyword":s.propertyIsEnumerable(r)?"atom":"variable"}function m(e,n){for(var t=!1,r;r=e.next();){if((r=="/"||r==")")&&t){n.tokenize=a;break}t=r=="*"}return"comment"}function x(e,n,t,r,c){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=c}function h(e,n,t){return e.context=new x(e.indented,n,t,null,e.context)}function k(e){if(!!e.context.prev){var n=e.context.type;return n=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new x((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;var r=(n.tokenize||a)(e,n);if(r=="comment")return r;t.align==null&&(t.align=!0);var c=e.current().toLowerCase();return p.propertyIsEnumerable(c)?h(n,e.column(),"end_block"):l.propertyIsEnumerable(c)&&k(n),n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=a&&e.tokenize!=null)return 0;var t=e.context,r=l.propertyIsEnumerable(n);return t.align?t.column+(r?0:1):t.indented+(r?0:i)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),u.defineMIME("text/x-fcl","fcl")})})();var z=v.exports,C=g({__proto__:null,default:z},[v.exports]);export{C as f};
1
+ import{y as _}from"./index.e00d2c6d.entry.js";function g(f,d){return d.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(u)&&Object.keys(u).forEach(function(o){if(o!=="default"&&!(o in f)){var i=Object.getOwnPropertyDescriptor(u,o);Object.defineProperty(f,o,i.get?i:{enumerable:!0,get:function(){return u[o]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,d){(function(u){u(_.exports)})(function(u){u.defineMode("fcl",function(o){var i=o.indentUnit,y={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},p={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},l={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},s={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},b=/[+\-*&^%:=<>!|\/]/;function a(e,n){var t=e.next();if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(t=="/"||t=="("){if(e.eat("*"))return n.tokenize=m,m(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(b.test(t))return e.eatWhile(b),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return y.propertyIsEnumerable(r)||p.propertyIsEnumerable(r)||l.propertyIsEnumerable(r)?"keyword":s.propertyIsEnumerable(r)?"atom":"variable"}function m(e,n){for(var t=!1,r;r=e.next();){if((r=="/"||r==")")&&t){n.tokenize=a;break}t=r=="*"}return"comment"}function x(e,n,t,r,c){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=c}function h(e,n,t){return e.context=new x(e.indented,n,t,null,e.context)}function k(e){if(!!e.context.prev){var n=e.context.type;return n=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new x((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;var r=(n.tokenize||a)(e,n);if(r=="comment")return r;t.align==null&&(t.align=!0);var c=e.current().toLowerCase();return p.propertyIsEnumerable(c)?h(n,e.column(),"end_block"):l.propertyIsEnumerable(c)&&k(n),n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=a&&e.tokenize!=null)return 0;var t=e.context,r=l.propertyIsEnumerable(n);return t.align?t.column+(r?0:1):t.indented+(r?0:i)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),u.defineMIME("text/x-fcl","fcl")})})();var z=v.exports,C=g({__proto__:null,default:z},[v.exports]);export{C as f};
@@ -1,4 +1,4 @@
1
- import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundler.e3d5f5b7.js";const p={class:"markdown-body"},d={class:"two-up"},u={class:"left"},f=l("Fields are individual pieces of content within an item. They are mapped to columns in the database. "),j=l("Learn more about Fields"),g=l("."),m=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-field-object"},"The Field Object ")]),s("li",null,[s("a",{href:"#list-all-fields"},"List All Fields ")]),s("li",null,[s("a",{href:"#list-fields-in-collection"},"List Fields in Collection ")]),s("li",null,[s("a",{href:"#retrieve-a-field"},"Retrieve a Field ")]),s("li",null,[s("a",{href:"#create-a-field"},"Create a Field ")]),s("li",null,[s("a",{href:"#update-a-field"},"Update a Field ")]),s("li",null,[s("a",{href:"#delete-a-field"},"Delete a Field ")])])])])],-1),_=s("hr",null,null,-1),y=s("h2",{id:"the-field-object",tabindex:"-1"},[l("The Field Object "),s("a",{class:"header-anchor",href:"#the-field-object"},"#")],-1),b={class:"two-up"},x={class:"left"},v={class:"definitions"},w=s("p",null,[s("code",null,"collection"),l(),s("strong",null,"string"),s("br"),l(" Name of the collection the field resides in.")],-1),q=s("p",null,[s("code",null,"field"),l(),s("strong",null,"string"),s("br"),l(" The identifier of the field. This matches the table column name.")],-1),T=s("code",null,"type",-1),k=l(),A=s("strong",null,"string",-1),E=s("br",null,null,-1),S=l(" The Directus data type of the field. See "),P=l("Types"),F=l(" for possible options."),R=s("h4",{id:"meta",tabindex:"-1"},[l("Meta "),s("a",{class:"header-anchor",href:"#meta"},"#")],-1),L=s("p",null,"Directus metadata, primarily used in the Admin App. Meta is optional.",-1),C=s("div",{class:"definitions"},[s("p",null,[s("code",null,"id"),l(),s("strong",null,"integer"),s("br"),l(" Primary key of the metadata row in "),s("code",null,"directus_fields"),l(".")]),s("p",null,[s("code",null,"collection"),l(),s("strong",null,"string"),s("br"),l(" The name of the collection this field resides in.")]),s("p",null,[s("code",null,"field"),l(),s("strong",null,"string"),s("br"),l(" Identifier of the field. Matches the column name in the database.")]),s("p",null,[s("code",null,"special"),l(),s("strong",null,"string"),s("br"),l(" Any special transform flags that apply to this field.")]),s("p",null,[s("code",null,"interface"),l(),s("strong",null,"string"),s("br"),l(" The interface used for this field.")]),s("p",null,[s("code",null,"options"),l(),s("strong",null,"object"),s("br"),l(" The interface options configured for this field. The structure is based on the interface used.")]),s("p",null,[s("code",null,"display"),l(),s("strong",null,"string"),s("br"),l(" The display used for this field.")]),s("p",null,[s("code",null,"display_options"),l(),s("strong",null,"string"),s("br"),l(" The configured options for the used display.")]),s("p",null,[s("code",null,"readonly"),l(),s("strong",null,"boolean"),s("br"),l(" If the field is considered readonly in the Admin App.")]),s("p",null,[s("code",null,"hidden"),l(),s("strong",null,"boolean"),s("br"),l(" If the field is hidden from the edit page in the Admin App.")]),s("p",null,[s("code",null,"sort"),l(),s("strong",null,"integer"),s("br"),l(" Where this field is shown on the edit page in the Admin App.")]),s("p",null,[s("code",null,"width"),l(),s("strong",null,"string"),s("br"),l(" How wide the interface is rendered on the edit page in the Admin App. One of "),s("code",null,"half"),l(", "),s("code",null,"half-left"),l(", "),s("code",null,"half-right"),l(", "),s("code",null,"half-space"),l(", "),s("code",null,"full"),l(", "),s("code",null,"fill"),l(".")]),s("p",null,[s("code",null,"translations"),l(),s("strong",null,"array"),s("br"),l(" How this field\u2019s name is displayed in the different languages in the Admin App.")]),s("p",null,[s("code",null,"note"),l(),s("strong",null,"string"),s("br"),l(" Short description displayed in the Admin App.")])],-1),Q=s("h4",{id:"schema",tabindex:"-1"},[l("Schema "),s("a",{class:"header-anchor",href:"#schema"},"#")],-1),I=s("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers. Note: schema is optional. If a field exist in directus_fields, but not in the database, it\u2019s an alias commonly used for relational (o2m) or presentation purposes in the Admin App.",-1),G=s("div",{class:"definitions"},[s("p",null,[s("code",null,"name"),l(),s("strong",null,"string"),s("br"),l(" Identifier of the field. Matches the column name in the database.")]),s("p",null,[s("code",null,"table"),l(),s("strong",null,"string"),s("br"),l(" Name of the table the column resides in.")]),s("p",null,[s("code",null,"data_type"),l(),s("strong",null,"string"),s("br"),l(" The datatype as used in the database. Note: this value is database vendor specific.")]),s("p",null,[s("code",null,"default_value"),l(),s("strong",null,"any"),s("br"),l(" The configured default value for the column.")]),s("p",null,[s("code",null,"max_length"),l(),s("strong",null,"integer"),s("br"),l(" Configured length for varchar-type columns.")]),s("p",null,[s("code",null,"numeric_precision"),l(),s("strong",null,"integer"),s("br"),l(" Precision for integer/float/decimal type fields.")]),s("p",null,[s("code",null,"numeric_scale"),l(),s("strong",null,"integer"),s("br"),l(" Scale for integer/float/decimal type fields.")]),s("p",null,[s("code",null,"is_nullable"),l(),s("strong",null,"boolean"),s("br"),l(" Whether or not the column is nullable. This is what is used as the \u201Crequired\u201D state in Directus.")]),s("p",null,[s("code",null,"is_primary_key"),l(),s("strong",null,"boolean"),s("br"),l(" Whether or not the field is the primary key of the table.")]),s("p",null,[s("code",null,"foreign_key_column"),l(),s("strong",null,"string"),s("br"),l(" If the current column has a foreign key constraint, this points to the related column.")]),s("p",null,[s("code",null,"foreign_key_table"),l(),s("strong",null,"string"),s("br"),l(" If the current column has a foreign key constraint, this points to the related table.")]),s("p",null,[s("code",null,"comment"),l(),s("strong",null,"string"),s("br"),l(" Comment as stored in the database.")])],-1),O=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),l(`
1
+ import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundler.e3d5f5b7.js";const p={class:"markdown-body"},d={class:"two-up"},u={class:"left"},f=l("Fields are individual pieces of content within an item. They are mapped to columns in the database. "),j=l("Learn more about Fields"),g=l("."),m=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-field-object"}," The Field Object")]),s("li",null,[s("a",{href:"#list-all-fields"}," List All Fields")]),s("li",null,[s("a",{href:"#list-fields-in-collection"}," List Fields in Collection")]),s("li",null,[s("a",{href:"#retrieve-a-field"}," Retrieve a Field")]),s("li",null,[s("a",{href:"#create-a-field"}," Create a Field")]),s("li",null,[s("a",{href:"#update-a-field"}," Update a Field")]),s("li",null,[s("a",{href:"#delete-a-field"}," Delete a Field")])])])])],-1),_=s("hr",null,null,-1),y=s("h2",{id:"the-field-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-field-object"},"#"),l(" The Field Object")],-1),b={class:"two-up"},x={class:"left"},v={class:"definitions"},w=s("p",null,[s("code",null,"collection"),l(),s("strong",null,"string"),s("br"),l(" Name of the collection the field resides in.")],-1),q=s("p",null,[s("code",null,"field"),l(),s("strong",null,"string"),s("br"),l(" The identifier of the field. This matches the table column name.")],-1),T=s("code",null,"type",-1),k=l(),A=s("strong",null,"string",-1),E=s("br",null,null,-1),S=l(" The Directus data type of the field. See "),P=l("Types"),F=l(" for possible options."),R=s("h4",{id:"meta",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#meta"},"#"),l(" Meta")],-1),L=s("p",null,"Directus metadata, primarily used in the Admin App. Meta is optional.",-1),C=s("div",{class:"definitions"},[s("p",null,[s("code",null,"id"),l(),s("strong",null,"integer"),s("br"),l(" Primary key of the metadata row in "),s("code",null,"directus_fields"),l(".")]),s("p",null,[s("code",null,"collection"),l(),s("strong",null,"string"),s("br"),l(" The name of the collection this field resides in.")]),s("p",null,[s("code",null,"field"),l(),s("strong",null,"string"),s("br"),l(" Identifier of the field. Matches the column name in the database.")]),s("p",null,[s("code",null,"special"),l(),s("strong",null,"string"),s("br"),l(" Any special transform flags that apply to this field.")]),s("p",null,[s("code",null,"interface"),l(),s("strong",null,"string"),s("br"),l(" The interface used for this field.")]),s("p",null,[s("code",null,"options"),l(),s("strong",null,"object"),s("br"),l(" The interface options configured for this field. The structure is based on the interface used.")]),s("p",null,[s("code",null,"display"),l(),s("strong",null,"string"),s("br"),l(" The display used for this field.")]),s("p",null,[s("code",null,"display_options"),l(),s("strong",null,"string"),s("br"),l(" The configured options for the used display.")]),s("p",null,[s("code",null,"readonly"),l(),s("strong",null,"boolean"),s("br"),l(" If the field is considered readonly in the Admin App.")]),s("p",null,[s("code",null,"hidden"),l(),s("strong",null,"boolean"),s("br"),l(" If the field is hidden from the edit page in the Admin App.")]),s("p",null,[s("code",null,"sort"),l(),s("strong",null,"integer"),s("br"),l(" Where this field is shown on the edit page in the Admin App.")]),s("p",null,[s("code",null,"width"),l(),s("strong",null,"string"),s("br"),l(" How wide the interface is rendered on the edit page in the Admin App. One of "),s("code",null,"half"),l(", "),s("code",null,"half-left"),l(", "),s("code",null,"half-right"),l(", "),s("code",null,"half-space"),l(", "),s("code",null,"full"),l(", "),s("code",null,"fill"),l(".")]),s("p",null,[s("code",null,"translations"),l(),s("strong",null,"array"),s("br"),l(" How this field\u2019s name is displayed in the different languages in the Admin App.")]),s("p",null,[s("code",null,"note"),l(),s("strong",null,"string"),s("br"),l(" Short description displayed in the Admin App.")])],-1),Q=s("h4",{id:"schema",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#schema"},"#"),l(" Schema")],-1),I=s("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers. Note: schema is optional. If a field exist in directus_fields, but not in the database, it\u2019s an alias commonly used for relational (o2m) or presentation purposes in the Admin App.",-1),G=s("div",{class:"definitions"},[s("p",null,[s("code",null,"name"),l(),s("strong",null,"string"),s("br"),l(" Identifier of the field. Matches the column name in the database.")]),s("p",null,[s("code",null,"table"),l(),s("strong",null,"string"),s("br"),l(" Name of the table the column resides in.")]),s("p",null,[s("code",null,"data_type"),l(),s("strong",null,"string"),s("br"),l(" The datatype as used in the database. Note: this value is database vendor specific.")]),s("p",null,[s("code",null,"default_value"),l(),s("strong",null,"any"),s("br"),l(" The configured default value for the column.")]),s("p",null,[s("code",null,"max_length"),l(),s("strong",null,"integer"),s("br"),l(" Configured length for varchar-type columns.")]),s("p",null,[s("code",null,"numeric_precision"),l(),s("strong",null,"integer"),s("br"),l(" Precision for integer/float/decimal type fields.")]),s("p",null,[s("code",null,"numeric_scale"),l(),s("strong",null,"integer"),s("br"),l(" Scale for integer/float/decimal type fields.")]),s("p",null,[s("code",null,"is_nullable"),l(),s("strong",null,"boolean"),s("br"),l(" Whether or not the column is nullable. This is what is used as the \u201Crequired\u201D state in Directus.")]),s("p",null,[s("code",null,"is_primary_key"),l(),s("strong",null,"boolean"),s("br"),l(" Whether or not the field is the primary key of the table.")]),s("p",null,[s("code",null,"foreign_key_column"),l(),s("strong",null,"string"),s("br"),l(" If the current column has a foreign key constraint, this points to the related column.")]),s("p",null,[s("code",null,"foreign_key_table"),l(),s("strong",null,"string"),s("br"),l(" If the current column has a foreign key constraint, this points to the related table.")]),s("p",null,[s("code",null,"comment"),l(),s("strong",null,"string"),s("br"),l(" Comment as stored in the database.")])],-1),O=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),l(`
2
2
  `),s("span",{class:"hljs-attr"},'"collection"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-string"},'"articles"'),s("span",{class:"hljs-punctuation"},","),l(`
3
3
  `),s("span",{class:"hljs-attr"},'"field"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-string"},'"id"'),s("span",{class:"hljs-punctuation"},","),l(`
4
4
  `),s("span",{class:"hljs-attr"},'"type"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-string"},'"integer"'),s("span",{class:"hljs-punctuation"},","),l(`
@@ -34,43 +34,43 @@ import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundl
34
34
  `),s("span",{class:"hljs-attr"},'"comment"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),l(`
35
35
  `),s("span",{class:"hljs-punctuation"},"}"),l(`
36
36
  `),s("span",{class:"hljs-punctuation"},"}"),l(`
37
- `)])])],-1),D=s("hr",null,null,-1),B=s("h2",{id:"list-all-fields",tabindex:"-1"},[l("List All Fields "),s("a",{class:"header-anchor",href:"#list-all-fields"},"#")],-1),H=s("p",null,"List the available fields.",-1),M=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters",tabindex:"-1"},[l("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"returns",tabindex:"-1"},[l("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")]),s("p",null,[l("An array of "),s("a",{href:"#the-field-object"},"field objects"),l(".")])]),s("div",{class:"right"},[s("h3",{id:"rest-api",tabindex:"-1"},[l("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")]),s("pre",null,[s("code",null,`GET /fields
38
- `)]),s("h3",{id:"graphql",tabindex:"-1"},[l("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
37
+ `)])])],-1),D=s("hr",null,null,-1),B=s("h2",{id:"list-all-fields",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-all-fields"},"#"),l(" List All Fields")],-1),H=s("p",null,"List the available fields.",-1),M=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),l(" Query Parameters")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),l(" Returns")]),s("p",null,[l("An array of "),s("a",{href:"#the-field-object"},"field objects"),l(".")])]),s("div",{class:"right"},[s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),l(" REST API")]),s("pre",null,[s("code",null,`GET /fields
38
+ `)]),s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),l(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
39
39
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),l(` {
40
40
  fields: [directus_fields]
41
41
  }
42
- `)])]),s("h5",{id:"example",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),l(` {
42
+ `)])]),s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),l(` {
43
43
  fields {
44
44
  collection
45
45
  field
46
46
  }
47
47
  }
48
- `)])])])],-1),N=s("hr",null,null,-1),W=s("h2",{id:"list-fields-in-collection",tabindex:"-1"},[l("List Fields in Collection "),s("a",{class:"header-anchor",href:"#list-fields-in-collection"},"#")],-1),U=s("p",null,"List the available fields in a given collection.",-1),V=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-1",tabindex:"-1"},[l("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-1"},"#")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"returns-1",tabindex:"-1"},[l("Returns "),s("a",{class:"header-anchor",href:"#returns-1"},"#")]),s("p",null,[l("An array of "),s("a",{href:"#the-field-object"},"field objects"),l(".")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-1",tabindex:"-1"},[l("REST API "),s("a",{class:"header-anchor",href:"#rest-api-1"},"#")]),s("pre",null,[s("code",null,`GET /fields/:collection
49
- `)]),s("h5",{id:"example-1",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-1"},"#")]),s("pre",null,[s("code",null,`GET /fields/articles
50
- `)]),s("h3",{id:"graphql-1",tabindex:"-1"},[l("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-1"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
48
+ `)])])])],-1),N=s("hr",null,null,-1),W=s("h2",{id:"list-fields-in-collection",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-fields-in-collection"},"#"),l(" List Fields in Collection")],-1),U=s("p",null,"List the available fields in a given collection.",-1),V=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),l(" Query Parameters")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),l(" Returns")]),s("p",null,[l("An array of "),s("a",{href:"#the-field-object"},"field objects"),l(".")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),l(" REST API")]),s("pre",null,[s("code",null,`GET /fields/:collection
49
+ `)]),s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),l(" Example")]),s("pre",null,[s("code",null,`GET /fields/articles
50
+ `)]),s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),l(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
51
51
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),l(` {
52
52
  fields_in_collection(collection:`),s("span",{class:"hljs-type"}," String"),l(`!): directus_fields
53
53
  }
54
- `)])]),s("h5",{id:"example-2",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),l(` {
54
+ `)])]),s("h5",{id:"example-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-2"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),l(` {
55
55
  fields_in_collection(collection: `),s("span",{class:"hljs-string"},'"articles"'),l(`) {
56
56
  collection
57
57
  field
58
58
  }
59
59
  }
60
- `)])])])],-1),z=s("hr",null,null,-1),J=s("h2",{id:"retrieve-a-field",tabindex:"-1"},[l("Retrieve a Field "),s("a",{class:"header-anchor",href:"#retrieve-a-field"},"#")],-1),K=s("p",null,"Get a single field in a given collection.",-1),X=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-2",tabindex:"-1"},[l("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"returns-2",tabindex:"-1"},[l("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")]),s("p",null,[l("A "),s("a",{href:"#the-field-object"},"field object"),l(".")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-2",tabindex:"-1"},[l("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",null,`GET /fields/:collection/:field
61
- `)]),s("h5",{id:"example-3",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-3"},"#")]),s("pre",null,[s("code",null,`GET /fields/articles/title
62
- `)]),s("h3",{id:"graphql-2",tabindex:"-1"},[l("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
60
+ `)])])])],-1),z=s("hr",null,null,-1),J=s("h2",{id:"retrieve-a-field",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-field"},"#"),l(" Retrieve a Field")],-1),K=s("p",null,"Get a single field in a given collection.",-1),X=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),l(" Query Parameters")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),l(" Returns")]),s("p",null,[l("A "),s("a",{href:"#the-field-object"},"field object"),l(".")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),l(" REST API")]),s("pre",null,[s("code",null,`GET /fields/:collection/:field
61
+ `)]),s("h5",{id:"example-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-3"},"#"),l(" Example")]),s("pre",null,[s("code",null,`GET /fields/articles/title
62
+ `)]),s("h3",{id:"graphql-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-2"},"#"),l(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
63
63
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),l(` {
64
64
  fields_by_name(collection:`),s("span",{class:"hljs-type"}," String"),l("!, field:"),s("span",{class:"hljs-type"}," String"),l(`!): directus_fields
65
65
  }
66
- `)])]),s("h5",{id:"example-4",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-4"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),l(` {
66
+ `)])]),s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),l(` {
67
67
  fields_by_name(collection: `),s("span",{class:"hljs-string"},'"articles"'),l(", field: "),s("span",{class:"hljs-string"},'"title"'),l(`) {
68
68
  collection
69
69
  field
70
70
  }
71
71
  }
72
- `)])])])],-1),Y=s("hr",null,null,-1),Z=s("h2",{id:"create-a-field",tabindex:"-1"},[l("Create a Field "),s("a",{class:"header-anchor",href:"#create-a-field"},"#")],-1),$=s("p",null,"Create a new field in the given collection.",-1),ss=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-3",tabindex:"-1"},[l("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-3"},"#")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"request-body",tabindex:"-1"},[l("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")]),s("div",{class:"definitions"},[s("p",null,[s("code",null,"field"),l(),s("strong",null,"Required"),s("br"),l(" Field key, also used as the column name.")]),s("p",null,[s("code",null,"type"),l(),s("strong",null,"Required"),s("br"),l(" One of the Directus types. This in turn controls what datatype is used for the column in the database. Setting the type to "),s("code",null,"alias"),l(" prevents a column from being created in the database.")]),s("p",null,[s("code",null,"meta"),s("br"),l(" Any of the optional meta values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")]),s("p",null,[s("code",null,"schema"),s("br"),l(" Any of the optional schema values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")])]),s("h3",{id:"returns-3",tabindex:"-1"},[l("Returns "),s("a",{class:"header-anchor",href:"#returns-3"},"#")]),s("p",null,[l("The "),s("a",{href:"#the-field-object"},"field object"),l(" for the created field.")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-3",tabindex:"-1"},[l("REST API "),s("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),s("pre",null,[s("code",null,`POST /fields/:collection
73
- `)]),s("h5",{id:"example-5",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-5"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /fields/articles"),l(`
72
+ `)])])])],-1),Y=s("hr",null,null,-1),Z=s("h2",{id:"create-a-field",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-a-field"},"#"),l(" Create a Field")],-1),$=s("p",null,"Create a new field in the given collection.",-1),ss=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),l(" Query Parameters")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),l(" Request Body")]),s("div",{class:"definitions"},[s("p",null,[s("code",null,"field"),l(),s("strong",null,"Required"),s("br"),l(" Field key, also used as the column name.")]),s("p",null,[s("code",null,"type"),l(),s("strong",null,"Required"),s("br"),l(" One of the Directus types. This in turn controls what datatype is used for the column in the database. Setting the type to "),s("code",null,"alias"),l(" prevents a column from being created in the database.")]),s("p",null,[s("code",null,"meta"),s("br"),l(" Any of the optional meta values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")]),s("p",null,[s("code",null,"schema"),s("br"),l(" Any of the optional schema values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")])]),s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),l(" Returns")]),s("p",null,[l("The "),s("a",{href:"#the-field-object"},"field object"),l(" for the created field.")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),l(" REST API")]),s("pre",null,[s("code",null,`POST /fields/:collection
73
+ `)]),s("h5",{id:"example-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-5"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /fields/articles"),l(`
74
74
 
75
75
  `),s("span",{class:"hljs-punctuation"},"{"),l(`
76
76
  `),s("span",{class:"hljs-attr"},'"field"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-string"},'"title"'),s("span",{class:"hljs-punctuation"},","),l(`
@@ -82,11 +82,11 @@ import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundl
82
82
  `),s("span",{class:"hljs-attr"},'"default_value"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-string"},'"Hello World"'),l(`
83
83
  `),s("span",{class:"hljs-punctuation"},"}"),l(`
84
84
  `),s("span",{class:"hljs-punctuation"},"}"),l(`
85
- `)])]),s("h3",{id:"graphql-3",tabindex:"-1"},[l("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-3"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
85
+ `)])]),s("h3",{id:"graphql-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-3"},"#"),l(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
86
86
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),l(` {
87
87
  create_fields_item(collection:`),s("span",{class:"hljs-type"}," String"),l(`!, data: create_directus_fields_input!): directus_fields
88
88
  }
89
- `)])]),s("h5",{id:"example-6",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-6"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),l(` {
89
+ `)])]),s("h5",{id:"example-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-6"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),l(` {
90
90
  create_fields_item(
91
91
  collection: `),s("span",{class:"hljs-string"},'"articles"'),l(`
92
92
  data: { field: `),s("span",{class:"hljs-string"},'"title"'),l(", "),s("span",{class:"hljs-keyword"},"type"),l(": "),s("span",{class:"hljs-string"},'"string"'),l(", meta: { icon: "),s("span",{class:"hljs-string"},'"title"'),l(" }, "),s("span",{class:"hljs-keyword"},"schema"),l(": { default_value: "),s("span",{class:"hljs-string"},'"Hello World"'),l(` } }
@@ -95,8 +95,8 @@ import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundl
95
95
  field
96
96
  }
97
97
  }
98
- `)])])])],-1),ls=s("hr",null,null,-1),es=s("h2",{id:"update-a-field",tabindex:"-1"},[l("Update a Field "),s("a",{class:"header-anchor",href:"#update-a-field"},"#")],-1),as=s("p",null,"Updates the given field in the given collection.",-1),ns=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-4",tabindex:"-1"},[l("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-4"},"#")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"request-body-1",tabindex:"-1"},[l("Request Body "),s("a",{class:"header-anchor",href:"#request-body-1"},"#")]),s("div",{class:"definitions"},[s("p",null,[s("code",null,"type"),s("br"),l(" The new type for the field.")]),s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Changing Type"),s("p",null,"Types may not be compatible, and/or data might be truncated / corrupted. Please be careful when changing types of an existing field with content.")]),s("p",null,[s("code",null,"meta"),s("br"),l(" Any of the optional meta values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")]),s("p",null,[s("code",null,"schema"),s("br"),l(" Any of the optional schema values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")])]),s("p",null,"Updating the field name is not supported at this time."),s("h3",{id:"returns-4",tabindex:"-1"},[l("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")]),s("p",null,[l("The "),s("a",{href:"#the-field-object"},"field object"),l(" for the updated field.")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-4",tabindex:"-1"},[l("REST API "),s("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),s("pre",null,[s("code",null,`PATCH /fields/:collection/:field
99
- `)]),s("h5",{id:"example-7",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-7"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /fields/articles/title"),l(`
98
+ `)])])])],-1),ls=s("hr",null,null,-1),es=s("h2",{id:"update-a-field",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-field"},"#"),l(" Update a Field")],-1),as=s("p",null,"Updates the given field in the given collection.",-1),ns=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"query-parameters-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),l(" Query Parameters")]),s("p",null,"This endpoint doesn\u2019t currently support any query parameters."),s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),l(" Request Body")]),s("div",{class:"definitions"},[s("p",null,[s("code",null,"type"),s("br"),l(" The new type for the field.")]),s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Changing Type"),s("p",null,"Types may not be compatible, and/or data might be truncated / corrupted. Please be careful when changing types of an existing field with content.")]),s("p",null,[s("code",null,"meta"),s("br"),l(" Any of the optional meta values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")]),s("p",null,[s("code",null,"schema"),s("br"),l(" Any of the optional schema values in the "),s("a",{href:"#the-field-object"},"field object"),l(".")])]),s("p",null,"Updating the field name is not supported at this time."),s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),l(" Returns")]),s("p",null,[l("The "),s("a",{href:"#the-field-object"},"field object"),l(" for the updated field.")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-4"},"#"),l(" REST API")]),s("pre",null,[s("code",null,`PATCH /fields/:collection/:field
99
+ `)]),s("h5",{id:"example-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-7"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /fields/articles/title"),l(`
100
100
 
101
101
  `),s("span",{class:"hljs-punctuation"},"{"),l(`
102
102
  `),s("span",{class:"hljs-attr"},'"meta"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-punctuation"},"{"),l(`
@@ -106,11 +106,11 @@ import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundl
106
106
  `),s("span",{class:"hljs-attr"},'"default_value"'),s("span",{class:"hljs-punctuation"},":"),l(),s("span",{class:"hljs-string"},'"Hello World!"'),l(`
107
107
  `),s("span",{class:"hljs-punctuation"},"}"),l(`
108
108
  `),s("span",{class:"hljs-punctuation"},"}"),l(`
109
- `)])]),s("h3",{id:"graphql-4",tabindex:"-1"},[l("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
109
+ `)])]),s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),l(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
110
110
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),l(` {
111
111
  update_fields_item(collection:`),s("span",{class:"hljs-type"}," String"),l("!, field:"),s("span",{class:"hljs-type"}," String"),l(`!, data: update_directus_fields_input!): directus_fields
112
112
  }
113
- `)])]),s("h5",{id:"example-8",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-8"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),l(` {
113
+ `)])]),s("h5",{id:"example-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-8"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),l(` {
114
114
  update_fields_item(
115
115
  collection: `),s("span",{class:"hljs-string"},'"articles"'),l(`
116
116
  field: `),s("span",{class:"hljs-string"},'"title"'),l(`
@@ -120,13 +120,13 @@ import{a as t,o,b as h,w as e,g as s,e as i,B as l}from"./runtime-core.esm-bundl
120
120
  field
121
121
  }
122
122
  }
123
- `)])])])],-1),ts=s("hr",null,null,-1),is=s("h2",{id:"delete-a-field",tabindex:"-1"},[l("Delete a Field "),s("a",{class:"header-anchor",href:"#delete-a-field"},"#")],-1),cs=s("p",null,"Deletes the given field in the given collection.",-1),rs=s("div",{class:"two-up"},[s("div",{class:"left"},[s("div",{class:"danger hint"},[s("div",{class:"hint-title"},"Destructive"),s("p",null,"Be aware, this will delete the column from the database, including all data in it. This action can\u2019t be undone.")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-5",tabindex:"-1"},[l("REST API "),s("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),s("pre",null,[s("code",null,`DELETE /fields/:collection/:field
124
- `)]),s("h5",{id:"example-9",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-9"},"#")]),s("pre",null,[s("code",null,`DELETE /fields/articles/title
125
- `)]),s("h3",{id:"graphql-5",tabindex:"-1"},[l("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-5"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
123
+ `)])])])],-1),ts=s("hr",null,null,-1),is=s("h2",{id:"delete-a-field",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-a-field"},"#"),l(" Delete a Field")],-1),cs=s("p",null,"Deletes the given field in the given collection.",-1),rs=s("div",{class:"two-up"},[s("div",{class:"left"},[s("div",{class:"danger hint"},[s("div",{class:"hint-title"},"Destructive"),s("p",null,"Be aware, this will delete the column from the database, including all data in it. This action can\u2019t be undone.")])]),s("div",{class:"right"},[s("h3",{id:"rest-api-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-5"},"#"),l(" REST API")]),s("pre",null,[s("code",null,`DELETE /fields/:collection/:field
124
+ `)]),s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),l(" Example")]),s("pre",null,[s("code",null,`DELETE /fields/articles/title
125
+ `)]),s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),l(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
126
126
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),l(` {
127
127
  delete_fields_item(collection:`),s("span",{class:"hljs-type"}," String"),l("!, field:"),s("span",{class:"hljs-type"}," String"),l(`!): delete_field
128
128
  }
129
- `)])]),s("h5",{id:"example-10",tabindex:"-1"},[l("Example "),s("a",{class:"header-anchor",href:"#example-10"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),l(` {
129
+ `)])]),s("h5",{id:"example-10",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-10"},"#"),l(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),l(` {
130
130
  delete_fields_item(collection: `),s("span",{class:"hljs-string"},'"articles"'),l(", field: "),s("span",{class:"hljs-string"},'"title"'),l(`) {
131
131
  collection
132
132
  field
@@ -0,0 +1 @@
1
+ import{a as n,o as d,b as c,w as t,g as e,e as i,B as l}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,"The File Library Module aggregates all files within the Directus Project into one consolidated library. It is a full-featured Digital Asset Management (DAM) system for storing, organizing, browsing, and transforming your various files and assets.")],-1),p=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/file-library-20220307A.webp",alt:"File Library"})],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#how-it-works"}," How it Works")]),e("li",null,[e("a",{href:"#files"}," Files")]),e("li",null,[e("a",{href:"#edit-an-image"}," Edit an Image")]),e("li",null,[e("a",{href:"#upload-a-file"}," Upload a File")]),e("li",null,[e("a",{href:"#replace-a-file"}," Replace a File")]),e("li",null,[e("a",{href:"#folders"}," Folders")]),e("li",null,[e("a",{href:"#create-a-folder"}," Create a Folder")]),e("li",null,[e("a",{href:"#rename-a-folder"}," Rename a Folder")]),e("li",null,[e("a",{href:"#move-a-folder"}," Move a Folder")]),e("li",null,[e("a",{href:"#delete-a-folder"}," Delete a Folder")]),e("li",null,[e("a",{href:"#more-help"}," More Help")])])])],-1),_={class:"warning hint"},m=e("div",{class:"hint-title"},"More Documents on Folder and File Management",-1),g=l("This is a non-technical, no-code guide to the File Library Module. Please note there is documentation on programmatic "),b=l("Folder"),F=l(" and "),y=l("File"),v=l(" management via the API."),w=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),l(" How it Works")],-1),k={class:"tip hint"},A=e("div",{class:"hint-title"},"Required Knowledge",-1),C=l("Familiarity with the "),D=l("Collections Page"),T=l(" will be helpful but not necessary."),I=l("The File Library acts as one big "),L=e("a",{href:"#folders"},"Folder",-1),P=l(" to store all uploaded "),x=e("a",{href:"#files"},"Files",-1),M=l(". Sub-folders can be created within the File Library to help Files stay organized. Folders and File information are stored in regular Collections, which means "),S=l("User and Role access permissions"),E=l(" are fully configurable and granular on both Folders and Files. Multiple files can be uploaded at once through the app and also programmatically via the API. Any type of file can be uploaded, "),H=e("em",null,"not just images",-1),U=l(". When a Folder is selected from the Navigation Bar, the "),R=e("a",{href:"#folders"},"File Listing Page",-1),B=l(" is presented. This page has all the same features and functionalities as the "),N=l("Collections Page"),W=l("."),j=e("video",{title:"How the File Library Works",autoplay:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/how-it-works-20220305A.mp4",type:"video/mp4"}),e("p",null,[l(" Your browser is not displaying the video for some reason. Here's a "),e("a",{href:""},"link to the video"),l(" instead. ")])],-1),z=e("ol",null,[e("li",null,[l("Select a Folder. There are two options: "),e("ul",null,[e("li",null,"Choose desired Folder from the Navigation Bar."),e("li",null,[l("Click "),e("span",{mi:"",btn:"",sec:""},"create_new_folder"),l(" in the Page Header, name your folder, and click "),e("strong",null,"\u201CSave\u201D"),l(".")])])]),e("li",null,[l("Click "),e("span",{mi:"",btn:""},"add"),l(" in the Page Header. A popover will appear.")]),e("li",null,[l("Upload your file. You have 3 options: "),e("ul",null,[e("li",null,"Drag a file from your desktop to the popup."),e("li",null,"Click the popup area to manually select a file from your device."),e("li",null,[l("Click "),e("span",{mi:"",icon:""},"more_vert"),l(" in the popover and choose "),e("strong",null,"\u201CImport from URL\u201D"),l(".")])])]),e("li",null,"Optional: Click the File Display to open the File Details Page and fill in information as desired.")],-1),O=e("h2",{id:"files",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#files"},"#"),l(" Files")],-1),K=l("When a file is clicked in the File Listing Page, the File Details Page appears. This is a custom form for viewing assets and embeds, with core Fields included out-of-the-box (see below), and the ability for Administrators to add additional custom Fields. This page has the same features and functionality as the "),V=l("Item Page"),Y=l("."),q=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/files-20220305A.webp",alt:"Files"})],-1),J=e("h3",{id:"action-buttons",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#action-buttons"},"#"),l(" Action Buttons")],-1),X=e("p",null,"Notice the following Buttons in the Header:",-1),G=e("ul",null,[e("li",null,[e("span",{mi:"",btn:""},"check"),l(" \u2013 Saves any edits made to the file. ")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"tune"),l(" \u2013 Please see [Edit an Image](#edit-an-image) to learn more. ")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"save_alt"),l(" \u2013 Downloads the file to your current device. ")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"drive_file_move"),l(" \u2013 Moves selected File(s) to another Folder. ")]),e("li",null,[e("span",{mi:"",btn:"",dngr:""},"delete"),l(" \u2013 Permanently removes the File and its metadata. This action is permanent and cannot be undone. ")])],-1),Q=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Deleting Files Linked to Items"),e("p",null,[l("By default, Directus will not allow you to delete a File until you remove it from any and all related Items. However, this behavior can be reconfigured so that Files automatically update when the image is deleted by setting the relational constraint of your File Field to "),e("code",null,"SET NULL"),l(" or "),e("code",null,"CASCADE"),l(" when the File is deleted.")])],-1),Z=e("h3",{id:"file-details",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#file-details"},"#"),l(" File Details")],-1),$=e("p",null,[l("The Files Collection comes pre-configured with the following Fields out of the box. New Fields can be created and customized as needed in "),e("strong",null,"Settings > Data Model"),l(". However the pre-configured Fields cannot be changed or deleted.")],-1),ee=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/file-details-20220305A.webp",alt:"File Details"})],-1),le=e("ul",null,[e("li",null,[e("strong",null,"Preview"),l(" \u2013 A preview of the image or file.")]),e("li",null,[e("strong",null,"Title"),l(" \u2013 A title for the File.")]),e("li",null,[e("strong",null,"Description"),l(" \u2013 A description of the File.")]),e("li",null,[e("strong",null,"Tags"),l(" \u2013 Keywords used for search-ability.")]),e("li",null,[e("strong",null,"Location"),l(" \u2013 An optional location "),e("em",null,"(e.g. where a photo was taken)"),l(".")]),e("li",null,[e("strong",null,"Storage"),l(" \u2013 Which storage adapter is used to store the file asset.")]),e("li",null,[e("strong",null,"Filename (Disk)"),l(" \u2013 LOCKED. This is the actual name of the file in storage.")]),e("li",null,[e("strong",null,"Filename (Download)"),l(" \u2013 Allows you to set the name of the file when it is downloaded.")])],-1),te=e("h3",{id:"file-sidebar",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#file-sidebar"},"#"),l(" File Sidebar")],-1),oe=e("p",null,"The file sidebar also includes the following details, which are not editable and serve as metadata.",-1),ie=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/file-sidebar-20220305A.webp",alt:"File Sidebar"})],-1),ae=e("ul",null,[e("li",null,[e("strong",null,"Type"),l(" \u2013 The MIME type of the file, displayed in the App as a formatted media type.")]),e("li",null,[e("strong",null,"Dimensions"),l(" \u2013 "),e("em",null,"Images only"),l(". The width and height of the image in pixels.")]),e("li",null,[e("strong",null,"Size"),l(" \u2013 The file-size the asset takes up in the storage adapter.")]),e("li",null,[e("strong",null,"Created"),l(" \u2013 The timestamp of when the file was uploaded to the Project.")]),e("li",null,[e("strong",null,"Owner"),l(" \u2013 The User that uploaded the file to the Project.")]),e("li",null,[e("strong",null,"Modified"),l(" \u2013 The timestamp of when the file was last modified.")]),e("li",null,[e("strong",null,"Edited By"),l(" \u2013 The User that modified the File.")]),e("li",null,[e("strong",null,"Folder"),l(" \u2013 The current parent folder that contains the File.")]),e("li",null,[e("strong",null,"Metadata"),l(" \u2013 Metadata JSON dump of the File\u2019s EXIF, IPTC, and ICC information.")])],-1),ne=e("h2",{id:"edit-an-image",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#edit-an-image"},"#"),l(" Edit an Image")],-1),se=e("p",null,"Rotate, crop, flip, or adjust aspect ratios of an image.",-1),re=e("video",{alt:"Edit an Image",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220516A/edit-an-image-20220516A.mp4",type:"video/mp4"})],-1),de=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", click a file to open its detail page.")]),e("li",null,[l("Click the "),e("span",{mi:"",btn:"",sec:""},"tune"),l(" button in the top right to open the image editor.")]),e("li",null,[l("Make your changes and click "),e("span",{mi:"",btn:""},"check"),l(" in the top right to save the updates.")])],-1),ce=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"Edits overwrite the original file on disk. This can\u2019t be reversed.")],-1),he=e("h2",{id:"upload-a-file",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#upload-a-file"},"#"),l(" Upload a File")],-1),ue=l("We covered the File Library\u2019s three upload methods in "),pe=e("a",{href:"#how-it-works"},"How it Works",-1),fe=l(". Keep in mind that files can also be added through different Interfaces as well. For example, Users can upload an Avatar image when they fill in their User Details. Similarly, Items with an Image Field will have a file upload Interface on the Item Detail page. Files can also be "),_e=l("uploaded programmatically via the API"),me=l("."),ge=e("h2",{id:"replace-a-file",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#replace-a-file"},"#"),l(" Replace a File")],-1),be=e("p",null,"When a file is replaced, its existing info and all relationships are kept.",-1),Fe=e("video",{alt:"Replace a File",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220608A/replace-a-file-20220608A.mp4",type:"video/mp4"})],-1),ye=e("ol",null,[e("li",null,"Click the Image Preview on the File Detail page. A popup will appear."),e("li",null,[l("Upload your file. You have 3 options: "),e("ul",null,[e("li",null,"Drag a file from your desktop to the popup."),e("li",null,"Click the popup area to manually select a file from your device."),e("li",null,[l("Click "),e("span",{mi:"",icon:""},"more_vert"),l(" in the popover and choose "),e("strong",null,"\u201CImport from URL\u201D"),l(".")])])])],-1),ve=e("h2",{id:"folders",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#folders"},"#"),l(" Folders")],-1),we=e("p",null,"Folders provide the organization system for Files.",-1),ke=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/folders-20220305A.webp",alt:"Folders"})],-1),Ae=l("They can be named, renamed, and nested as sub-folders anywhere in the Folder hierarchy. Once a Folder is selected from the Navigation Bar, File Listing Page opens. The File Listing Page displays all Files within a Folder. It also enables all other features and functionalities from the "),Ce=l("Collections Page"),De=l(" such as batch editing, batch deleting, sorting, filtering, searching, etc. Folders can also be managed "),Te=l("programmatically via the API"),Ie=l("."),Le=e("h2",{id:"create-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-folder"},"#"),l(" Create a Folder")],-1),Pe=e("video",{alt:"Create a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/create-a-folder-20220305A.mp4",type:"video/mp4"})],-1),xe=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", click on the "),e("span",{mi:"",btn:"",sec:""},"create_new_folder"),l(" button located in the Header.")]),e("li",null,"Fill in a Folder name as desired."),e("li",null,[l("Click "),e("strong",null,"\u201CSave\u201D"),l(".")])],-1),Me=e("h2",{id:"rename-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rename-a-folder"},"#"),l(" Rename a Folder")],-1),Se=e("video",{alt:"Renaming a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/rename-a-folder-20220215A.mp4",type:"video/mp4"})],-1),Ee=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", right-click on the Folder you wish to rename and select \u201CRename Folder\u201D.")]),e("li",null,"Update the Folder name as desired."),e("li",null,[l("Click "),e("strong",null,"\u201CSave\u201D"),l(".")])],-1),He=e("h2",{id:"move-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#move-a-folder"},"#"),l(" Move a Folder")],-1),Ue=e("video",{alt:"Moving a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/move-a-folder20220305A.mp4",type:"video/mp4"})],-1),Re=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", right-click on the folder you wish to move and select "),e("strong",null,"\u201CMove to Folder\u201D"),l(". A popup will appear.")]),e("li",null,"Select a Folder to serve as the new Parent Folder."),e("li",null,[l("Click "),e("strong",null,"\u201CSave\u201D"),l(".")])],-1),Be=e("h2",{id:"delete-a-folder",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-a-folder"},"#"),l(" Delete a Folder")],-1),Ne=e("video",{alt:"Deleting a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/delete-a-folder-20220215A.mp4",type:"video/mp4"})],-1),We=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", right-click on the Folder you wish to delete and select "),e("strong",null,"\u201CDelete Folder\u201D"),l(".")]),e("li",null,[l("Click "),e("strong",null,"\u201CDelete\u201D"),l(".")])],-1),je=e("div",{class:"tip hint"},[e("p",null,"When you delete a Folder, any nested Files and Folders will be moved one level up.")],-1),ze=e("h2",{id:"more-help",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#more-help"},"#"),l(" More Help")],-1),Oe=e("p",null,[l("Looking for technical support for your non-enterprise project? Chat with thousands of engineers within our growing "),e("a",{href:"https://discord.com/invite/directus",target:"_blank",rel:"noopener noreferrer"},"Community on Discord")],-1),Je="File Library",Xe=!1,Ge={name:"file-library",setup(Ke,{expose:s}){const a={title:"File Library",modularExtension:!1};return s({frontmatter:a}),(Ve,Ye)=>{const o=n("router-link"),r=n("docs-wrapper");return d(),c(r,{frontmatter:a},{default:t(()=>[e("div",h,[u,p,f,e("div",_,[m,e("p",null,[g,i(o,{to:"/docs/reference/system/folders/"},{default:t(()=>[b]),_:1}),F,i(o,{to:"/docs/reference/files/"},{default:t(()=>[y]),_:1}),v])]),w,e("div",k,[A,e("p",null,[C,i(o,{to:"/docs/app/content-collections/"},{default:t(()=>[D]),_:1}),T])]),e("p",null,[I,L,P,x,M,i(o,{to:"/docs/configuration/users-roles-permissions.md"},{default:t(()=>[S]),_:1}),E,H,U,R,B,i(o,{to:"/docs/app/content-collections/"},{default:t(()=>[N]),_:1}),W]),j,z,O,e("p",null,[K,i(o,{to:"/docs/getting-started/glossary/#items"},{default:t(()=>[V]),_:1}),Y]),q,J,X,G,Q,Z,$,ee,le,te,oe,ie,ae,ne,se,re,de,ce,he,e("p",null,[ue,pe,fe,i(o,{to:"/docs/reference/files/"},{default:t(()=>[_e]),_:1}),me]),ge,be,Fe,ye,ve,we,ke,e("p",null,[Ae,i(o,{to:"/docs/app/content-collections/"},{default:t(()=>[Ce]),_:1}),De,i(o,{to:"/docs/docs/reference/system/folders.md"},{default:t(()=>[Te]),_:1}),Ie]),Le,Pe,xe,Me,Se,Ee,He,Ue,Re,Be,Ne,We,je,ze,Oe])]),_:1})}}};export{Ge as default,Xe as modularExtension,Je as title};