@directus/app 9.12.0 → 9.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (622) hide show
  1. package/dist/assets/@directus_extensions-sdk.9a1812c6.entry.js +1 -0
  2. package/dist/assets/accounts.08433099.js +1 -0
  3. package/dist/assets/active-line.b42e95d2.js +1 -0
  4. package/dist/assets/activity-log.fd558c9b.js +1 -0
  5. package/dist/assets/activity.0def80ca.js +80 -0
  6. package/dist/assets/apl.a10fee96.js +1 -0
  7. package/dist/assets/asciiarmor.3440160d.js +1 -0
  8. package/dist/assets/asn.1.bdf78f70.js +1 -0
  9. package/dist/assets/asterisk.88ae33f0.js +1 -0
  10. package/dist/assets/authentication.a6f04750.js +73 -0
  11. package/dist/assets/autorefresh.fa8b7b34.js +1 -0
  12. package/dist/assets/aws.3b1c64af.js +1 -0
  13. package/dist/assets/backing-directus.1ed89e33.js +1 -0
  14. package/dist/assets/brainfuck.af40cbfc.js +1 -0
  15. package/dist/assets/cli.5153aa86.js +4 -0
  16. package/dist/assets/cli.e8e2526b.js +19 -0
  17. package/dist/assets/clike.75f55953.js +1 -0
  18. package/dist/assets/clojure.f44f8182.js +1 -0
  19. package/dist/assets/cloudron.53c430b8.js +1 -0
  20. package/dist/assets/cmake.dc51a5f4.js +1 -0
  21. package/dist/assets/cobol.bd572fbc.js +1 -0
  22. package/dist/assets/codebase-overview.e9df94fc.js +1 -0
  23. package/dist/assets/coffeescript.903da3d2.js +1 -0
  24. package/dist/assets/collections.1c745e99.css +1 -0
  25. package/dist/assets/collections.2453db3a.js +106 -0
  26. package/dist/assets/collections.aa896b3f.js +2 -0
  27. package/dist/assets/commonlisp.0c024da5.js +1 -0
  28. package/dist/assets/config-options.b1233b4b.js +138 -0
  29. package/dist/assets/content.1b1e95cf.js +1 -0
  30. package/dist/assets/creating-extensions.bfd7c57c.js +11 -0
  31. package/dist/assets/crystal.80f7e1ba.js +1 -0
  32. package/dist/assets/css.eb89b9da.js +1 -0
  33. package/dist/assets/cypher.f649c40f.js +4 -0
  34. package/dist/assets/d.3e286089.js +1 -0
  35. package/dist/assets/dart.5b9bb9bb.js +1 -0
  36. package/dist/assets/data-model.0e360572.js +1 -0
  37. package/dist/assets/data-sharing.da96e52e.js +1 -0
  38. package/dist/assets/de-at.a1f7dd1d.js +1 -1
  39. package/dist/assets/de.a8c4aad1.js +1 -1
  40. package/dist/assets/diff.c63eafa7.js +1 -0
  41. package/dist/assets/digitalocean-app-platform.3412cb40.js +3 -0
  42. package/dist/assets/display-templates.915c0c5b.js +1 -0
  43. package/dist/assets/displays.99989c6d.js +49 -0
  44. package/dist/assets/django.3a6905fc.js +1 -0
  45. package/dist/assets/{docker.e74fbe37.js → docker.e1bb4205.js} +5 -5
  46. package/dist/assets/dockerfile.a9f614c8.js +1 -0
  47. package/dist/assets/documentation.788d4998.js +1 -0
  48. package/dist/assets/dtd.5b2d40ab.js +1 -0
  49. package/dist/assets/dylan.744cd79f.js +1 -0
  50. package/dist/assets/ebnf.6637a8f6.js +1 -0
  51. package/dist/assets/ecl.cdabfae6.js +1 -0
  52. package/dist/assets/eiffel.60b61e7f.js +1 -0
  53. package/dist/assets/elm.74b68fc8.js +1 -0
  54. package/dist/assets/email-templates.1f5ac335.js +2 -0
  55. package/dist/assets/endpoints.aaac7c81.js +27 -0
  56. package/dist/assets/erlang.d6cd5265.js +1 -0
  57. package/dist/assets/es-MX.956444f4.js +1 -0
  58. package/dist/assets/extensions.34c12005.js +12 -0
  59. package/dist/assets/factor.965cfdad.js +1 -0
  60. package/dist/assets/faq.89e68608.js +2 -0
  61. package/dist/assets/fcl.e515f605.js +1 -0
  62. package/dist/assets/fields.54985585.js +135 -0
  63. package/dist/assets/file-library.3e651030.js +1 -0
  64. package/dist/assets/files.064d5a35.js +187 -0
  65. package/dist/assets/filter-rules.e442e006.js +76 -0
  66. package/dist/assets/filters.3db1b044.js +1 -0
  67. package/dist/assets/{folders.5102c9ea.js → folders.0024d3d3.js} +20 -20
  68. package/dist/assets/forth.c62ab807.js +1 -0
  69. package/dist/assets/fortran.c0e428c5.js +1 -0
  70. package/dist/assets/gas.fd59e425.js +1 -0
  71. package/dist/assets/gcp.627205b5.js +60 -0
  72. package/dist/assets/gfm.8125a8e6.js +1 -0
  73. package/dist/assets/gherkin.c9a9f9d2.js +1 -0
  74. package/dist/assets/github-ci.abd39dcc.js +2 -0
  75. package/dist/assets/glossary.75ca2027.js +1 -0
  76. package/dist/assets/glossary.bf083fb1.js +1 -0
  77. package/dist/assets/go.31390264.js +1 -0
  78. package/dist/assets/groovy.c940d48b.js +1 -0
  79. package/dist/assets/haml.1a456af6.js +1 -0
  80. package/dist/assets/handlebars.d3c0e9e6.js +1 -0
  81. package/dist/assets/haskell-literate.06d0d330.js +1 -0
  82. package/dist/assets/haskell.f83a5b48.js +1 -0
  83. package/dist/assets/haxe.cf38bc86.js +1 -0
  84. package/dist/assets/hooks.eda18b02.js +60 -0
  85. package/dist/assets/htmlembedded.4765ab1f.js +1 -0
  86. package/dist/assets/htmlmixed.a4506ee0.js +1 -0
  87. package/dist/assets/http.cf2042b8.js +1 -0
  88. package/dist/assets/idl.2b562d7a.js +1 -0
  89. package/dist/assets/{iis.fc6aa5dd.js → iis.109e5a8a.js} +2 -2
  90. package/dist/assets/import-export.3da878a4.js +2 -0
  91. package/dist/assets/index.009353d9.js +1 -0
  92. package/dist/assets/index.05e20b6f.js +1 -0
  93. package/dist/assets/index.064c96df.js +1 -0
  94. package/dist/assets/index.08e6475d.js +1 -0
  95. package/dist/assets/index.0a4e8fad.js +1 -0
  96. package/dist/assets/index.131b4ee8.js +1 -0
  97. package/dist/assets/index.17ad666d.js +1 -0
  98. package/dist/assets/index.1a186179.js +1 -0
  99. package/dist/assets/index.1b3cf886.js +1 -1
  100. package/dist/assets/index.1d927fd3.js +1 -0
  101. package/dist/assets/index.1e0212f9.js +1 -0
  102. package/dist/assets/index.27da0362.js +1 -0
  103. package/dist/assets/index.2ff40292.js +1 -0
  104. package/dist/assets/index.35fb04b2.js +1 -0
  105. package/dist/assets/index.3acd783e.js +1 -0
  106. package/dist/assets/index.3c7e729b.js +1 -0
  107. package/dist/assets/index.40c42250.css +1 -0
  108. package/dist/assets/index.44b36a96.js +1 -0
  109. package/dist/assets/index.44c7ed90.js +1 -0
  110. package/dist/assets/index.4533ce42.js +1 -0
  111. package/dist/assets/index.48fd0edb.js +1 -0
  112. package/dist/assets/index.491a4003.js +1 -0
  113. package/dist/assets/index.4de2df6a.js +1 -0
  114. package/dist/assets/index.4ff10039.js +1 -0
  115. package/dist/assets/index.515f0cb5.js +1 -0
  116. package/dist/assets/index.5312378b.js +1 -0
  117. package/dist/assets/index.540a1c0d.js +1 -0
  118. package/dist/assets/index.5490bf54.js +1 -0
  119. package/dist/assets/index.54a49224.js +1 -0
  120. package/dist/assets/index.55f6227c.js +1 -0
  121. package/dist/assets/index.5d10078c.js +1 -0
  122. package/dist/assets/index.5e2cb31c.js +1 -0
  123. package/dist/assets/index.629b6c38.js +1 -0
  124. package/dist/assets/index.6687eb7d.js +1 -0
  125. package/dist/assets/index.6752521e.js +1 -0
  126. package/dist/assets/index.691d9c7a.js +1 -0
  127. package/dist/assets/index.70f6f88a.entry.js +3406 -0
  128. package/dist/assets/index.71e28483.js +1 -0
  129. package/dist/assets/index.734cf408.js +1 -0
  130. package/dist/assets/index.76212e14.js +1 -0
  131. package/dist/assets/index.788544c8.js +1 -0
  132. package/dist/assets/index.859a78cb.js +1 -0
  133. package/dist/assets/index.8c9bb9d2.js +1 -0
  134. package/dist/assets/index.8f901e72.js +1 -0
  135. package/dist/assets/index.90aad19e.js +1 -0
  136. package/dist/assets/index.921bf39b.js +1 -0
  137. package/dist/assets/index.9b23cd7f.js +1 -0
  138. package/dist/assets/index.9b42e31d.js +26 -0
  139. package/dist/assets/index.9fbcba2f.js +1 -0
  140. package/dist/assets/index.a0bc3d71.js +1 -0
  141. package/dist/assets/index.a40a776b.js +1 -0
  142. package/dist/assets/index.a9473e05.js +1 -0
  143. package/dist/assets/index.ae9b035a.js +1 -0
  144. package/dist/assets/index.b09321f5.js +1 -0
  145. package/dist/assets/index.b635a926.js +1 -0
  146. package/dist/assets/index.b871b7a5.js +1 -0
  147. package/dist/assets/index.b8baec6c.js +1 -0
  148. package/dist/assets/index.b955a1be.js +1 -0
  149. package/dist/assets/index.bb82940a.js +1 -0
  150. package/dist/assets/index.bbf0131f.js +1 -0
  151. package/dist/assets/index.bc32829f.js +1 -0
  152. package/dist/assets/index.bc3296ff.js +1 -0
  153. package/dist/assets/index.c219c9fd.js +1 -0
  154. package/dist/assets/index.c54243ff.js +1 -0
  155. package/dist/assets/index.c6ea1824.js +1 -0
  156. package/dist/assets/index.c91867d3.js +1 -0
  157. package/dist/assets/index.d911a640.js +1 -0
  158. package/dist/assets/index.db01bb54.js +1 -0
  159. package/dist/assets/index.ddbad0a0.js +1 -0
  160. package/dist/assets/index.e39c7e76.js +1 -0
  161. package/dist/assets/index.e7e17448.js +1 -0
  162. package/dist/assets/index.e9099679.js +1 -0
  163. package/dist/assets/index.e9faa1b7.js +1 -0
  164. package/dist/assets/index.ea326829.js +1 -0
  165. package/dist/assets/index.f334ad18.js +1 -0
  166. package/dist/assets/index.f5a62bca.js +1 -0
  167. package/dist/assets/index.f6a5906f.js +1 -0
  168. package/dist/assets/index.f6d90b7c.js +1 -0
  169. package/dist/assets/index.f715fb2c.js +1 -0
  170. package/dist/assets/index.f80921e7.js +1 -0
  171. package/dist/assets/index.fc7b1181.js +1 -0
  172. package/dist/assets/index.fd2a5a74.js +1 -0
  173. package/dist/assets/index.ff5502c6.js +1 -0
  174. package/dist/assets/index.ff5a189a.js +1 -0
  175. package/dist/assets/{input-rich-text-html.4dd91dd7.js → input-rich-text-html.1550fe06.js} +32 -32
  176. package/dist/assets/{input-rich-text-html.ef9358cf.css → input-rich-text-html.2d85a8a3.css} +1 -1
  177. package/dist/assets/insights.c8ed7c1c.js +1 -0
  178. package/dist/assets/installation.78c6d9f6.js +1 -0
  179. package/dist/assets/interfaces.9e145c45.js +46 -0
  180. package/dist/assets/introduction.2e6f5c1d.js +90 -0
  181. package/dist/assets/introduction.78a2a844.js +4 -0
  182. package/dist/assets/introduction.7c5efc8a.js +1 -0
  183. package/dist/assets/introduction.d5621d79.js +1 -0
  184. package/dist/assets/{items.4e295453.js → items.4205dfa0.js} +27 -27
  185. package/dist/assets/items.64ed9295.js +1 -0
  186. package/dist/assets/javascript-hint.29e9b67f.js +1 -0
  187. package/dist/assets/javascript.d2db845f.js +1 -0
  188. package/dist/assets/jinja2.f97723a0.js +1 -0
  189. package/dist/assets/jsx.3f2b01c1.js +1 -0
  190. package/dist/assets/julia.fa920089.js +1 -0
  191. package/dist/assets/layouts.3c14b583.js +54 -0
  192. package/dist/assets/layouts.ca8afd39.js +1 -0
  193. package/dist/assets/livescript.2ec2e5ab.js +1 -0
  194. package/dist/assets/localization.374b7427.js +1 -0
  195. package/dist/assets/lua.5e0c8497.js +1 -0
  196. package/dist/assets/manual.ab601c95.js +10 -0
  197. package/dist/assets/mark-selection.54726b3f.js +1 -0
  198. package/dist/assets/match-highlighter.218123e7.js +1 -0
  199. package/dist/assets/mathematica.df44764c.js +1 -0
  200. package/dist/assets/mbox.491dfb6c.js +1 -0
  201. package/dist/assets/migrations.8989fedc.js +19 -0
  202. package/dist/assets/mirc.a9dca563.js +1 -0
  203. package/dist/assets/mllike.0a469a43.js +1 -0
  204. package/dist/assets/modelica.306697a8.js +1 -0
  205. package/dist/assets/modules.17c944d1.js +69 -0
  206. package/dist/assets/mscgen.a45d586b.js +1 -0
  207. package/dist/assets/multiplex.26e09ed5.js +3 -0
  208. package/dist/assets/mumps.ae29c70e.js +1 -0
  209. package/dist/assets/nginx.52e6bfcd.js +1 -0
  210. package/dist/assets/notifications.33c688c9.js +153 -0
  211. package/dist/assets/nsis.5869c4bd.js +1 -0
  212. package/dist/assets/ntriples.c7dd54df.js +1 -0
  213. package/dist/assets/octave.ef49cef7.js +1 -0
  214. package/dist/assets/overlay.9a3d0cba.js +1 -0
  215. package/dist/assets/overview.3436365c.js +1 -0
  216. package/dist/assets/overview.623fafba.js +1 -0
  217. package/dist/assets/overview.dbebe94a.js +1 -0
  218. package/dist/assets/oz.6a13c27c.js +1 -0
  219. package/dist/assets/panels.385b173a.js +65 -0
  220. package/dist/assets/pascal.77947c82.js +1 -0
  221. package/dist/assets/pegjs.fb3674fc.js +1 -0
  222. package/dist/assets/perl.bd20c5e2.js +1 -0
  223. package/dist/assets/{permissions.c754088f.js → permissions.f84f8d42.js} +19 -19
  224. package/dist/assets/php.f7000a8d.js +1 -0
  225. package/dist/assets/pig.7044156f.js +1 -0
  226. package/dist/assets/pinia.256cc3da.entry.js +5 -0
  227. package/dist/assets/pl-PL.22d5965f.js +1 -0
  228. package/dist/assets/plesk.f7e3d5ef.js +27 -0
  229. package/dist/assets/powershell.d6251d29.js +1 -0
  230. package/dist/assets/presets-bookmarks.1b8ec70c.js +1 -0
  231. package/dist/assets/{presets.21984d83.js → presets.b1e8b6c1.js} +20 -20
  232. package/dist/assets/project-settings.d32669a9.js +1 -0
  233. package/dist/assets/projects.b0451bed.js +1 -0
  234. package/dist/assets/properties.21d46a91.js +1 -0
  235. package/dist/assets/protobuf.0595884b.js +1 -0
  236. package/dist/assets/pug.02047604.js +1 -0
  237. package/dist/assets/puppet.7c07ba75.js +1 -0
  238. package/dist/assets/python.fe6c7a24.js +1 -0
  239. package/dist/assets/q.bfdf1988.js +1 -0
  240. package/dist/assets/query.dbe0b56d.js +152 -0
  241. package/dist/assets/quickstart.01824cc9.js +9 -0
  242. package/dist/assets/quickstart.4d7c7736.js +20 -0
  243. package/dist/assets/r.d6b5ac21.js +1 -0
  244. package/dist/assets/relations.d29aa86d.js +115 -0
  245. package/dist/assets/relationships.c9c5db8a.js +55 -0
  246. package/dist/assets/revisions.2898106e.js +40 -0
  247. package/dist/assets/{roles.aa9ecdfc.js → roles.9fec37da.js} +21 -21
  248. package/dist/assets/rpm.92483469.js +1 -0
  249. package/dist/assets/rst.b2603799.js +1 -0
  250. package/dist/assets/ruby.0246dbd5.js +1 -0
  251. package/dist/assets/running-locally.811d0dcc.js +26 -0
  252. package/dist/assets/runtime-core.esm-bundler.b1f35d24.js +4 -0
  253. package/dist/assets/rust.dd8abd8d.js +1 -0
  254. package/dist/assets/sas.d26b2302.js +1 -0
  255. package/dist/assets/sass.a791aa27.js +1 -0
  256. package/dist/assets/scheme.ef2b1440.js +1 -0
  257. package/dist/assets/{sdk.c37a5fba.js → sdk.12cd7974.js} +48 -48
  258. package/dist/assets/security.8e2a8a41.js +1 -0
  259. package/dist/assets/{server.a0eeaade.js → server.9f12ae3e.js} +12 -12
  260. package/dist/assets/settings.149d1dff.js +1 -0
  261. package/dist/assets/settings.28abc1f0.js +51 -0
  262. package/dist/assets/shell.2f3bc735.js +1 -0
  263. package/dist/assets/show-hint.6fa4d537.js +1 -0
  264. package/dist/assets/sieve.99fca314.js +1 -0
  265. package/dist/assets/simple.0e90a38e.js +1 -0
  266. package/dist/assets/slim.92d997b6.js +1 -0
  267. package/dist/assets/smalltalk.a9b3ffec.js +1 -0
  268. package/dist/assets/smarty.c54a652c.js +1 -0
  269. package/dist/assets/solr.1356a877.js +1 -0
  270. package/dist/assets/soy.e1b19eef.js +1 -0
  271. package/dist/assets/sparql.1335f7a5.js +1 -0
  272. package/dist/assets/spreadsheet.e9096343.js +1 -0
  273. package/dist/assets/sql.ac45a460.js +1 -0
  274. package/dist/assets/{sso-examples.6c849325.js → sso-examples.b52061be.js} +12 -12
  275. package/dist/assets/sso.64b2717b.js +22 -0
  276. package/dist/assets/stex.fb7fd990.js +1 -0
  277. package/dist/assets/stylus.d0281b2a.js +1 -0
  278. package/dist/assets/support.94e3734b.js +1 -0
  279. package/dist/assets/swift.a9fd2d64.js +1 -0
  280. package/dist/assets/tcl.8f7bdfb5.js +1 -0
  281. package/dist/assets/teams.9ff14f8f.js +1 -0
  282. package/dist/assets/textile.ae199003.js +1 -0
  283. package/dist/assets/themes.df7ec485.js +5 -0
  284. package/dist/assets/tiddlywiki.52caa0ed.js +1 -0
  285. package/dist/assets/tiki.831b9315.js +1 -0
  286. package/dist/assets/toml.6f660b6b.js +1 -0
  287. package/dist/assets/tornado.01563722.js +1 -0
  288. package/dist/assets/translations.5191ab7c.js +1 -0
  289. package/dist/assets/troff.f5f797f2.js +1 -0
  290. package/dist/assets/ttcn-cfg.a6927435.js +1 -0
  291. package/dist/assets/ttcn.24c6b925.js +1 -0
  292. package/dist/assets/turtle.d0e831a8.js +1 -0
  293. package/dist/assets/twig.d5e90842.js +1 -0
  294. package/dist/assets/ubuntu.f4c21886.js +11 -0
  295. package/dist/assets/upgrades-migrations.15498a47.js +1 -0
  296. package/dist/assets/use-sync.ded22f96.js +28 -0
  297. package/dist/assets/user-directory.47c8beb2.js +1 -0
  298. package/dist/assets/users-roles-permissions.005388fa.js +1 -0
  299. package/dist/assets/users.84251ab9.js +252 -0
  300. package/dist/assets/{utilities.b9c2a9d8.js → utilities.26e6a9e8.js} +12 -12
  301. package/dist/assets/vb.bb33c7a5.js +1 -0
  302. package/dist/assets/vbscript.d8f8d95e.js +1 -0
  303. package/dist/assets/velocity.26721ec5.js +1 -0
  304. package/dist/assets/verilog.24512a86.js +1 -0
  305. package/dist/assets/vhdl.6e64552d.js +1 -0
  306. package/dist/assets/vue-i18n.ecb0af35.entry.js +31 -0
  307. package/dist/assets/vue-router.8987d576.entry.js +5 -0
  308. package/dist/assets/vue.1f4d921a.entry.js +1 -0
  309. package/dist/assets/vue.4450af40.js +1 -0
  310. package/dist/assets/vue.runtime.esm-bundler.ac4ff7af.js +1 -0
  311. package/dist/assets/wast.79f64b4c.js +1 -0
  312. package/dist/assets/{webhooks.1a2e06f9.js → webhooks.4eeecb7d.js} +20 -20
  313. package/dist/assets/webhooks.61b11e7d.js +1 -0
  314. package/dist/assets/webidl.860cea4e.js +1 -0
  315. package/dist/assets/xquery.23f4fa34.js +1 -0
  316. package/dist/assets/yacas.0d60e6b0.js +1 -0
  317. package/dist/assets/yaml-frontmatter.70ea956b.js +1 -0
  318. package/dist/assets/yaml.9d5c3ac9.js +1 -0
  319. package/dist/assets/z80.527b7cb8.js +1 -0
  320. package/dist/index.html +8 -5
  321. package/package.json +20 -20
  322. package/dist/assets/@directus_extensions-sdk.1c0f07ca.entry.js +0 -1
  323. package/dist/assets/accounts.edeb6689.js +0 -1
  324. package/dist/assets/active-line.0636efc2.js +0 -1
  325. package/dist/assets/activity-log.ccf294c8.js +0 -1
  326. package/dist/assets/activity.499754f1.js +0 -80
  327. package/dist/assets/apl.7a44de96.js +0 -1
  328. package/dist/assets/asciiarmor.5c853147.js +0 -1
  329. package/dist/assets/asn.1.6b4c88d3.js +0 -1
  330. package/dist/assets/asterisk.8e49b2d4.js +0 -1
  331. package/dist/assets/authentication.b275d277.js +0 -73
  332. package/dist/assets/autorefresh.a124d3d5.js +0 -1
  333. package/dist/assets/aws.58f13022.js +0 -1
  334. package/dist/assets/backing-directus.b130191d.js +0 -1
  335. package/dist/assets/brainfuck.40978cfa.js +0 -1
  336. package/dist/assets/cli.0b1af962.js +0 -4
  337. package/dist/assets/cli.7f7160a6.js +0 -19
  338. package/dist/assets/clike.00b06ab7.js +0 -1
  339. package/dist/assets/clojure.10c02a8f.js +0 -1
  340. package/dist/assets/cloudron.48238a4e.js +0 -1
  341. package/dist/assets/cmake.d18a828d.js +0 -1
  342. package/dist/assets/cobol.4a07e81a.js +0 -1
  343. package/dist/assets/codebase-overview.c751de28.js +0 -1
  344. package/dist/assets/coffeescript.299e7b17.js +0 -1
  345. package/dist/assets/collections.8d532d78.js +0 -106
  346. package/dist/assets/collections.fe434f3d.js +0 -2
  347. package/dist/assets/commonlisp.5d3e08ca.js +0 -1
  348. package/dist/assets/config-options.0cd2f84e.js +0 -138
  349. package/dist/assets/content.07663d5f.js +0 -1
  350. package/dist/assets/creating-extensions.a48d5b6f.js +0 -11
  351. package/dist/assets/crystal.e8ccc500.js +0 -1
  352. package/dist/assets/css.e214430c.js +0 -1
  353. package/dist/assets/cypher.93c35226.js +0 -4
  354. package/dist/assets/d.45452c03.js +0 -1
  355. package/dist/assets/dart.6fca9dfe.js +0 -1
  356. package/dist/assets/data-model.5b650232.js +0 -1
  357. package/dist/assets/data-sharing.4ba1e153.js +0 -1
  358. package/dist/assets/diff.7a671810.js +0 -1
  359. package/dist/assets/digitalocean-app-platform.a3805812.js +0 -3
  360. package/dist/assets/display-templates.ef1705ab.js +0 -1
  361. package/dist/assets/displays.29c9a9ab.js +0 -49
  362. package/dist/assets/django.70792d4e.js +0 -1
  363. package/dist/assets/dockerfile.4d9813c1.js +0 -1
  364. package/dist/assets/documentation.74a793e9.js +0 -1
  365. package/dist/assets/dtd.2b6ca795.js +0 -1
  366. package/dist/assets/dylan.bf03afb2.js +0 -1
  367. package/dist/assets/ebnf.f0b8dcf5.js +0 -1
  368. package/dist/assets/ecl.fb54f12a.js +0 -1
  369. package/dist/assets/eiffel.aa01c1cf.js +0 -1
  370. package/dist/assets/elm.7007e9b9.js +0 -1
  371. package/dist/assets/email-templates.ef4839b6.js +0 -2
  372. package/dist/assets/endpoints.84b6faf9.js +0 -27
  373. package/dist/assets/erlang.801fa573.js +0 -1
  374. package/dist/assets/es-MX.6a8efcab.js +0 -1
  375. package/dist/assets/extensions.f89cb4f9.js +0 -12
  376. package/dist/assets/factor.f3fd82cf.js +0 -1
  377. package/dist/assets/faq.5f488978.js +0 -2
  378. package/dist/assets/fcl.ccf78194.js +0 -1
  379. package/dist/assets/fields.f711b1ce.js +0 -135
  380. package/dist/assets/file-library.30569134.js +0 -1
  381. package/dist/assets/files.8a404c59.js +0 -187
  382. package/dist/assets/filter-rules.79bac758.js +0 -76
  383. package/dist/assets/filters.efeb8b64.js +0 -1
  384. package/dist/assets/forth.3c037035.js +0 -1
  385. package/dist/assets/fortran.b05b78ad.js +0 -1
  386. package/dist/assets/gas.c36c196e.js +0 -1
  387. package/dist/assets/gcp.b10d08b2.js +0 -60
  388. package/dist/assets/gfm.4af9c8c0.js +0 -1
  389. package/dist/assets/gherkin.102ec9b3.js +0 -1
  390. package/dist/assets/github-ci.b23bdb51.js +0 -2
  391. package/dist/assets/glossary.08aaa09a.js +0 -1
  392. package/dist/assets/glossary.2618dbcd.js +0 -1
  393. package/dist/assets/go.319184dc.js +0 -1
  394. package/dist/assets/groovy.219a3f40.js +0 -1
  395. package/dist/assets/haml.c2cec3e9.js +0 -1
  396. package/dist/assets/handlebars.c1ae3040.js +0 -1
  397. package/dist/assets/haskell-literate.34e39e13.js +0 -1
  398. package/dist/assets/haskell.cb6719a1.js +0 -1
  399. package/dist/assets/haxe.d5e820fa.js +0 -1
  400. package/dist/assets/hooks.d0a9236e.js +0 -60
  401. package/dist/assets/htmlembedded.b86f1a8b.js +0 -1
  402. package/dist/assets/htmlmixed.9027b596.js +0 -1
  403. package/dist/assets/http.dddc47fa.js +0 -1
  404. package/dist/assets/idl.c0519b30.js +0 -1
  405. package/dist/assets/import-export.3bcbaa5a.js +0 -2
  406. package/dist/assets/index.008f8280.js +0 -1
  407. package/dist/assets/index.02e0a0ac.js +0 -1
  408. package/dist/assets/index.08c47c7e.js +0 -1
  409. package/dist/assets/index.09f9fbcc.js +0 -1
  410. package/dist/assets/index.0aa19433.js +0 -1
  411. package/dist/assets/index.113f40e2.js +0 -1
  412. package/dist/assets/index.121f2a8c.js +0 -1
  413. package/dist/assets/index.15d64410.js +0 -1
  414. package/dist/assets/index.1913d925.js +0 -1
  415. package/dist/assets/index.1cdf4945.js +0 -1
  416. package/dist/assets/index.1ee7fd69.js +0 -1
  417. package/dist/assets/index.25ba1dd6.js +0 -1
  418. package/dist/assets/index.25c51012.js +0 -1
  419. package/dist/assets/index.27dda6e3.js +0 -26
  420. package/dist/assets/index.2a4455f2.js +0 -1
  421. package/dist/assets/index.2bc6ec6e.js +0 -1
  422. package/dist/assets/index.2d56f924.js +0 -1
  423. package/dist/assets/index.35fd1f62.js +0 -1
  424. package/dist/assets/index.36b203bd.js +0 -1
  425. package/dist/assets/index.39c20f1a.js +0 -1
  426. package/dist/assets/index.3f0e45c1.js +0 -1
  427. package/dist/assets/index.3fa2dd41.js +0 -1
  428. package/dist/assets/index.48964803.js +0 -1
  429. package/dist/assets/index.4ad01be0.js +0 -1
  430. package/dist/assets/index.511997cb.js +0 -1
  431. package/dist/assets/index.53f3d9fa.js +0 -1
  432. package/dist/assets/index.5679f5a7.js +0 -1
  433. package/dist/assets/index.57fe3e27.js +0 -1
  434. package/dist/assets/index.591b77a6.js +0 -1
  435. package/dist/assets/index.5add30a0.js +0 -1
  436. package/dist/assets/index.5e03ed98.js +0 -1
  437. package/dist/assets/index.685be3df.js +0 -1
  438. package/dist/assets/index.6868b6d6.js +0 -1
  439. package/dist/assets/index.6ad356db.js +0 -1
  440. package/dist/assets/index.6c408ae4.entry.js +0 -547
  441. package/dist/assets/index.6ddc4fdc.js +0 -1
  442. package/dist/assets/index.6fe5d0b3.js +0 -1
  443. package/dist/assets/index.713eb83a.js +0 -1
  444. package/dist/assets/index.75c64623.js +0 -1
  445. package/dist/assets/index.7aed9a74.js +0 -1
  446. package/dist/assets/index.7c788990.js +0 -1
  447. package/dist/assets/index.8287e0f2.js +0 -1
  448. package/dist/assets/index.86d0c122.js +0 -1
  449. package/dist/assets/index.8701e013.js +0 -1
  450. package/dist/assets/index.876e2150.js +0 -1
  451. package/dist/assets/index.87f07d63.js +0 -1
  452. package/dist/assets/index.8a9126c0.js +0 -1
  453. package/dist/assets/index.9020f7f8.js +0 -1
  454. package/dist/assets/index.95a38652.js +0 -1
  455. package/dist/assets/index.967c699a.js +0 -1
  456. package/dist/assets/index.9c19b896.js +0 -1
  457. package/dist/assets/index.9d085155.js +0 -1
  458. package/dist/assets/index.9d19e89b.css +0 -1
  459. package/dist/assets/index.a2dcf3d3.js +0 -1
  460. package/dist/assets/index.a33e3a0f.js +0 -1
  461. package/dist/assets/index.a3994e3e.js +0 -1
  462. package/dist/assets/index.a4a0cf79.js +0 -1
  463. package/dist/assets/index.a9130ef3.js +0 -1
  464. package/dist/assets/index.a92db738.js +0 -1
  465. package/dist/assets/index.a939892c.js +0 -1
  466. package/dist/assets/index.aaef5d37.js +0 -1
  467. package/dist/assets/index.b94caa53.js +0 -1
  468. package/dist/assets/index.be817c86.js +0 -1
  469. package/dist/assets/index.bea565ce.js +0 -1
  470. package/dist/assets/index.beaf92cf.js +0 -1
  471. package/dist/assets/index.c1202cf2.js +0 -1
  472. package/dist/assets/index.c3b8bf08.js +0 -1
  473. package/dist/assets/index.c64d544a.js +0 -1
  474. package/dist/assets/index.caf0f908.js +0 -1
  475. package/dist/assets/index.cbab03d1.js +0 -1
  476. package/dist/assets/index.cc9ba44d.js +0 -1
  477. package/dist/assets/index.ce185aa0.js +0 -1
  478. package/dist/assets/index.d1676f89.js +0 -1
  479. package/dist/assets/index.da1ac686.js +0 -1
  480. package/dist/assets/index.df9b999e.js +0 -1
  481. package/dist/assets/index.e4754ab9.js +0 -1
  482. package/dist/assets/index.e629cf0e.js +0 -1
  483. package/dist/assets/index.e6be0eb0.js +0 -1
  484. package/dist/assets/index.ec867eba.js +0 -1
  485. package/dist/assets/index.f0af50e7.js +0 -1
  486. package/dist/assets/index.f54461df.js +0 -1
  487. package/dist/assets/index.f7d9fffc.js +0 -1
  488. package/dist/assets/index.fad2fd5d.js +0 -1
  489. package/dist/assets/insights.36c270c0.js +0 -1
  490. package/dist/assets/installation.16ae0771.js +0 -1
  491. package/dist/assets/interfaces.b5cebf09.js +0 -46
  492. package/dist/assets/introduction.04bbf522.js +0 -90
  493. package/dist/assets/introduction.1cc62f08.js +0 -1
  494. package/dist/assets/introduction.33560106.js +0 -4
  495. package/dist/assets/introduction.70bf2d81.js +0 -1
  496. package/dist/assets/items.83b34697.js +0 -1
  497. package/dist/assets/javascript-hint.620ad47b.js +0 -1
  498. package/dist/assets/javascript.22a42c19.js +0 -1
  499. package/dist/assets/jinja2.0b1cb0bb.js +0 -1
  500. package/dist/assets/jsx.248607cc.js +0 -1
  501. package/dist/assets/julia.2162bdbd.js +0 -1
  502. package/dist/assets/layouts.4f3cc3e7.js +0 -54
  503. package/dist/assets/layouts.7ced46fd.js +0 -1
  504. package/dist/assets/livescript.3ddfeda6.js +0 -1
  505. package/dist/assets/localization.e9668093.js +0 -1
  506. package/dist/assets/lua.a305cd56.js +0 -1
  507. package/dist/assets/manual.0e28cbc4.js +0 -10
  508. package/dist/assets/mark-selection.7b5a6fc9.js +0 -1
  509. package/dist/assets/match-highlighter.873d12a5.js +0 -1
  510. package/dist/assets/mathematica.01c3553a.js +0 -1
  511. package/dist/assets/mbox.22a8b245.js +0 -1
  512. package/dist/assets/migrations.7147c537.js +0 -19
  513. package/dist/assets/mirc.fa73561d.js +0 -1
  514. package/dist/assets/mllike.4c54ebfa.js +0 -1
  515. package/dist/assets/modelica.07339979.js +0 -1
  516. package/dist/assets/modules.bfb7199d.js +0 -69
  517. package/dist/assets/mscgen.686cc266.js +0 -1
  518. package/dist/assets/multiplex.a88458b2.js +0 -3
  519. package/dist/assets/mumps.003d0d45.js +0 -1
  520. package/dist/assets/nginx.dcba875a.js +0 -1
  521. package/dist/assets/notifications.78fe69c9.js +0 -153
  522. package/dist/assets/nsis.a2c211d0.js +0 -1
  523. package/dist/assets/ntriples.4e06baf8.js +0 -1
  524. package/dist/assets/octave.c6583f11.js +0 -1
  525. package/dist/assets/overlay.742dc1cd.js +0 -1
  526. package/dist/assets/overview.28df1146.js +0 -1
  527. package/dist/assets/overview.508f215d.js +0 -1
  528. package/dist/assets/overview.97626817.js +0 -1
  529. package/dist/assets/oz.afa3546c.js +0 -1
  530. package/dist/assets/panels.89c0ed45.js +0 -65
  531. package/dist/assets/pascal.8941c2f2.js +0 -1
  532. package/dist/assets/pegjs.3aee5930.js +0 -1
  533. package/dist/assets/perl.3625c222.js +0 -1
  534. package/dist/assets/php.4cdaa752.js +0 -1
  535. package/dist/assets/pig.21fe63de.js +0 -1
  536. package/dist/assets/pinia.70349f0e.entry.js +0 -1
  537. package/dist/assets/pl-PL.5a1f6a70.js +0 -1
  538. package/dist/assets/plesk.af9c7c77.js +0 -27
  539. package/dist/assets/powershell.cfe96af1.js +0 -1
  540. package/dist/assets/presets-bookmarks.e7d33809.js +0 -1
  541. package/dist/assets/project-settings.d98ebcb5.js +0 -1
  542. package/dist/assets/projects.06f11c9e.js +0 -1
  543. package/dist/assets/properties.90e293bc.js +0 -1
  544. package/dist/assets/protobuf.19a9e9b8.js +0 -1
  545. package/dist/assets/pug.8fdd6886.js +0 -1
  546. package/dist/assets/puppet.6dfeb6da.js +0 -1
  547. package/dist/assets/python.e0245f5c.js +0 -1
  548. package/dist/assets/q.d3d8a6a4.js +0 -1
  549. package/dist/assets/query.8828d31d.js +0 -152
  550. package/dist/assets/quickstart.26991a56.js +0 -9
  551. package/dist/assets/quickstart.60decafe.js +0 -20
  552. package/dist/assets/r.09038281.js +0 -1
  553. package/dist/assets/relations.29fed98c.js +0 -115
  554. package/dist/assets/relationships.9b51c50f.js +0 -55
  555. package/dist/assets/revisions.0f19e955.js +0 -40
  556. package/dist/assets/rpm.881b5f64.js +0 -1
  557. package/dist/assets/rst.b571a0d9.js +0 -1
  558. package/dist/assets/ruby.83d0f6e3.js +0 -1
  559. package/dist/assets/running-locally.261a8137.js +0 -26
  560. package/dist/assets/rust.8eb02a00.js +0 -1
  561. package/dist/assets/sas.1c3e0687.js +0 -1
  562. package/dist/assets/sass.76cf8437.js +0 -1
  563. package/dist/assets/scheme.4fa8c610.js +0 -1
  564. package/dist/assets/security.ed33172c.js +0 -1
  565. package/dist/assets/settings.d5f90d4f.js +0 -51
  566. package/dist/assets/settings.fd4e15aa.js +0 -1
  567. package/dist/assets/shell.c82f9c19.js +0 -1
  568. package/dist/assets/show-hint.40044b34.js +0 -1
  569. package/dist/assets/sieve.55ac0753.js +0 -1
  570. package/dist/assets/simple.96f65f94.js +0 -1
  571. package/dist/assets/slim.e70a287c.js +0 -1
  572. package/dist/assets/smalltalk.d09dc24d.js +0 -1
  573. package/dist/assets/smarty.8ea9900c.js +0 -1
  574. package/dist/assets/solr.a026a0e6.js +0 -1
  575. package/dist/assets/soy.5034b90a.js +0 -1
  576. package/dist/assets/sparql.756dd255.js +0 -1
  577. package/dist/assets/spreadsheet.ec5c0c2e.js +0 -1
  578. package/dist/assets/sql.ec917110.js +0 -1
  579. package/dist/assets/sso.9920cf75.js +0 -22
  580. package/dist/assets/stex.d0b9833b.js +0 -1
  581. package/dist/assets/stylus.8b561261.js +0 -1
  582. package/dist/assets/support.b7301715.js +0 -1
  583. package/dist/assets/swift.1654ac84.js +0 -1
  584. package/dist/assets/tcl.b39e3c47.js +0 -1
  585. package/dist/assets/teams.7d07ab3c.js +0 -1
  586. package/dist/assets/textile.f922c3fe.js +0 -1
  587. package/dist/assets/themes.a5e50284.js +0 -5
  588. package/dist/assets/tiddlywiki.cb8704a6.js +0 -1
  589. package/dist/assets/tiki.088d0dec.js +0 -1
  590. package/dist/assets/toml.4bc9ea0d.js +0 -1
  591. package/dist/assets/tornado.b19655d1.js +0 -1
  592. package/dist/assets/translations.cd3858e6.js +0 -1
  593. package/dist/assets/troff.3a27423f.js +0 -1
  594. package/dist/assets/ttcn-cfg.66931016.js +0 -1
  595. package/dist/assets/ttcn.4b670503.js +0 -1
  596. package/dist/assets/turtle.8a998017.js +0 -1
  597. package/dist/assets/twig.2e58d76f.js +0 -1
  598. package/dist/assets/ubuntu.b8abc8f2.js +0 -11
  599. package/dist/assets/upgrades-migrations.5d6e809a.js +0 -1
  600. package/dist/assets/use-sync.18016d01.js +0 -1
  601. package/dist/assets/user-directory.370a7f49.js +0 -1
  602. package/dist/assets/users-roles-permissions.7f9a42f3.js +0 -1
  603. package/dist/assets/users.b4781411.js +0 -252
  604. package/dist/assets/vb.f5e6afca.js +0 -1
  605. package/dist/assets/vbscript.c44059f4.js +0 -1
  606. package/dist/assets/velocity.99ae445e.js +0 -1
  607. package/dist/assets/vendor.9387af12.css +0 -1
  608. package/dist/assets/vendor.f6090249.js +0 -2939
  609. package/dist/assets/verilog.75ff9f03.js +0 -1
  610. package/dist/assets/vhdl.e0f4e9d6.js +0 -1
  611. package/dist/assets/vue-i18n.4c1cb94b.entry.js +0 -1
  612. package/dist/assets/vue-router.d21957c3.entry.js +0 -1
  613. package/dist/assets/vue.a6974133.js +0 -1
  614. package/dist/assets/vue.deaebe46.entry.js +0 -1
  615. package/dist/assets/wast.9a32ecc0.js +0 -1
  616. package/dist/assets/webhooks.8a69b405.js +0 -1
  617. package/dist/assets/webidl.c677ed4a.js +0 -1
  618. package/dist/assets/xquery.766f7ffc.js +0 -1
  619. package/dist/assets/yacas.4cab11b4.js +0 -1
  620. package/dist/assets/yaml-frontmatter.3fc182ba.js +0 -1
  621. package/dist/assets/yaml.14967251.js +0 -1
  622. package/dist/assets/z80.ea9cb3dc.js +0 -1
