PublicAccessLevels.mjs 678 B

123456789101112131415161718192021
  1. // @ts-check
  2. /**
  3. * Note:
  4. * It used to be that `project.publicAccessLevel` could be set to `private`,
  5. * `readOnly` or `readAndWrite`, the latter of which made the project publicly
  6. * accessible.
  7. *
  8. * This system was replaced with "link sharing", therafter the valid values are
  9. * `private` or `tokenBased`. While it is no longer possible to set
  10. * `publicAccessLevel` to the legacy values, there are projects in the system
  11. * that already have those values set.
  12. */
  13. /** @type {import('./types').PublicAccessLevelsType} */
  14. module.exports = {
  15. READ_ONLY: 'readOnly', // LEGACY
  16. READ_AND_WRITE: 'readAndWrite', // LEGACY
  17. PRIVATE: 'private',
  18. TOKEN_BASED: 'tokenBased',
  19. }