| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { PageGrant } from '~/interfaces/page';
- import { ObjectIdLike } from '../../interfaces/mongoose-utils';
- export type IPageForResuming = {
- _id: ObjectIdLike,
- path: string,
- isEmpty: boolean,
- parent?: ObjectIdLike,
- grant?: number,
- grantedUsers?: ObjectIdLike[],
- grantedGroup?: ObjectIdLike,
- descendantCount: number,
- status?: number,
- revision?: ObjectIdLike,
- lastUpdateUser?: ObjectIdLike,
- creator?: ObjectIdLike,
- };
- export type IUserForResuming = {
- _id: ObjectIdLike,
- };
- export type IOptionsForUpdate = {
- grant?: PageGrant,
- grantUserGroupId?: ObjectIdLike,
- isSyncRevisionToHackmd?: boolean,
- overwriteScopesOfDescendants?: boolean,
- };
- export type IOptionsForCreate = {
- format?: string,
- grantUserGroupId?: ObjectIdLike,
- grant?: PageGrant,
- overwriteScopesOfDescendants?: boolean,
- isSynchronously?: boolean,
- };
- export type IOptionsForResuming = {
- updateMetadata?: boolean,
- createRedirectPage?: boolean,
- prevDescendantCount?: number,
- } & IOptionsForUpdate & IOptionsForCreate;
|