@@ -0,0 +1,55 @@
1
+ import{a as i,o as c,b as d,w as n,g as e,e as l,B as t}from"./runtime-core.esm-bundler.b1f35d24.js";var s={};const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"},"Many-to-One (M2O)")]),e("li",null,[e("a",{href:"#one-to-many-(o2m)"},"One-to-Many (O2M)")]),e("li",null,[e("a",{href:"#translations-(o2m)"},"Translations (O2M)")]),e("li",null,[e("a",{href:"#many-to-many-(m2m)"},"Many-to-Many (M2M)")]),e("li",null,[e("a",{href:"#many-to-any-(m2a)"},"Many-to-Any (M2A)")]),e("li",null,[e("a",{href:"#one-to-one-(o2o)"},"One-to-One (O2O)")])])])],-1),p=e("h3",{id:"introduction"},[t("Introduction "),e("a",{class:"header-anchor",href:"#introduction"},"#")],-1),m=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the sometimes confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize them in your mind\u2019s eye.",-1),_=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),y=t("Every "),g=t("Item"),w=t(" in a relational database has a unique "),M=t("Primary Key"),b=t(" (or \u201CPK\u201D) that identifies it within its "),v=t("Collection"),O=t(". Because it\u2019s required, the key is the first "),k=t("field"),T=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),x=e("em",null,"never",-1),C=t(" change."),A=e("p",null,[t("To link items together relationally, you simply save a reference to an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK). If the primary key is a "),e("em",null,"person"),t(", the foreign key is like their "),e("em",null,"business card"),t(". It references the actual person, providing just enough information to find them.")],-1),j=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Composite & Compound Keys"),e("p",null,[t("In the above explanation we\u2019ve ignored "),e("em",null,"composite"),t(" and "),e("em",null,"compound"),t(" keys, which are essentially unique keys created by combining "),e("em",null,"multiple"),t(" field/column values.")])],-1),I=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),P=e("p",null,"Just like primary and foreign keys, relationships are always described relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of the opposite collection would reverse it. This means that a many-to-one relationship can also be seen as a one-to-many relationship, it just depends on which collection is considered the parent.",-1),D=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),S=e("p",null,[t("The Many-to-One is the only relationship type with an actual field on the parent Collection. This field saves the foreign key to a single related item. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(".")],-1),R=e("p",null,"Below is an example of a M2O relationship:",-1),F=e("pre",null,[e("code",{class:""},`cities (the "Many" Collection)
2
+ - id (Primary Key)
3
+ - name
4
+ - country (the M2O field that stores the country key)
5
+
6
+ countries (the "One" Collection)
7
+ - id (Primary Key)
8
+ - name
9
+ `)],-1),K=e("h3",{id:"setup"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup"},"#")],-1),N=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/M2O-20220216A.webp",alt:"M2O"})],-1),q=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its primary key field.",-1),B=e("p",null,[t("If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),J=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the O2M alias (see below) that pairs with this M2O.")],-1),W=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There is one option:")],-1),Y=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Related Collection]"),t(" \u2014 When the related item (O2M) is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the parent M2O field (default)"),e("li",null,"Set the parent M2O field to its default value"),e("li",null,"Delete the parent collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),U=e("h2",{id:"one-to-many-(o2m)"},[t("One-to-Many (O2M) "),e("a",{class:"header-anchor",href:"#one-to-many-(o2m)"},"#")],-1),L=t("The One-to-Many relationship is the "),E=e("strong",null,"exact same relationship",-1),z=t(" as a Many-to-One (above), just seen from the opposite collection\u2019s perspective. The O2M is stored as an "),H=t("Alias"),V=t(" field on its parent Collection that dynamically lists all items connected via the opposite Many-to-One. So, while the M2O will show a single country for the parent city, the O2M shows all cities for the parent country."),G=e("p",null,"Below is an example of a O2M relationship:",-1),Q=e("pre",null,[e("code",{class:""},`countries (the "One" Collection)
10
+ - id (Primary Key)
11
+ - name
12
+ - *cities* (the O2M alias field that lists references from "cities.country")
13
+
14
+ cities (the "Many" Collection)
15
+ - id (Primary Key)
16
+ - name
17
+ - country (the M2O field that stores the country key)
18
+ `)],-1),X=e("h3",{id:"setup-2"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-2"},"#")],-1),Z=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/O2M-20220216A.webp",alt:"O2M"})],-1),$=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its M2O field.",-1),ee=e("p",null,[t("You can select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) or create a "),e("strong",null,"new"),t(" one by entering a unique collection name. Next, you can select an existing field (highlights green) or create a new one by entering a field name unique to its collection.")],-1),te=e("p",null,"The related field will store the value of this collection\u2019s primary key field, so both must have the same type. For this reason, when selecting existing fields, options will be disabled if they don\u2019t have a matching type.",-1),ne=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the M2O field (see above) that pairs with this O2M.")],-1),oe=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Related Collection, or entering the name of a new field to be created.")],-1),le=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are two options:")],-1),ie=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Related Collection]"),t(" \u2014 When the value of the M2O is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the M2O field value (default)"),e("li",null,"Delete the M2O item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this O2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the related M2O field (default)"),e("li",null,"Set the related M2O field to its default value"),e("li",null,"Delete the related collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),se=e("h2",{id:"translations-(o2m)"},[t("Translations (O2M) "),e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#")],-1),ae=t("The Translations relationship is just a special version of the standard O2M. Just like the O2M, it creates an "),re=t("Alias"),ce=t(" field that is used to list all related items (the translations). Translations themselves are stored in a separate collection, which is then further related to a "),de=e("em",null,"third",-1),he=t(" collection that stores all languages."),ue=e("h3",{id:"setup-3"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-3"},"#")],-1),fe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/translations-wizard-20220216A.webp",alt:"Translations"})],-1),pe=e("p",null,"The easiest way to add translations is to use the wizard, which only asks for the Translation field name. All required fields and relationships will then be automatically created and configured.",-1),me=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/translations-relations-20220216A.webp",alt:"Translations"})],-1),_e=e("p",null,[t("If you choose to switch to "),e("strong",null,"manual setup"),t(", you will be presented with a similar relationship setup to O2M or M2M. The parent collection and primary key are known, so those fields are disabled.")],-1),ye=e("p",null,"Next, we configure the Translation Collection. Set to \u201CAuto Fill\u201D by default, this will enter intelligent naming based on related names, and disables all fields. Disabling Auto Fill will enable all fields, allowing you to name the collection that holds the translations, as well as the two fields (each a M2O) that store foreign keys to the parent item and language.",-1),ge=e("p",null,[t("Lastly, you would select/create the Languages collection, which stores the languages available for this translations field. It is common practice to reuse a single languages collection throughout your project, unless translation fields need to support different language sets. For the language "),e("code",{class:""},"code"),t(" we recommend using the IETF language tag (eg: "),e("code",{class:""},"en-US"),t(") which combines the ISO 639-1 and ISO 3166\u20111 standards, but anything can be used (eg: "),e("code",{class:""},"english"),t(").")],-1),we=e("h2",{id:"many-to-many-(m2m)"},[t("Many-to-Many (M2M) "),e("a",{class:"header-anchor",href:"#many-to-many-(m2m)"},"#")],-1),Me=t("The Many-to-Many relationship is actually just "),be=e("strong",null,"two relationships combined",-1),ve=t(" (O2M+M2O) that join together three different collections. The M2M is stored as an "),Oe=t("Alias"),ke=t(" field on its parent Collection that dynamically lists all items connected via a "),Te=t("junction collection"),xe=t(". For example, a "),Ce=e("em",null,"recipe",-1),Ae=t(" can have many "),je=e("em",null,"ingredients",-1),Ie=t(", and "),Pe=e("em",null,"ingredients",-1),De=t(" can be in many "),Se=e("em",null,"recipes",-1),Re=t("."),Fe=e("p",null,"Below is an example of a M2M relationship:",-1),Ke=e("pre",null,[e("code",{class:""},`recipes (Collection)
19
+ - id (Primary Key)
20
+ - name
21
+ - *ingredients* (M2M/O2M alias field that lists references from "recipe_ingredients")
22
+
23
+ ingredients (Collection)
24
+ - id (Primary Key)
25
+ - name
26
+ - *recipes* (M2M/O2M alias field that lists references from "recipe_ingredients")
27
+
28
+ recipe_ingredients (Junction Collection)
29
+ - id (Primary Key)
30
+ - recipe (stores the recipe key)
31
+ - ingredient (stores ingredient key)
32
+ - quantity (other optional data on the connection)
33
+ `)],-1),Ne=e("p",null,[t("Notice that the example above also has a "),e("code",{class:""},"quantity"),t(" field on the Junction Collection, which tracks how much of each ingredient is needed for the recipe. You can add any other "),e("em",null,"contextual"),t(" fields to the junction, and they will also be included at the top of the App\u2019s relational Item Page form.")],-1),qe=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Self-Referencing"),e("p",null,[t("You can also have a M2M relationship that connects items within the "),e("em",null,"same"),t(" collection. An example of this is \u201CRelated Articles\u201D, where an article might relate to many other articles.")])],-1),Be=e("h3",{id:"setup-4"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-4"},"#")],-1),Je=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/M2M-20220216A.webp",alt:"M2M"})],-1),We=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),Ye=e("p",null,[t("Next you should configure the Related Collection. If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),Ue=t("Lastly, we configure the "),Le=t("Junction Collection"),Ee=t(", which sits between the two related collections, storing all links between the two. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),ze=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the reverse M2M field on the "),e("em",null,"related"),t(" collection.")],-1),He=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),Ve=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),Ge=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2M is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Delete of [Related Collection Item]"),t(" \u2014 When the related M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),Qe=e("h2",{id:"many-to-any-(m2a)"},[t("Many-to-Any (M2A) "),e("a",{class:"header-anchor",href:"#many-to-any-(m2a)"},"#")],-1),Xe=t("Sometimes called a \u201Cmatrix field\u201D or \u201Creplicator\u201D. Like the M2M, the M2A is stored as an "),Ze=t("Alias"),$e=t(" field on its parent Collection that dynamically lists all items connected via a "),et=t("junction collection"),tt=t(". However, there is one key difference: one side of the junction also stores a "),nt=e("strong",null,"collection key",-1),ot=t(". This combination of collection name and primary key means that you can effectively store a reference to "),lt=e("em",null,"any",-1),it=t(" item in the database. You can then artificially limit which collections are valid through a related collections \u201Callow list\u201D."),st=e("p",null,[t("A common example of a M2A is a \u201CPage Builder\u201D, which has a "),e("em",null,"Pages"),t(" collection that includes any number of different \u201Csection\u201D Collections, such as: \u201CHeading\u201D, \u201CText\u201D, and \u201CImage\u201D. In this example the junction table will link different sections (from different collections) with a page, creating relational layouts.")],-1),at=e("p",null,"Below is an example of a M2A relationship:",-1),rt=e("pre",null,[e("code",{class:""},`pages (Collection)
34
+ - id
35
+ - name
36
+ - *sections* (O2M/M2A alias field that lists references from "page_sections")
37
+
38
+ page_sections (Junction Collection)
39
+ - id
40
+ - pages_id (stores the primary key of the parent page)
41
+ - collection (stores name of the related collection, for example "headings", "text", or "images")
42
+ - item (stores the primary key of the related item)
43
+
44
+ headings (Collection)
45
+ - id
46
+ - title
47
+
48
+ text (Collection)
49
+ - id
50
+ - text
51
+
52
+ images (Collection)
53
+ - id
54
+ - file
55
+ `)],-1),ct=e("h3",{id:"setup-5"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-5"},"#")],-1),dt=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/M2A-20220216A.webp",alt:"M2A"})],-1),ht=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),ut=t("Next, we configure the "),ft=t("Junction Collection"),pt=t(", which sits between the related collections, storing all links between them. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),mt=e("p",null,[t("Lastly, you should select any desired Related Collections. Unlike other relationships, you can\u2019t "),e("em",null,"create"),t(" these related collections here, so ensure all related collections you need are created beforehand.")],-1),_t=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Auto-generating"),e("p",null,"If you enter a collection/field name that doesn\u2019t exist yet, Directus will auto-generate these collections/fields once you save the changes on the new M2A field.")],-1),yt=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this M2A field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),gt=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),wt=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When a M2A item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2A is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])])],-1),Mt=e("h2",{id:"one-to-one-(o2o)"},[t("One-to-One (O2O) "),e("a",{class:"header-anchor",href:"#one-to-one-(o2o)"},"#")],-1),bt=t("Directus does not include a dedicated One-to-One (O2O) relationship type or interface. However, O2O is essentially the same as a M2O (storing a foreign key). The only difference is that a O2O enforces the cardinality. In other words, selecting a relational item in a O2O means that item can not be selected elsewhere (it can only be used once). This functionality can be added by checking and constraining uniqueness via a "),vt=t("custom event hook"),Ot=t(" or "),kt=t("custom interface"),Tt=t("."),xt=e("p",null,[t("An example of this is a "),e("em",null,"person"),t(" only has one unique set of "),e("em",null,"fingerprints"),t(", and those "),e("em",null,"fingerprints"),t(" only belong to one "),e("em",null,"person"),t(".")],-1),Ct={title:"Relationships",modularExtension:!1},At={name:"relationships",setup(jt,{expose:a}){return a({frontmatter:{title:"Relationships",modularExtension:!1}}),(It,Pt)=>{const o=i("router-link"),r=i("docswrapper");return c(),d(r,{frontmatter:Ct},{default:n(()=>[e("div",h,[u,f,p,m,_,e("p",null,[y,l(o,{to:"/docs/getting-started/glossary/#items"},{default:n(()=>[g]),_:1}),w,l(o,{to:"/docs/getting-started/glossary/#primary-key-pk"},{default:n(()=>[M]),_:1}),b,l(o,{to:"/docs/getting-started/glossary/#collections"},{default:n(()=>[v]),_:1}),O,l(o,{to:"/docs/getting-started/glossary/#fields"},{default:n(()=>[k]),_:1}),T,x,C]),A,j,I,P,D,S,R,F,K,N,q,B,J,W,Y,U,e("p",null,[L,E,z,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[H]),_:1}),V]),G,Q,X,Z,$,ee,te,ne,oe,le,ie,se,e("p",null,[ae,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[re]),_:1}),ce,de,he]),ue,fe,pe,me,_e,ye,ge,we,e("p",null,[Me,be,ve,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[Oe]),_:1}),ke,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Te]),_:1}),xe,Ce,Ae,je,Ie,Pe,De,Se,Re]),Fe,Ke,Ne,qe,Be,Je,We,Ye,e("p",null,[Ue,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Le]),_:1}),Ee]),ze,He,Ve,Ge,Qe,e("p",null,[Xe,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[Ze]),_:1}),$e,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[et]),_:1}),tt,nt,ot,lt,it]),st,at,rt,ct,dt,ht,e("p",null,[ut,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[ft]),_:1}),pt]),mt,_t,yt,gt,wt,Mt,e("p",null,[bt,l(o,{to:"/docs/extensions/hooks/"},{default:n(()=>[vt]),_:1}),Ot,l(o,{to:"/docs/extensions/interfaces/"},{default:n(()=>[kt]),_:1}),Tt]),xt])]),_:1})}}};typeof s=="function"&&s(At);export{At as default,Ct as frontmatter};
@@ -0,0 +1,40 @@
1
+ import{a,o as c,b as h,w as t,g as s,e as o,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";var i={};const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),g=s("hr",null,null,-1),y=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),b={class:"two-up"},j={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",{class:""},"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",{class:""},"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),T=e(" Related activity record. Many-to-one to "),P=e("activity"),S=e("."),L=s("p",null,[s("code",{class:""},"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",{class:""},"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),Q=s("p",null,[s("code",{class:""},"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),A=s("p",null,[s("code",{class:""},"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),G=s("p",null,[s("code",{class:""},"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),B=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
2
+ `),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"368"),e(`,
3
+ `),s("span",{class:"hljs-attr"},'"activity"'),e(": "),s("span",{class:"hljs-number"},"438"),e(`,
4
+ `),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"articles"'),e(`,
5
+ `),s("span",{class:"hljs-attr"},'"item"'),e(": "),s("span",{class:"hljs-string"},'"1"'),e(`,
6
+ `),s("span",{class:"hljs-attr"},'"data"'),e(`: {
7
+ `),s("span",{class:"hljs-attr"},'"title"'),e(": "),s("span",{class:"hljs-string"},'"Hello World"'),e(`
8
+ },
9
+ `),s("span",{class:"hljs-attr"},'"delta"'),e(`: {
10
+ `),s("span",{class:"hljs-attr"},'"title"'),e(": "),s("span",{class:"hljs-string"},'"Hello from the Docs!"'),e(`
11
+ },
12
+ `),s("span",{class:"hljs-attr"},'"parent"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`
13
+ }
14
+ `)])])],-1),D=s("hr",null,null,-1),H=s("h2",{id:"list-revisions"},[e("List revisions "),s("a",{class:"header-anchor",href:"#list-revisions"},"#")],-1),I=s("p",null,"List all revisions that exist in Directus.",-1),O={class:"two-up"},N={class:"left"},V=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, revisions that apply to a collection that the current user doesn\u2019t have access to are stripped out.")],-1),M=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),F=e("Supports all "),W=e("global query parameters"),z=e("."),J=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),K=e("An array of up to "),U=e("limit"),X=e(),Y=s("a",{href:"#the-revision-object"},"revision objects",-1),Z=e(". If no items are available, data will be an empty array."),$={class:"right"},ss=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),es=s("pre",null,[s("code",{class:""},`GET /revisions
15
+ SEARCH /revisions
16
+ `)],-1),ts=e("Learn more about SEARCH ->"),ns=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),os=s("pre",null,[s("code",{class:""},`POST /graphql/system
17
+ `)],-1),as=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
18
+ revisions: [directus_revisions]
19
+ }
20
+ `)])],-1),is=s("h5",{id:"examples"},[e("Examples "),s("a",{class:"header-anchor",href:"#examples"},"#")],-1),rs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
21
+ revisions {
22
+ id
23
+ data
24
+ delta
25
+ }
26
+ }
27
+ `)])],-1),ls=s("hr",null,null,-1),cs=s("h2",{id:"retrieve-a-revision"},[e("Retrieve a revision "),s("a",{class:"header-anchor",href:"#retrieve-a-revision"},"#")],-1),hs=s("p",null,"List an existing revision by primary key.",-1),ds={class:"two-up"},_s={class:"left"},ps=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),us=e("Supports all "),vs=e("global query parameters"),ms=e("."),fs=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),gs=s("p",null,[e("Returns the requested "),s("a",{href:"#the-revision-object"},"revision object"),e(".")],-1),ys=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",{class:""},`GET /revisions/:id
28
+ `)]),s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")]),s("pre",null,[s("code",{class:""},`GET /revisions/322
29
+ `)]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
30
+ `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
31
+ revisions_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_revisions
32
+ }
33
+ `)])]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
34
+ revisions_by_id(id: `),s("span",{class:"hljs-number"},"322"),e(`) {
35
+ id
36
+ data
37
+ delta
38
+ }
39
+ }
40
+ `)])])],-1),bs={title:"Revisions",modularExtension:!1,pageClass:"page-reference"},js={name:"revisions",setup(qs,{expose:r}){return r({frontmatter:{title:"Revisions",modularExtension:!1,pageClass:"page-reference"}}),(xs,ws)=>{const n=a("router-link"),l=a("docswrapper");return c(),h(l,{frontmatter:bs},{default:t(()=>[s("div",d,[s("div",_,[s("div",p,[s("blockquote",null,[s("p",null,[u,o(n,{to:"/docs/getting-started/glossary/#revisions"},{default:t(()=>[v]),_:1}),m])])]),f]),g,y,s("div",b,[s("div",j,[s("div",q,[x,s("p",null,[w,k,R,E,T,o(n,{to:"/docs/reference/system/activity/"},{default:t(()=>[P]),_:1}),S]),L,C,Q,A,G])]),B]),D,H,I,s("div",O,[s("div",N,[V,M,s("p",null,[F,o(n,{to:"/docs/reference/query"},{default:t(()=>[W]),_:1}),z]),J,s("p",null,[K,o(n,{to:"/docs/reference/query/#limit"},{default:t(()=>[U]),_:1}),X,Y,Z])]),s("div",$,[ss,es,s("p",null,[o(n,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[ts]),_:1})]),ns,os,as,is,rs])]),ls,cs,hs,s("div",ds,[s("div",_s,[ps,s("p",null,[us,o(n,{to:"/docs/reference/query"},{default:t(()=>[vs]),_:1}),ms]),fs,gs]),ys])])]),_:1})}}};typeof i=="function"&&i(js);export{js as default,bs as frontmatter};
@@ -1,4 +1,4 @@
1
- import{w as r,y as h,z as d,A as l,E as s,C as t,W as e}from"./vendor.f6090249.js";const i={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),f=e("Learn more about Roles"),m=e("."),g=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-role-object"},"The Role Object")]),s("li",null,[s("a",{href:"#list-roles"},"List Roles")]),s("li",null,[s("a",{href:"#retrieve-a-role"},"Retrieve a Role")]),s("li",null,[s("a",{href:"#create-a-role"},"Create a Role")]),s("li",null,[s("a",{href:"#create-multiple-roles"},"Create Multiple Roles")]),s("li",null,[s("a",{href:"#update-a-role"},"Update a Role")]),s("li",null,[s("a",{href:"#update-multiple-roles"},"Update Multiple Roles")]),s("li",null,[s("a",{href:"#delete-a-role"},"Delete a Role")]),s("li",null,[s("a",{href:"#delete-multiple-roles"},"Delete Multiple Roles")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-role-object"},[e("The Role Object "),s("a",{class:"header-anchor",href:"#the-role-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},R=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),v=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),E=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),T=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),w=s("p",null,[s("code",null,"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),P=s("p",null,[s("code",null,"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),A=s("p",null,[s("code",null,"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),k=s("p",null,[s("code",null,"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),S=s("code",null,"users",-1),I=e(),D=s("strong",null,"one-to-many",-1),C=s("br",null,null,-1),L=e(" The users in this role. One-to-many to "),Q=e("users"),O=e("."),M=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
1
+ import{a as r,o as h,b as d,w as a,g as s,e as t,B as e}from"./runtime-core.esm-bundler.b1f35d24.js";var n={};const i={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),f=e("Learn more about Roles"),m=e("."),g=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-role-object"},"The Role Object")]),s("li",null,[s("a",{href:"#list-roles"},"List Roles")]),s("li",null,[s("a",{href:"#retrieve-a-role"},"Retrieve a Role")]),s("li",null,[s("a",{href:"#create-a-role"},"Create a Role")]),s("li",null,[s("a",{href:"#create-multiple-roles"},"Create Multiple Roles")]),s("li",null,[s("a",{href:"#update-a-role"},"Update a Role")]),s("li",null,[s("a",{href:"#update-multiple-roles"},"Update Multiple Roles")]),s("li",null,[s("a",{href:"#delete-a-role"},"Delete a Role")]),s("li",null,[s("a",{href:"#delete-multiple-roles"},"Delete Multiple Roles")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-role-object"},[e("The Role Object "),s("a",{class:"header-anchor",href:"#the-role-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},v=s("p",null,[s("code",{class:""},"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),R=s("p",null,[s("code",{class:""},"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),E=s("p",null,[s("code",{class:""},"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),w=s("p",null,[s("code",{class:""},"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),T=s("p",null,[s("code",{class:""},"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),P=s("p",null,[s("code",{class:""},"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),k=s("p",null,[s("code",{class:""},"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),A=s("p",null,[s("code",{class:""},"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),S=s("code",{class:""},"users",-1),I=e(),C=s("strong",null,"one-to-many",-1),D=s("br",null,null,-1),L=e(" The users in this role. One-to-many to "),Q=e("users"),O=e("."),M=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),e(`,
3
3
  `),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"Admin"'),e(`,
