| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import type { IGrantedGroup } from '@growi/core';
- export const PageActionType = {
- Create: 'Create',
- Update: 'Update',
- Rename: 'Rename',
- Duplicate: 'Duplicate',
- Delete: 'Delete',
- DeleteCompletely: 'DeleteCompletely',
- Revert: 'Revert',
- NormalizeParent: 'NormalizeParent',
- } as const;
- export type PageActionType = typeof PageActionType[keyof typeof PageActionType];
- export const PageActionStage = {
- Main: 'Main',
- Sub: 'Sub',
- } as const;
- export type PageActionStage = typeof PageActionStage[keyof typeof PageActionStage];
- export type IPageOperationProcessData = {
- [key in PageActionType]?: {
- [PageActionStage.Main]?: { isProcessable: boolean },
- [PageActionStage.Sub]?: { isProcessable: boolean },
- }
- }
- export type IPageOperationProcessInfo = {
- [pageId: string]: IPageOperationProcessData,
- }
- export type OptionsToSave = {
- isSlackEnabled: boolean;
- slackChannels: string;
- grant: number;
- pageTags: string[] | null;
- grantUserGroupIds?: IGrantedGroup[];
- isSyncRevisionToHackmd?: boolean;
- };
|