page.ts 724 B

123456789101112131415161718192021222324252627282930
  1. import type { IPageHasId, Nullable } from '@growi/core';
  2. import type { IPageOperationProcessData } from './page-operation';
  3. export {
  4. isIPageInfoForEntity, isIPageInfoForOperation, isIPageInfoForListing,
  5. } from '@growi/core';
  6. export type IPageForItem = Partial<IPageHasId & {isTarget?: boolean, processData?: IPageOperationProcessData}>;
  7. export type IPageGrantData = {
  8. grant: number,
  9. grantedGroup?: {
  10. id: string,
  11. name: string
  12. }
  13. }
  14. export type IDeleteSinglePageApiv1Result = {
  15. ok: boolean
  16. path: string,
  17. isRecursively: Nullable<true>,
  18. isCompletely: Nullable<true>,
  19. };
  20. export type IDeleteManyPageApiv3Result = {
  21. paths: string[],
  22. isRecursively: Nullable<true>,
  23. isCompletely: Nullable<true>,
  24. };