page-delete-config.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 =
  8. (typeof PageDeleteConfigValue)[keyof typeof PageDeleteConfigValue];
  9. export type IPageDeleteConfigValueToProcessValidation = Exclude<
  10. IPageDeleteConfigValue,
  11. typeof PageDeleteConfigValue.Inherit
  12. >;
  13. export const PageSingleDeleteConfigValue = {
  14. Anyone: 'anyOne', // must be "anyOne" (not "anyone") for backward compatibility
  15. AdminAndAuthor: 'adminAndAuthor',
  16. AdminOnly: 'adminOnly',
  17. } as const;
  18. export type PageSingleDeleteConfigValue = Exclude<
  19. IPageDeleteConfigValue,
  20. typeof PageDeleteConfigValue.Inherit
  21. >;
  22. export const PageSingleDeleteCompConfigValue = {
  23. Anyone: 'anyOne', // must be "anyOne" (not "anyone") for backward compatibility
  24. AdminAndAuthor: 'adminAndAuthor',
  25. AdminOnly: 'adminOnly',
  26. } as const;
  27. export type PageSingleDeleteCompConfigValue = Exclude<
  28. IPageDeleteConfigValue,
  29. typeof PageDeleteConfigValue.Inherit
  30. >;
  31. export const PageRecursiveDeleteConfigValue = {
  32. AdminAndAuthor: 'adminAndAuthor',
  33. AdminOnly: 'adminOnly',
  34. Inherit: 'inherit',
  35. } as const;
  36. export type PageRecursiveDeleteConfigValue = Exclude<
  37. IPageDeleteConfigValue,
  38. typeof PageDeleteConfigValue.Anyone
  39. >;
  40. export const PageRecursiveDeleteCompConfigValue = {
  41. AdminAndAuthor: 'adminAndAuthor',
  42. AdminOnly: 'adminOnly',
  43. Inherit: 'inherit',
  44. } as const;
  45. export type PageRecursiveDeleteCompConfigValue = Exclude<
  46. IPageDeleteConfigValue,
  47. typeof PageDeleteConfigValue.Anyone
  48. >;