4
4
  `),s("span",{class:"hljs-attr"},'"icon"'),e(": "),s("span",{class:"hljs-string"},'"supervised_user_circle"'),e(`,
@@ -9,10 +9,10 @@ import{w as r,y as h,z as d,A as l,E as s,C as t,W as e}from"./vendor.f6090249.j
9
9
  `),s("span",{class:"hljs-attr"},'"app_access"'),e(": "),s("span",{class:"hljs-literal"},"true"),e(`,
10
10
  `),s("span",{class:"hljs-attr"},'"users"'),e(": ["),s("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),e(`]
11
11
  }
12
- `)])])],-1),G=s("hr",null,null,-1),B=s("h2",{id:"list-roles"},[e("List Roles "),s("a",{class:"header-anchor",href:"#list-roles"},"#")],-1),U=s("p",null,"List all roles that exist in Directus.",-1),H={class:"two-up"},W={class:"left"},N=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),V=e("Supports all "),z=e("global query parameters"),F=e("."),J=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),K=e("An array of up to "),X=e("limit"),Y=e(),Z=s("a",{href:"#the-role-object"},"role objects",-1),$=e(". If no items are available, data will be an empty array."),ss={class:"right"},es=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),ls=s("pre",null,[s("code",null,`GET /roles
12
+ `)])])],-1),G=s("hr",null,null,-1),B=s("h2",{id:"list-roles"},[e("List Roles "),s("a",{class:"header-anchor",href:"#list-roles"},"#")],-1),U=s("p",null,"List all roles that exist in Directus.",-1),H={class:"two-up"},N={class:"left"},V=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),W=e("Supports all "),z=e("global query parameters"),F=e("."),J=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),K=e("An array of up to "),X=e("limit"),Y=e(),Z=s("a",{href:"#the-role-object"},"role objects",-1),$=e(". If no items are available, data will be an empty array."),ss={class:"right"},es=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),as=s("pre",null,[s("code",{class:""},`GET /roles
13
13
  SEARCH /roles
