page-delete-config.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. export const PageDeleteConfigValue = {
  2. Anyone: 'anyOne', // must be "anyOne" (not "anyone") for backward compatibility
  3. AdminAndAuthor: 'adminAndAuthor',
  4. AdminOnly: 'adminOnly',
  5. Inherit: 'inherit',
  6. } as const;
  7. export type IPageDeleteConfigValue = typeof PageDeleteConfigValue[keyof typeof PageDeleteConfigValue];
  8. export type IPageDeleteConfigValueToProcessValidation = Exclude<IPageDeleteConfigValue, typeof PageDeleteConfigValue.Inherit>;
  9. export const PageSingleDeleteConfigValue = {
  10. Anyone: 'anyOne', // must be "anyOne" (not "anyone") for backward compatibility
  11. AdminAndAuthor: 'adminAndAuthor',
  12. AdminOnly: 'adminOnly',
  13. } as const;
  14. export type PageSingleDeleteConfigValue = Exclude<IPageDeleteConfigValue, typeof PageDeleteConfigValue.Inherit>;
  15. export const PageSingleDeleteCompConfigValue = {
  16. Anyone: 'anyOne', // must be "anyOne" (not "anyone") for backward compatibility
  17. AdminAndAuthor: 'adminAndAuthor',
  18. AdminOnly: 'adminOnly',
  19. } as const;
  20. export type PageSingleDeleteCompConfigValue = Exclude<IPageDeleteConfigValue, typeof PageDeleteConfigValue.Inherit>;
  21. export const PageRecursiveDeleteConfigValue = {
  22. AdminAndAuthor: 'adminAndAuthor',
  23. AdminOnly: 'adminOnly',
  24. Inherit: 'inherit',
  25. } as const;
  26. export type PageRecursiveDeleteConfigValue = Exclude<IPageDeleteConfigValue, typeof PageDeleteConfigValue.Anyone>;
  27. export const PageRecursiveDeleteCompConfigValue = {
  28. AdminAndAuthor: 'adminAndAuthor',
  29. AdminOnly: 'adminOnly',
  30. Inherit: 'inherit',
  31. } as const;
  32. export type PageRecursiveDeleteCompConfigValue = Exclude<IPageDeleteConfigValue, typeof PageDeleteConfigValue.Anyone>;