page-operation.ts 484 B

123456789101112131415
  1. export const PageActionType = {
  2. Rename: 'Rename',
  3. Duplicate: 'Duplicate',
  4. Delete: 'Delete',
  5. DeleteCompletely: 'DeleteCompletely',
  6. Revert: 'Revert',
  7. NormalizeParent: 'NormalizeParent',
  8. } as const;
  9. export type PageActionType = typeof PageActionType[keyof typeof PageActionType]
  10. export type IPageOperationProcessData = Partial<{
  11. [key in PageActionType]: {isProcessable: boolean}
  12. }>
  13. export type IPageOperationProcessInfo = {
  14. [pageId: string]: IPageOperationProcessData,
  15. }