14
- `)],-1),as=e("Learn more about SEARCH ->"),ts=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),ns=s("pre",null,[s("code",null,`POST /graphql/system
15
- `)],-1),rs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
14
+ `)],-1),ls=e("Learn more about SEARCH ->"),ts=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),rs=s("pre",null,[s("code",{class:""},`POST /graphql/system
15
+ `)],-1),ns=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
16
16
  roles: [directus_roles]
17
17
  }
18
18
  `)])],-1),os=s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")],-1),cs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
@@ -24,9 +24,9 @@ SEARCH /roles
24
24
  }
25
25
  }
26
26
  }
27
- `)])],-1),hs=s("hr",null,null,-1),ds=s("h2",{id:"retrieve-a-role"},[e("Retrieve a Role "),s("a",{class:"header-anchor",href:"#retrieve-a-role"},"#")],-1),is=s("p",null,"List an existing role by primary key.",-1),ps={class:"two-up"},us={class:"left"},_s=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),fs=e("Supports all "),ms=e("global query parameters"),gs=e("."),js=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),ys=s("p",null,[e("Returns the requested "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),bs=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",null,`GET /roles/:id
28
- `)]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",null,`GET /roles/b4cb3b64-8580-4ad9-a099-eade6da24302
29
- `)]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
27
+ `)])],-1),hs=s("hr",null,null,-1),ds=s("h2",{id:"retrieve-a-role"},[e("Retrieve a Role "),s("a",{class:"header-anchor",href:"#retrieve-a-role"},"#")],-1),is=s("p",null,"List an existing role by primary key.",-1),ps={class:"two-up"},us={class:"left"},_s=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),fs=e("Supports all "),ms=e("global query parameters"),gs=e("."),js=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),ys=s("p",null,[e("Returns the requested "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),bs=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",{class:""},`GET /roles/:id
28
+ `)]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:""},`GET /roles/b4cb3b64-8580-4ad9-a099-eade6da24302
29
+ `)]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
30
30
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
31
31
  roles_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_roles
32
32
  }
@@ -39,7 +39,7 @@ SEARCH /roles
39
39
  }
40
40
  }
41
41
  }
42
- `)])])],-1),qs=s("hr",null,null,-1),xs=s("h2",{id:"create-a-role"},[e("Create a Role "),s("a",{class:"header-anchor",href:"#create-a-role"},"#")],-1),Rs=s("p",null,"Create a new role.",-1),vs={class:"two-up"},Es={class:"left"},Ts=s("h3",{id:"query-parameters-3"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),ws=e("Supports all "),Ps=e("global query parameters"),As=e("."),ks=s("h3",{id:"request-body"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Ss=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),Is=s("h3",{id:"returns-3"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),Ds=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the created role.")],-1),Cs=s("div",{class:"right"},[s("h3",{id:"rest-api-3"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),s("pre",null,[s("code",null,`POST /roles
42
+ `)])])],-1),qs=s("hr",null,null,-1),xs=s("h2",{id:"create-a-role"},[e("Create a Role "),s("a",{class:"header-anchor",href:"#create-a-role"},"#")],-1),vs=s("p",null,"Create a new role.",-1),Rs={class:"two-up"},Es={class:"left"},ws=s("h3",{id:"query-parameters-3"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Ts=e("Supports all "),Ps=e("global query parameters"),ks=e("."),As=s("h3",{id:"request-body"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Ss=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),Is=s("h3",{id:"returns-3"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),Cs=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the created role.")],-1),Ds=s("div",{class:"right"},[s("h3",{id:"rest-api-3"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),s("pre",null,[s("code",{class:""},`POST /roles
43
43
  `)]),s("h5",{id:"example-4"},[e("Example "),s("a",{class:"header-anchor",href:"#example-4"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /roles"),e(`
44
44
 
45
45
  {
@@ -49,7 +49,7 @@ SEARCH /roles
49
49
  `),s("span",{class:"hljs-attr"},'"admin_access"'),e(": "),s("span",{class:"hljs-literal"},"false"),e(`,
50
50
  `),s("span",{class:"hljs-attr"},'"app_access"'),e(": "),s("span",{class:"hljs-literal"},"true"),e(`
51
51
  }
52
- `)])]),s("h3",{id:"graphql-3"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-3"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
52
+ `)])]),s("h3",{id:"graphql-3"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-3"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
53
53
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
54
54
  create_roles_item(data: create_directus_roles_input!): directus_roles
55
55
  }
@@ -64,7 +64,7 @@ SEARCH /roles
64
64
  }
