| 12345678910111213141516171819202122232425262728293031323334353637 |
- import type {
- IPageHasId, IRevisionHasId, ITag,
- } from '@growi/core';
- import type { IOptionsForCreate, IOptionsForUpdate } from '../page';
- export type IApiv3PageCreateParams = IOptionsForCreate & {
- path?: string,
- parentPath?: string,
- optionalParentPath?: string,
- body?: string,
- pageTags?: string[],
- isSlackEnabled?: boolean,
- slackChannels?: string,
- };
- export type IApiv3PageCreateResponse = {
- page: IPageHasId,
- tags: ITag[],
- revision: IRevisionHasId,
- };
- export type IApiv3PageUpdateParams = IOptionsForUpdate & {
- pageId: string,
- revisionId: string,
- body: string,
- isSlackEnabled?: boolean,
- slackChannels?: string,
- };
- export type IApiv3PageUpdateResponse = {
- page: IPageHasId,
- revision: IRevisionHasId,
- };
|