page.ts 980 B

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