65
65
  }
66
66
  }
67
- `)])])],-1),Ls=s("hr",null,null,-1),Qs=s("h2",{id:"create-multiple-roles"},[e("Create Multiple Roles "),s("a",{class:"header-anchor",href:"#create-multiple-roles"},"#")],-1),Os=s("p",null,"Create multiple new roles.",-1),Ms={class:"two-up"},Gs={class:"left"},Bs=s("h3",{id:"query-parameters-4"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Us=e("Supports all "),Hs=e("global query parameters"),Ws=e("."),Ns=s("h3",{id:"request-body-2"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),Vs=s("p",null,[e("An array of partial "),s("a",{href:"#the-role-object"},"role objects"),e(".")],-1),zs=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),Fs=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the created roles.")],-1),Js=s("div",{class:"right"},[s("h3",{id:"rest-api-4"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),s("pre",null,[s("code",null,`POST /roles
67
+ `)])])],-1),Ls=s("hr",null,null,-1),Qs=s("h2",{id:"create-multiple-roles"},[e("Create Multiple Roles "),s("a",{class:"header-anchor",href:"#create-multiple-roles"},"#")],-1),Os=s("p",null,"Create multiple new roles.",-1),Ms={class:"two-up"},Gs={class:"left"},Bs=s("h3",{id:"query-parameters-4"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Us=e("Supports all "),Hs=e("global query parameters"),Ns=e("."),Vs=s("h3",{id:"request-body-2"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),Ws=s("p",null,[e("An array of partial "),s("a",{href:"#the-role-object"},"role objects"),e(".")],-1),zs=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),Fs=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the created roles.")],-1),Js=s("div",{class:"right"},[s("h3",{id:"rest-api-4"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),s("pre",null,[s("code",{class:""},`POST /roles
68
68
  `)]),s("h5",{id:"example-6"},[e("Example "),s("a",{class:"header-anchor",href:"#example-6"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /roles"),e(`
