page.ts 771 B

12345678910111213141516171819202122232425262728293031
  1. import type { GroupType, 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. userRelatedGrantedGroups?: {
  10. id: string,
  11. name: string,
  12. type: GroupType,
  13. }[]
  14. }
  15. export type IDeleteSinglePageApiv1Result = {
  16. ok: boolean
  17. path: string,
  18. isRecursively: Nullable<true>,
  19. isCompletely: Nullable<true>,
  20. };
  21. export type IDeleteManyPageApiv3Result = {
  22. paths: string[],
  23. isRecursively: Nullable<true>,
  24. isCompletely: Nullable<true>,
  25. };