page-listing-results.ts 464 B

123456789101112131415161718192021222324
  1. import type { IPageHasId } from '@growi/core';
  2. import type { IPageForItem } from './page';
  3. type ParentPath = string;
  4. export interface RootPageResult {
  5. rootPage: IPageHasId
  6. }
  7. export interface AncestorsChildrenResult {
  8. ancestorsChildren: Record<ParentPath, Partial<IPageForItem>[]>
  9. }
  10. export interface ChildrenResult {
  11. children: Partial<IPageForItem>[]
  12. }
  13. export interface V5MigrationStatus {
  14. isV5Compatible : boolean,
  15. migratablePagesCount: number
  16. }