69
69
 
70
70
  [
@@ -83,7 +83,7 @@ SEARCH /roles
83
83
  `),s("span",{class:"hljs-attr"},'"app_access"'),e(": "),s("span",{class:"hljs-literal"},"false"),e(`
84
84
  }
85
85
  ]
86
- `)])]),s("h3",{id:"graphql-4"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
86
+ `)])]),s("h3",{id:"graphql-4"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
87
87
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
88
88
  create_roles_items(data: [create_directus_roles_input!]!): [directus_roles]
89
89
  }
@@ -101,13 +101,13 @@ SEARCH /roles
101
101
  }
102
102
  }
103
103
  }
104
- `)])])],-1),Ks=s("hr",null,null,-1),Xs=s("h2",{id:"update-a-role"},[e("Update a Role "),s("a",{class:"header-anchor",href:"#update-a-role"},"#")],-1),Ys=s("p",null,"Update an existing role.",-1),Zs={class:"two-up"},$s={class:"left"},se=s("h3",{id:"query-parameters-5"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),ee=e("Supports all "),le=e("global query parameters"),ae=e("."),te=s("h3",{id:"request-body-3"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),ne=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),re=s("h3",{id:"returns-5"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),oe=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the updated role.")],-1),ce=s("div",{class:"right"},[s("h3",{id:"rest-api-5"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),s("pre",null,[s("code",null,`PATCH /roles/:id
104
+ `)])])],-1),Ks=s("hr",null,null,-1),Xs=s("h2",{id:"update-a-role"},[e("Update a Role "),s("a",{class:"header-anchor",href:"#update-a-role"},"#")],-1),Ys=s("p",null,"Update an existing role.",-1),Zs={class:"two-up"},$s={class:"left"},se=s("h3",{id:"query-parameters-5"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),ee=e("Supports all "),ae=e("global query parameters"),le=e("."),te=s("h3",{id:"request-body-3"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),re=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),ne=s("h3",{id:"returns-5"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),oe=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the updated role.")],-1),ce=s("div",{class:"right"},[s("h3",{id:"rest-api-5"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),s("pre",null,[s("code",{class:""},`PATCH /roles/:id
105
105
  `)]),s("h5",{id:"example-8"},[e("Example "),s("a",{class:"header-anchor",href:"#example-8"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /roles/c86c2761-65d3-43c3-897f-6f74ad6a5bd7"),e(`
106
106
 
107
107
  {
108
108
  `),s("span",{class:"hljs-attr"},'"icon"'),e(": "),s("span",{class:"hljs-string"},'"attractions"'),e(`
109
109
  }
110
- `)])]),s("h3",{id:"graphql-5"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-5"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
110
+ `)])]),s("h3",{id:"graphql-5"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-5"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
111
111
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
112
112
  update_roles_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_roles_input): directus_roles
113
113
  }
@@ -120,7 +120,7 @@ SEARCH /roles
120
120
  }
121
121
  }
122
122
  }
123
- `)])])],-1),he=s("hr",null,null,-1),de=s("h2",{id:"update-multiple-roles"},[e("Update Multiple Roles "),s("a",{class:"header-anchor",href:"#update-multiple-roles"},"#")],-1),ie=s("p",null,"Update multiple existing roles.",-1),pe={class:"two-up"},ue={class:"left"},_e=s("h3",{id:"query-parameters-6"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),fe=e("Supports all "),me=e("global query parameters"),ge=e("."),je=s("h3",{id:"request-body-4"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),ye=s("div",{class:"definitions"},[s("p",null,[s("code",null,"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the roles you\u2019d like to update.")]),s("p",null,[s("code",null,"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-role-object"},"the role object"),e("\u2019s properties.")])],-1),be=s("h3",{id:"returns-6"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),qe=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the updated roles.")],-1),xe=s("div",{class:"right"},[s("h3",{id:"rest-api-6"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),s("pre",null,[s("code",null,`PATCH /roles
123
+ `)])])],-1),he=s("hr",null,null,-1),de=s("h2",{id:"update-multiple-roles"},[e("Update Multiple Roles "),s("a",{class:"header-anchor",href:"#update-multiple-roles"},"#")],-1),ie=s("p",null,"Update multiple existing roles.",-1),pe={class:"two-up"},ue={class:"left"},_e=s("h3",{id:"query-parameters-6"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),fe=e("Supports all "),me=e("global query parameters"),ge=e("."),je=s("h3",{id:"request-body-4"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),ye=s("div",{class:"definitions"},[s("p",null,[s("code",{class:""},"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the roles you\u2019d like to update.")]),s("p",null,[s("code",{class:""},"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-role-object"},"the role object"),e("\u2019s properties.")])],-1),be=s("h3",{id:"returns-6"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),qe=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the updated roles.")],-1),xe=s("div",{class:"right"},[s("h3",{id:"rest-api-6"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),s("pre",null,[s("code",{class:""},`PATCH /roles
124
124
  `)]),s("h5",{id:"example-10"},[e("Example "),s("a",{class:"header-anchor",href:"#example-10"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /roles"),e(`
125
125
 
126
126
  {
@@ -129,7 +129,7 @@ SEARCH /roles
129
129
  `),s("span",{class:"hljs-attr"},'"icon"'),e(": "),s("span",{class:"hljs-string"},'"attractions"'),e(`
130
130
  }
131
131
  }
132
- `)])]),s("h3",{id:"graphql-6"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-6"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
132
+ `)])]),s("h3",{id:"graphql-6"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-6"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
133
133
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
134
134
  update_roles_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_roles_input): [directus_roles]
135
135
  }
@@ -145,9 +145,9 @@ SEARCH /roles
145
145
  }
146
146
  }
147
147
  }
148
- `)])])],-1),Re=s("hr",null,null,-1),ve=s("h2",{id:"delete-a-role"},[e("Delete a Role "),s("a",{class:"header-anchor",href:"#delete-a-role"},"#")],-1),Ee=s("p",null,"Delete an existing role.",-1),Te=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-7"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-7"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-7"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),s("pre",null,[s("code",null,`DELETE /roles/:id
149
- `)]),s("h5",{id:"example-12"},[e("Example "),s("a",{class:"header-anchor",href:"#example-12"},"#")]),s("pre",null,[s("code",null,`DELETE /roles/c86c2761-65d3-43c3-897f-6f74ad6a5bd7
150
- `)]),s("h3",{id:"graphql-7"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-7"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
148
+ `)])])],-1),ve=s("hr",null,null,-1),Re=s("h2",{id:"delete-a-role"},[e("Delete a Role "),s("a",{class:"header-anchor",href:"#delete-a-role"},"#")],-1),Ee=s("p",null,"Delete an existing role.",-1),we=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-7"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-7"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-7"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /roles/:id
149
+ `)]),s("h5",{id:"example-12"},[e("Example "),s("a",{class:"header-anchor",href:"#example-12"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /roles/c86c2761-65d3-43c3-897f-6f74ad6a5bd7
150
+ `)]),s("h3",{id:"graphql-7"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-7"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
151
151
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
152
152
  delete_roles_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): delete_one
153
153
  }
@@ -156,10 +156,10 @@ SEARCH /roles
156
156
  id
157
157
  }
158
158
  }
159
- `)])])])],-1),we=s("hr",null,null,-1),Pe=s("h2",{id:"delete-multiple-roles"},[e("Delete Multiple Roles "),s("a",{class:"header-anchor",href:"#delete-multiple-roles"},"#")],-1),Ae=s("p",null,"Delete multiple existing roles.",-1),ke=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-5"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-5"},"#")]),s("p",null,"An array of role primary keys"),s("h3",{id:"returns-8"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-8"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-8"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),s("pre",null,[s("code",null,`DELETE /roles
159
+ `)])])])],-1),Te=s("hr",null,null,-1),Pe=s("h2",{id:"delete-multiple-roles"},[e("Delete Multiple Roles "),s("a",{class:"header-anchor",href:"#delete-multiple-roles"},"#")],-1),ke=s("p",null,"Delete multiple existing roles.",-1),Ae=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-5"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-5"},"#")]),s("p",null,"An array of role primary keys"),s("h3",{id:"returns-8"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-8"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-8"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),s("pre",null,[s("code",{class:""},`DELETE /roles
160
160
  `)]),s("h5",{id:"example-14"},[e("Example "),s("a",{class:"header-anchor",href:"#example-14"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /roles"),e(`
161
161
  [`),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),e(", "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`]
