|
@@ -6,24 +6,18 @@ import {
|
|
|
} from '@growi/core';
|
|
} from '@growi/core';
|
|
|
import type {
|
|
import type {
|
|
|
HasObjectId,
|
|
HasObjectId,
|
|
|
- IDataWithRequiredMeta,
|
|
|
|
|
IGrantedGroup,
|
|
IGrantedGroup,
|
|
|
IPage,
|
|
IPage,
|
|
|
- IPageInfo,
|
|
|
|
|
IPageInfoBasic,
|
|
IPageInfoBasic,
|
|
|
- IPageInfoExt,
|
|
|
|
|
IPageInfoForEmpty,
|
|
IPageInfoForEmpty,
|
|
|
IPageInfoForEntity,
|
|
IPageInfoForEntity,
|
|
|
- IPageInfoForOperation,
|
|
|
|
|
- IPageNotFoundInfo,
|
|
|
|
|
IRevisionHasId,
|
|
IRevisionHasId,
|
|
|
IUser,
|
|
IUser,
|
|
|
IUserHasId,
|
|
IUserHasId,
|
|
|
Ref,
|
|
Ref,
|
|
|
} from '@growi/core/dist/interfaces';
|
|
} from '@growi/core/dist/interfaces';
|
|
|
-import { isIPageInfoForEntity, PageGrant } from '@growi/core/dist/interfaces';
|
|
|
|
|
|
|
+import { PageGrant } from '@growi/core/dist/interfaces';
|
|
|
import { pagePathUtils, pathUtils } from '@growi/core/dist/utils';
|
|
import { pagePathUtils, pathUtils } from '@growi/core/dist/utils';
|
|
|
-import assert from 'assert';
|
|
|
|
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
|
import type EventEmitter from 'events';
|
|
import type EventEmitter from 'events';
|
|
|
import type { Cursor, HydratedDocument } from 'mongoose';
|
|
import type { Cursor, HydratedDocument } from 'mongoose';
|
|
@@ -37,7 +31,6 @@ import type { ExternalUserGroupDocument } from '~/features/external-user-group/s
|
|
|
import ExternalUserGroupRelation from '~/features/external-user-group/server/models/external-user-group-relation';
|
|
import ExternalUserGroupRelation from '~/features/external-user-group/server/models/external-user-group-relation';
|
|
|
import { isAiEnabled } from '~/features/openai/server/services';
|
|
import { isAiEnabled } from '~/features/openai/server/services';
|
|
|
import { SupportedAction } from '~/interfaces/activity';
|
|
import { SupportedAction } from '~/interfaces/activity';
|
|
|
-import type { BookmarkedPage } from '~/interfaces/bookmark-info';
|
|
|
|
|
import { V5ConversionErrCode } from '~/interfaces/errors/v5-conversion-error';
|
|
import { V5ConversionErrCode } from '~/interfaces/errors/v5-conversion-error';
|
|
|
import type { IOptionsForCreate, IOptionsForUpdate } from '~/interfaces/page';
|
|
import type { IOptionsForCreate, IOptionsForUpdate } from '~/interfaces/page';
|
|
|
import type { IPageDeleteConfigValueToProcessValidation } from '~/interfaces/page-delete-config';
|
|
import type { IPageDeleteConfigValueToProcessValidation } from '~/interfaces/page-delete-config';
|
|
@@ -105,8 +98,6 @@ const {
|
|
|
isUsersTopPage,
|
|
isUsersTopPage,
|
|
|
isMovablePage,
|
|
isMovablePage,
|
|
|
isUsersHomepage,
|
|
isUsersHomepage,
|
|
|
- hasSlash,
|
|
|
|
|
- generateChildrenRegExp,
|
|
|
|
|
} = pagePathUtils;
|
|
} = pagePathUtils;
|
|
|
|
|
|
|
|
const { addTrailingSlash } = pathUtils;
|
|
const { addTrailingSlash } = pathUtils;
|