162
- `)])]),s("h3",{id:"graphql-8"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-8"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
162
+ `)])]),s("h3",{id:"graphql-8"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-8"},"#")]),s("pre",null,[s("code",{class:""},`POST /graphql/system
163
163
  `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
164
164
  delete_roles_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
165
165
  }
@@ -168,4 +168,4 @@ SEARCH /roles
168
168
  ids
169
169
  }
170
170
  }
171
- `)])])])],-1),Se=s("hr",null,null,-1),Qe={setup(Ie,{expose:o}){const n={title:"Roles",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:n}),(De,Ce)=>{const a=r("router-link"),c=r("DocsWrapper");return h(),d(c,{frontmatter:n},{default:l(()=>[s("div",i,[s("div",p,[s("div",u,[s("blockquote",null,[s("p",null,[_,t(a,{to:"/docs/getting-started/glossary/#roles"},{default:l(()=>[f]),_:1}),m])])]),g]),j,y,s("div",b,[s("div",q,[s("div",x,[R,v,E,T,w,P,A,k,s("p",null,[S,I,D,C,L,t(a,{to:"/docs/reference/system/users/"},{default:l(()=>[Q]),_:1}),O])])]),M]),G,B,U,s("div",H,[s("div",W,[N,s("p",null,[V,t(a,{to:"/docs/reference/query"},{default:l(()=>[z]),_:1}),F]),J,s("p",null,[K,t(a,{to:"/docs/reference/query/#limit"},{default:l(()=>[X]),_:1}),Y,Z,$])]),s("div",ss,[es,ls,s("p",null,[t(a,{to:"/docs/reference/introduction/#search-http-method"},{default:l(()=>[as]),_:1})]),ts,ns,rs,os,cs])]),hs,ds,is,s("div",ps,[s("div",us,[_s,s("p",null,[fs,t(a,{to:"/docs/reference/query"},{default:l(()=>[ms]),_:1}),gs]),js,ys]),bs]),qs,xs,Rs,s("div",vs,[s("div",Es,[Ts,s("p",null,[ws,t(a,{to:"/docs/reference/query"},{default:l(()=>[Ps]),_:1}),As]),ks,Ss,Is,Ds]),Cs]),Ls,Qs,Os,s("div",Ms,[s("div",Gs,[Bs,s("p",null,[Us,t(a,{to:"/docs/reference/query"},{default:l(()=>[Hs]),_:1}),Ws]),Ns,Vs,zs,Fs]),Js]),Ks,Xs,Ys,s("div",Zs,[s("div",$s,[se,s("p",null,[ee,t(a,{to:"/docs/reference/query"},{default:l(()=>[le]),_:1}),ae]),te,ne,re,oe]),ce]),he,de,ie,s("div",pe,[s("div",ue,[_e,s("p",null,[fe,t(a,{to:"/docs/reference/query"},{default:l(()=>[me]),_:1}),ge]),je,ye,be,qe]),xe]),Re,ve,Ee,Te,we,Pe,Ae,ke,Se])]),_:1})}}};export{Qe as default};
171
+ `)])])])],-1),Se=s("hr",null,null,-1),Ie={title:"Roles",modularExtension:!1,pageClass:"page-reference"},Ce={name:"roles",setup(De,{expose:o}){return o({frontmatter:{title:"Roles",modularExtension:!1,pageClass:"page-reference"}}),(Le,Qe)=>{const l=r("router-link"),c=r("docswrapper");return h(),d(c,{frontmatter:Ie},{default:a(()=>[s("div",i,[s("div",p,[s("div",u,[s("blockquote",null,[s("p",null,[_,t(l,{to:"/docs/getting-started/glossary/#roles"},{default:a(()=>[f]),_:1}),m])])]),g]),j,y,s("div",b,[s("div",q,[s("div",x,[v,R,E,w,T,P,k,A,s("p",null,[S,I,C,D,L,t(l,{to:"/docs/reference/system/users/"},{default:a(()=>[Q]),_:1}),O])])]),M]),G,B,U,s("div",H,[s("div",N,[V,s("p",null,[W,t(l,{to:"/docs/reference/query"},{default:a(()=>[z]),_:1}),F]),J,s("p",null,[K,t(l,{to:"/docs/reference/query/#limit"},{default:a(()=>[X]),_:1}),Y,Z,$])]),s("div",ss,[es,as,s("p",null,[t(l,{to:"/docs/reference/introduction/#search-http-method"},{default:a(()=>[ls]),_:1})]),ts,rs,ns,os,cs])]),hs,ds,is,s("div",ps,[s("div",us,[_s,s("p",null,[fs,t(l,{to:"/docs/reference/query"},{default:a(()=>[ms]),_:1}),gs]),js,ys]),bs]),qs,xs,vs,s("div",Rs,[s("div",Es,[ws,s("p",null,[Ts,t(l,{to:"/docs/reference/query"},{default:a(()=>[Ps]),_:1}),ks]),As,Ss,Is,Cs]),Ds]),Ls,Qs,Os,s("div",Ms,[s("div",Gs,[Bs,s("p",null,[Us,t(l,{to:"/docs/reference/query"},{default:a(()=>[Hs]),_:1}),Ns]),Vs,Ws,zs,Fs]),Js]),Ks,Xs,Ys,s("div",Zs,[s("div",$s,[se,s("p",null,[ee,t(l,{to:"/docs/reference/query"},{default:a(()=>[ae]),_:1}),le]),te,re,ne,oe]),ce]),he,de,ie,s("div",pe,[s("div",ue,[_e,s("p",null,[fe,t(l,{to:"/docs/reference/query"},{default:a(()=>[me]),_:1}),ge]),je,ye,be,qe]),xe]),ve,Re,Ee,we,Te,Pe,ke,Ae,Se])]),_:1})}}};typeof n=="function"&&n(Ce);export{Ce as default,Ie as frontmatter};
@@ -0,0 +1 @@
1
+ import{A as d}from"./index.70f6f88a.entry.js";function m(i,f){return f.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(n){if(n!=="default"&&!(n in i)){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var p={exports:{}};(function(i,f){(function(e){e(d.exports)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,a=/^[\w+.-]+@[\w.-]+/;return{token:function(o){return o.sol()&&(o.match(n)||o.match(c))?"tag":o.match(a)?"string":(o.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,a=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,o=/^%(ifnarch|ifarch|if)/,u=/^%(else|endif)/,l=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(a))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(u))return"keyword";if(r.match(o))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(l))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(n))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var g=p.exports,v=m({__proto__:null,default:g},[p.exports]);export{v as r};
@@ -0,0 +1 @@
1
+ import{A as oe}from"./index.70f6f88a.entry.js";import{a as ae}from"./python.fe6c7a24.js";import{a as ie}from"./stex.fb7fd990.js";import{o as le}from"./overlay.9a3d0cba.js";function fe(s,I){return I.forEach(function(l){l&&typeof l!="string"&&!Array.isArray(l)&&Object.keys(l).forEach(function(p){if(p!=="default"&&!(p in s)){var i=Object.getOwnPropertyDescriptor(l,p);Object.defineProperty(s,p,i.get?i:{enumerable:!0,get:function(){return l[p]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(s,I){(function(l){l(oe.exports,ae.exports,ie.exports,le.exports)})(function(l){l.defineMode("rst",function(p,i){var v=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,b=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,w=/^``[^`\s](?:[^`]*[^`\s])``/,u=/^(?:[\d]+(?:[\.,]\d+)*)/,E=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,_=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,T="[Hh][Tt][Tt][Pp][Ss]?://",P="(?:[\\d\\w.-]+)\\.(?:\\w{2,6})",x="(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*",y=new RegExp("^"+T+P+x),R={token:function(f){if(f.match(v)&&f.match(/\W+|$/,!1))return"strong";if(f.match(b)&&f.match(/\W+|$/,!1))return"em";if(f.match(w)&&f.match(/\W+|$/,!1))return"string-2";if(f.match(u))return"number";if(f.match(E))return"positive";if(f.match(_))return"negative";if(f.match(y))return"link";for(;f.next()!=null&&!(f.match(v,!1)||f.match(b,!1)||f.match(w,!1)||f.match(u,!1)||f.match(E,!1)||f.match(_,!1)||f.match(y,!1)););return null}},W=l.getMode(p,i.backdrop||"rst-base");return l.overlayMode(W,R,!0)},"python","stex"),l.defineMode("rst-base",function(p){function i(n){var e=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(r,N){return typeof e[N]!="undefined"?e[N]:r})}var v=l.getMode(p,"python"),b=l.getMode(p,"stex"),w="\\s+",u="(?:\\s*|\\W|$)",E=new RegExp(i("^{0}",u)),_=`(?:[^\\W\\d_](?:[\\w!"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)`,T=new RegExp(i("^{0}",_)),P=`(?:[^\\W\\d_](?:[\\w\\s!"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)`,x=i("(?:{0}|`{1}`)",_,P),y="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",R="(?:[^\\`]+)",W=new RegExp(i("^{0}",R)),f=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),z=new RegExp(i("^\\.\\.{0}",w)),O=new RegExp(i("^_{0}:{1}|^__:{1}",x,u)),A=new RegExp(i("^{0}::{1}",x,u)),S=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",y,w,x,u)),D=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",x,u)),F=new RegExp(i("^\\[{0}\\]{1}",x,u)),j=new RegExp(i("^\\|{0}\\|",y)),H=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",x)),B=new RegExp(i("^\\[{0}\\]_",x)),G=new RegExp(i("^{0}__?",x)),g=new RegExp(i("^`{0}`_",R)),h=new RegExp(i("^:{0}:`{1}`{2}",_,R,u)),m=new RegExp(i("^`{1}`:{0}:{2}",_,R,u)),$=new RegExp(i("^:{0}:{1}",_,u)),J=new RegExp(i("^{0}",x)),K=new RegExp(i("^::{0}",u)),X=new RegExp(i("^\\|{0}\\|",y)),Q=new RegExp(i("^{0}",w)),U=new RegExp(i("^{0}",x)),V=new RegExp(i("^::{0}",u)),Y=new RegExp("^_"),Z=new RegExp(i("^{0}|_",x)),C=new RegExp(i("^:{0}",u)),ee=new RegExp("^::\\s*$"),ne=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function o(n,e){var r=null;if(n.sol()&&n.match(ne,!1))c(e,q,{mode:v,local:l.startState(v)});else if(n.sol()&&n.match(z))c(e,t),r="meta";else if(n.sol()&&n.match(f))c(e,o),r="header";else if(k(e)==h||n.match(h,!1))switch(d(e)){case 0:c(e,o,a(h,1)),n.match(/^:/),r="meta";break;case 1:c(e,o,a(h,2)),n.match(T),r="keyword",n.current().match(/^(?:math|latex)/)&&(e.tmp_stex=!0);break;case 2:c(e,o,a(h,3)),n.match(/^:`/),r="meta";break;case 3:if(e.tmp_stex&&(e.tmp_stex=void 0,e.tmp={mode:b,local:l.startState(b)}),e.tmp){if(n.peek()=="`"){c(e,o,a(h,4)),e.tmp=void 0;break}r=e.tmp.mode.token(n,e.tmp.local);break}c(e,o,a(h,4)),n.match(W),r="string";break;case 4:c(e,o,a(h,5)),n.match(/^`/),r="meta";break;case 5:c(e,o,a(h,6)),n.match(E);break;default:c(e,o)}else if(k(e)==m||n.match(m,!1))switch(d(e)){case 0:c(e,o,a(m,1)),n.match(/^`/),r="meta";break;case 1:c(e,o,a(m,2)),n.match(W),r="string";break;case 2:c(e,o,a(m,3)),n.match(/^`:/),r="meta";break;case 3:c(e,o,a(m,4)),n.match(T),r="keyword";break;case 4:c(e,o,a(m,5)),n.match(/^:/),r="meta";break;case 5:c(e,o,a(m,6)),n.match(E);break;default:c(e,o)}else if(k(e)==$||n.match($,!1))switch(d(e)){case 0:c(e,o,a($,1)),n.match(/^:/),r="meta";break;case 1:c(e,o,a($,2)),n.match(T),r="keyword";break;case 2:c(e,o,a($,3)),n.match(/^:/),r="meta";break;case 3:c(e,o,a($,4)),n.match(E);break;default:c(e,o)}else if(k(e)==j||n.match(j,!1))switch(d(e)){case 0:c(e,o,a(j,1)),n.match(X),r="variable-2";break;case 1:c(e,o,a(j,2)),n.match(/^_?_?/)&&(r="link");break;default:c(e,o)}else if(n.match(H))c(e,o),r="quote";else if(n.match(B))c(e,o),r="quote";else if(n.match(G))c(e,o),(!n.peek()||n.peek().match(/^\W$/))&&(r="link");else if(k(e)==g||n.match(g,!1))switch(d(e)){case 0:!n.peek()||n.peek().match(/^\W$/)?c(e,o,a(g,1)):n.match(g);break;case 1:c(e,o,a(g,2)),n.match(/^`/),r="link";break;case 2:c(e,o,a(g,3)),n.match(W);break;case 3:c(e,o,a(g,4)),n.match(/^`_/),r="link";break;default:c(e,o)}else n.match(ee)?c(e,re):n.next()&&c(e,o);return r}function t(n,e){var r=null;if(k(e)==S||n.match(S,!1))switch(d(e)){case 0:c(e,t,a(S,1)),n.match(X),r="variable-2";break;case 1:c(e,t,a(S,2)),n.match(Q);break;case 2:c(e,t,a(S,3)),n.match(U),r="keyword";break;case 3:c(e,t,a(S,4)),n.match(V),r="meta";break;default:c(e,o)}else if(k(e)==A||n.match(A,!1))switch(d(e)){case 0:c(e,t,a(A,1)),n.match(J),r="keyword",n.current().match(/^(?:math|latex)/)?e.tmp_stex=!0:n.current().match(/^python/)&&(e.tmp_py=!0);break;case 1:c(e,t,a(A,2)),n.match(K),r="meta",(n.match(/^latex\s*$/)||e.tmp_stex)&&(e.tmp_stex=void 0,c(e,q,{mode:b,local:l.startState(b)}));break;case 2:c(e,t,a(A,3)),(n.match(/^python\s*$/)||e.tmp_py)&&(e.tmp_py=void 0,c(e,q,{mode:v,local:l.startState(v)}));break;default:c(e,o)}else if(k(e)==O||n.match(O,!1))switch(d(e)){case 0:c(e,t,a(O,1)),n.match(Y),n.match(Z),r="link";break;case 1:c(e,t,a(O,2)),n.match(C),r="meta";break;default:c(e,o)}else n.match(D)||n.match(F)?(c(e,o),r="quote"):(n.eatSpace(),n.eol()?c(e,o):(n.skipToEnd(),c(e,ce),r="comment"));return r}function ce(n,e){return L(n,e,"comment")}function re(n,e){return L(n,e,"meta")}function L(n,e,r){return n.eol()||n.eatSpace()?(n.skipToEnd(),r):(c(e,o),null)}function q(n,e){return e.ctx.mode&&e.ctx.local?n.sol()?(n.eatSpace()||c(e,o),null):e.ctx.mode.token(n,e.ctx.local):(c(e,o),null)}function a(n,e,r,N){return{phase:n,stage:e,mode:r,local:N}}function c(n,e,r){n.tok=e,n.ctx=r||{}}function d(n){return n.ctx.stage||0}function k(n){return n.ctx.phase}return{startState:function(){return{tok:o,ctx:a(void 0,0)}},copyState:function(n){var e=n.ctx,r=n.tmp;return e.local&&(e={mode:e.mode,local:l.copyState(e.mode,e.local)}),r&&(r={mode:r.mode,local:l.copyState(r.mode,r.local)}),{tok:n.tok,ctx:e,tmp:r}},innerMode:function(n){return n.tmp?{state:n.tmp.local,mode:n.tmp.mode}:n.ctx.mode?{state:n.ctx.local,mode:n.ctx.mode}:null},token:function(n,e){return e.tok(n,e)}}},"python","stex"),l.defineMIME("text/x-rst","rst")})})();var ue=M.exports,_e=fe({__proto__:null,default:ue},[M.exports]);export{_e as r};
@@ -0,0 +1 @@
1
+ import{A as O}from"./index.70f6f88a.entry.js";function I(x,y){return y.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(u)&&Object.keys(u).forEach(function(d){if(d!=="default"&&!(d in x)){var h=Object.getOwnPropertyDescriptor(u,d);Object.defineProperty(x,d,h.get?h:{enumerable:!0,get:function(){return u[d]}})}})}),Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(x,y){(function(u){u(O.exports)})(function(u){function d(p){for(var f={},l=0,a=p.length;l<a;++l)f[p[l]]=!0;return f}var h=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],g=d(h),z=d(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),w=d(["end","until"]),_={"[":"]","{":"}","(":")"},E={"]":"[","}":"{",")":"("};u.defineMode("ruby",function(p){var f;function l(e,i,n){return n.tokenize.push(e),e(i,n)}function a(e,i){if(e.sol()&&e.match("=begin")&&e.eol())return i.tokenize.push(A),"comment";if(e.eatSpace())return null;var n=e.next(),r;if(n=="`"||n=="'"||n=='"')return l(v(n,"string",n=='"'||n=="`"),e,i);if(n=="/")return W(e)?l(v(n,"string-2",!0),e,i):"operator";if(n=="%"){var t="string",o=!0;e.eat("s")?t="atom":e.eat(/[WQ]/)?t="string":e.eat(/[r]/)?t="string-2":e.eat(/[wxq]/)&&(t="string",o=!1);var c=e.eat(/[^\w\s=]/);return c?(_.propertyIsEnumerable(c)&&(c=_[c]),l(v(c,t,o,!0),e,i)):"operator"}else{if(n=="#")return e.skipToEnd(),"comment";if(n=="<"&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l(L(r[2],r[1]),e,i);if(n=="0")return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(n))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(n=="?"){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}else{if(n==":")return e.eat("'")?l(v("'","atom",!1),e,i):e.eat('"')?l(v('"',"atom",!0),e,i):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(n=="$")return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(n))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if(n=="|"&&(i.varList||i.lastTok=="{"||i.lastTok=="do"))return f="|",null;if(/[\(\)\[\]{}\\;]/.test(n))return f=n,null;if(n=="-"&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(n)){var k=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return n=="."&&!k&&(f="."),"operator"}else return null}}}function W(e){for(var i=e.pos,n=0,r,t=!1,o=!1;(r=e.next())!=null;)if(o)o=!1;else{if("[{(".indexOf(r)>-1)n++;else if("]})".indexOf(r)>-1){if(n--,n<0)break}else if(r=="/"&&n==0){t=!0;break}o=r=="\\"}return e.backUp(e.pos-i),t}function b(e){return e||(e=1),function(i,n){if(i.peek()=="}"){if(e==1)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n);n.tokenize[n.tokenize.length-1]=b(e-1)}else i.peek()=="{"&&(n.tokenize[n.tokenize.length-1]=b(e+1));return a(i,n)}}function T(){var e=!1;return function(i,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n)):(e=!0,a(i,n))}}function v(e,i,n,r){return function(t,o){var c=!1,k;for(o.context.type==="read-quoted-paused"&&(o.context=o.context.prev,t.eat("}"));(k=t.next())!=null;){if(k==e&&(r||!c)){o.tokenize.pop();break}if(n&&k=="#"&&!c){if(t.eat("{")){e=="}"&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(b());break}else if(/[@\$]/.test(t.peek())){o.tokenize.push(T());break}}c=!c&&k=="\\"}return i}}function L(e,i){return function(n,r){return i&&n.eatSpace(),n.match(e)?r.tokenize.pop():n.skipToEnd(),"string"}}function A(e,i){return e.sol()&&e.match("=end")&&e.eol()&&i.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[a],indented:0,context:{type:"top",indented:-p.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,i){f=null,e.sol()&&(i.indented=e.indentation());var n=i.tokenize[i.tokenize.length-1](e,i),r,t=f;if(n=="ident"){var o=e.current();n=i.lastTok=="."?"property":g.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":i.lastTok=="def"||i.lastTok=="class"||i.varList?"def":"variable",n=="keyword"&&(t=o,z.propertyIsEnumerable(o)?r="indent":w.propertyIsEnumerable(o)?r="dedent":((o=="if"||o=="unless")&&e.column()==e.indentation()||o=="do"&&i.context.indented<i.indented)&&(r="indent"))}return(f||n&&n!="comment")&&(i.lastTok=t),f=="|"&&(i.varList=!i.varList),r=="indent"||/[\(\[\{]/.test(f)?i.context={prev:i.context,type:f||n,indented:i.indented}:(r=="dedent"||/[\)\]\}]/.test(f))&&i.context.prev&&(i.context=i.context.prev),e.eol()&&(i.continuedLine=f=="\\"||n=="operator"),n},indent:function(e,i){if(e.tokenize[e.tokenize.length-1]!=a)return u.Pass;var n=i&&i.charAt(0),r=e.context,t=r.type==E[n]||r.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(i);return r.indented+(t?0:p.indentUnit)+(e.continuedLine?p.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),u.defineMIME("text/x-ruby","ruby"),u.registerHelper("hintWords","ruby",h)})})();var $=s.exports,B=I({__proto__:null,default:$},[s.exports]);export{s as a,B as r};
@@ -0,0 +1,26 @@
1
+ import{a as s,o as c,b as h,w as n,g as e,e as a,B as t}from"./runtime-core.esm-bundler.b1f35d24.js";var r={};const u={class:"markdown-body"},d=t("This guide explains how to install the "),p=e("em",null,"Development",-1),_=t(" version of Directus locally so that you can work on the platform\u2019s source code. To install the "),m=e("em",null,"Production",-1),g=t(" version locally, please follow to our "),f=t("standard installation guides"),y=t("."),b=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Minimum Requirements"),e("p",null,[t("You will need to have "),e("a",{href:"https://nodejs.org/en/download/current/",target:"_blank",rel:"noopener noreferrer"},"the latest version of Node"),t(" to "),e("em",null,"build"),t(" a Development version of Directus.")]),e("p",null,[t("You can use the JavaScript tool manager "),e("a",{href:"https://volta.sh/",target:"_blank",rel:"noopener noreferrer"},"volta"),t(" to automatically install the current node and npm versions.")])],-1),v=e("h2",{id:"1.-fork-the-directus-repository"},[t("1. Fork the Directus repository "),e("a",{class:"header-anchor",href:"#1.-fork-the-directus-repository"},"#")],-1),k=e("p",null,[t("Go to the "),e("a",{href:"https://github.com/directus/directus",target:"_blank",rel:"noopener noreferrer"},"repository"),t(" and fork it to your GitHub account. A fork is your copy of the Directus repository. Forking the repository allows you to freely experiment with changes without affecting the original project.")],-1),w=e("h2",{id:"2.-clone-from-your-repository"},[t("2. Clone from your repository "),e("a",{class:"header-anchor",href:"#2.-clone-from-your-repository"},"#")],-1),j=e("pre",null,[e("code",{class:"language-bash"},[t("git "),e("span",{class:"hljs-built_in"},"clone"),t(` git@github.com:YOUR-USERNAME/directus.git
2
+ `)])],-1),x=e("h2",{id:"3.-make-a-new-branch"},[t("3. Make a new branch "),e("a",{class:"header-anchor",href:"#3.-make-a-new-branch"},"#")],-1),T=e("pre",null,[e("code",{class:"language-bash"},`git checkout -b YOUR-BRANCH-NAME
3
+ `)],-1),A=e("h2",{id:"4.-install-the-dependencies-and-build-the-project"},[t("4. Install the dependencies and build the project "),e("a",{class:"header-anchor",href:"#4.-install-the-dependencies-and-build-the-project"},"#")],-1),D=e("pre",null,[e("code",{class:"language-bash"},`npm install
4
+ npm run build
5
+ `)],-1),C=e("h2",{id:"5.-create-a-.env-file"},[t("5. Create a "),e("code",{class:""},".env"),t(" file "),e("a",{class:"header-anchor",href:"#5.-create-a-.env-file"},"#")],-1),R=e("p",null,[t("Create an "),e("code",{class:""},".env"),t(" file under the "),e("code",{class:""},"api"),t(" folder using vars from the online "),e("a",{href:"https://docs.directus.io/configuration/config-options/",target:"_blank",rel:"noopener noreferrer"},"config help")],-1),E=e("h2",{id:"6.-initialize-the-database"},[t("6. Initialize the database "),e("a",{class:"header-anchor",href:"#6.-initialize-the-database"},"#")],-1),F=e("p",null,"For this step, you\u2019ll need to already have a SQL database up-and-running, except if you\u2019re using the SQLite driver, which will create the database (file) for you.",-1),N=e("p",null,"To start the initialization run the following command:",-1),S=e("pre",null,[e("code",{class:"language-bash"},[e("span",{class:"hljs-comment"},"# From within the root of the project"),t(`
6
+ npm run cli bootstrap
7
+
8
+ `),e("span",{class:"hljs-comment"},"# For SQLite you need to run the command in the 'api' context (to ensure the database file is created in the right directory)"),t(`
9
+ npm run cli bootstrap --workspace=api
10
+ `)])],-1),B=e("p",null,"This will set-up the required tables for Directus and make sure all the migrations have run.",-1),L=e("h2",{id:"7.-start-the-development-server"},[t("7. Start the development server "),e("a",{class:"header-anchor",href:"#7.-start-the-development-server"},"#")],-1),I=e("p",null,[t("First you need to choose what packages you want to work on. Then, you should run the "),e("code",{class:""},"dev"),t(" script on that package. You can see their names and list of scripts in their related "),e("code",{class:""},"package.json"),t(". Example of running APP:")],-1),M=e("pre",null,[e("code",{class:"language-bash"},`npm run dev -w @directus/app
11
+ `)],-1),Y=e("p",null,"If you want to work on multiple packages at once, you should create a new instance of your terminal for each package: Example of running Api, App:",-1),q=e("table",null,[e("tr",null,[e("th",null," Terminal 1 [Api] "),e("th",null," Terminal 2 [App] ")]),e("tr",null,[e("td",null,[e("pre",null,[e("code",{class:"language-bash"},`npm run dev -w directus
12
+ `)])]),e("td",null,[e("pre",null,[e("code",{class:"language-bash"},`npm run dev -w @directus/app
13
+ `)])])])],-1),z=e("hr",null,null,-1),H=e("p",null,[t("To work on the Documentation (public website version), you should navigate to the "),e("code",{class:""},"docs"),t(" directory and run the following command:")],-1),G=e("pre",null,[e("code",{class:"language-bash"},`npm install
14
+ `)],-1),P=e("p",null,[e("sup",null,"\u2139 This is necessary because the way vue-server-renderer imports vue")],-1),Q=e("p",null,"Then you should run",-1),U=e("pre",null,[e("code",{class:"language-bash"},`npm run dev:site
15
+ `)],-1),V=e("div",{class:"tip hint"},[e("p",null,"If you encounter errors during this installation process, make sure your node version meets the minimum requirements")],-1),O=e("h2",{id:"8.-make-your-fixes%2Fchanges"},[t("8. Make your fixes/changes "),e("a",{class:"header-anchor",href:"#8.-make-your-fixes%2Fchanges"},"#")],-1),J=t("At this point you are ready to start working on Directus! Before diving in however, it\u2019s worth reading through the introduction to "),W=t("Contributing"),K=t("."),X=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Debugging"),e("p",null,[t("Check our Wiki for a "),e("a",{href:"https://github.com/directus/directus/wiki/debugging",target:"_blank",rel:"noopener noreferrer"},"guide"),t(" on debugging the app and api.")])],-1),Z=e("h2",{id:"9.-running-tests"},[t("9. Running tests "),e("a",{class:"header-anchor",href:"#9.-running-tests"},"#")],-1),$=e("p",null,"Tests run automatically through GitHub Actions. However you may wish to run the tests locally especially when you write tests.",-1),ee=e("p",null,[t("Install "),e("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer"},"Docker"),t(" and ensure that the service is running.")],-1),te=e("pre",null,[e("code",{class:"language-bash"},[e("span",{class:"hljs-comment"},"# Ensure that you are testing on the lastest codebase"),t(`
16
+ npm run build
17
+
18
+ `),e("span",{class:"hljs-comment"},"# Clean up in case you ran the tests before"),t(`
19
+ docker compose -f tests/docker-compose.yml down -v
20
+
21
+ `),e("span",{class:"hljs-comment"},"# Start the necessary containers"),t(`
22
+ docker compose -f tests/docker-compose.yml up -d --`),e("span",{class:"hljs-built_in"},"wait"),t(`
23
+
24
+ `),e("span",{class:"hljs-comment"},"# Run the tests"),t(`
25
+ npm run `),e("span",{class:"hljs-built_in"},"test"),t(`:e2e
26
+ `)])],-1),ne={title:"Running Locally",modularExtension:!1},oe={name:"running-locally",setup(se,{expose:i}){return i({frontmatter:{title:"Running Locally",modularExtension:!1}}),(ae,re)=>{const o=s("router-link"),l=s("docswrapper");return c(),h(l,{frontmatter:ne},{default:n(()=>[e("div",u,[e("blockquote",null,[e("p",null,[d,p,_,m,g,a(o,{to:"/docs/self-hosted/installation/"},{default:n(()=>[f]),_:1}),y])]),b,v,k,w,j,x,T,A,D,C,R,E,F,N,S,B,L,I,M,Y,q,z,H,G,P,Q,U,V,O,e("p",null,[J,a(o,{to:"/docs/contributing/introduction"},{default:n(()=>[W]),_:1}),K]),X,Z,$,ee,te])]),_:1})}}};typeof r=="function"&&r(oe);export{oe as default,ne as frontmatter};