|
@@ -16,7 +16,6 @@ export type Scalars = {
|
|
|
Int: { input: number; output: number; }
|
|
Int: { input: number; output: number; }
|
|
|
Float: { input: number; output: number; }
|
|
Float: { input: number; output: number; }
|
|
|
Date: { input: any; output: any; }
|
|
Date: { input: any; output: any; }
|
|
|
- Upload: { input: any; output: any; }
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/** Mutations for Analytics */
|
|
/** Mutations for Analytics */
|
|
@@ -307,11 +306,6 @@ export type AuthenticationStrategyInput = {
|
|
|
strategyKey: Scalars['String']['input'];
|
|
strategyKey: Scalars['String']['input'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export enum CacheControlScope {
|
|
|
|
|
- Private = 'PRIVATE',
|
|
|
|
|
- Public = 'PUBLIC'
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export type CommentCreateResponse = {
|
|
export type CommentCreateResponse = {
|
|
|
__typename?: 'CommentCreateResponse';
|
|
__typename?: 'CommentCreateResponse';
|
|
|
id?: Maybe<Scalars['Int']['output']>;
|
|
id?: Maybe<Scalars['Int']['output']>;
|
|
@@ -422,7 +416,6 @@ export type ContributeQuery = {
|
|
|
contributors?: Maybe<Array<Maybe<ContributeContributor>>>;
|
|
contributors?: Maybe<Array<Maybe<ContributeContributor>>>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** Generic Mutation Response */
|
|
|
|
|
export type DefaultResponse = {
|
|
export type DefaultResponse = {
|
|
|
__typename?: 'DefaultResponse';
|
|
__typename?: 'DefaultResponse';
|
|
|
responseResult?: Maybe<ResponseStatus>;
|
|
responseResult?: Maybe<ResponseStatus>;
|
|
@@ -514,14 +507,12 @@ export type GroupResponse = {
|
|
|
responseResult: ResponseStatus;
|
|
responseResult: ResponseStatus;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** Generic Key Value Pair */
|
|
|
|
|
export type KeyValuePair = {
|
|
export type KeyValuePair = {
|
|
|
__typename?: 'KeyValuePair';
|
|
__typename?: 'KeyValuePair';
|
|
|
key: Scalars['String']['output'];
|
|
key: Scalars['String']['output'];
|
|
|
value: Scalars['String']['output'];
|
|
value: Scalars['String']['output'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** General Key Value Pair Input */
|
|
|
|
|
export type KeyValuePairInput = {
|
|
export type KeyValuePairInput = {
|
|
|
key: Scalars['String']['input'];
|
|
key: Scalars['String']['input'];
|
|
|
value: Scalars['String']['input'];
|
|
value: Scalars['String']['input'];
|
|
@@ -677,7 +668,6 @@ export type MailQuery = {
|
|
|
config?: Maybe<MailConfig>;
|
|
config?: Maybe<MailConfig>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** Mutations (Create, Update, Delete) */
|
|
|
|
|
export type Mutation = {
|
|
export type Mutation = {
|
|
|
__typename?: 'Mutation';
|
|
__typename?: 'Mutation';
|
|
|
analytics?: Maybe<AnalyticsMutation>;
|
|
analytics?: Maybe<AnalyticsMutation>;
|
|
@@ -1167,7 +1157,6 @@ export type PageVersion = {
|
|
|
versionId: Scalars['Int']['output'];
|
|
versionId: Scalars['Int']['output'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** Query (Read) */
|
|
|
|
|
export type Query = {
|
|
export type Query = {
|
|
|
__typename?: 'Query';
|
|
__typename?: 'Query';
|
|
|
analytics?: Maybe<AnalyticsQuery>;
|
|
analytics?: Maybe<AnalyticsQuery>;
|
|
@@ -1230,7 +1219,6 @@ export type RenderingQueryRenderersArgs = {
|
|
|
orderBy?: InputMaybe<Scalars['String']['input']>;
|
|
orderBy?: InputMaybe<Scalars['String']['input']>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** Mutation Status */
|
|
|
|
|
export type ResponseStatus = {
|
|
export type ResponseStatus = {
|
|
|
__typename?: 'ResponseStatus';
|
|
__typename?: 'ResponseStatus';
|
|
|
errorCode: Scalars['Int']['output'];
|
|
errorCode: Scalars['Int']['output'];
|
|
@@ -1444,7 +1432,6 @@ export type StorageTargetInput = {
|
|
|
syncInterval?: InputMaybe<Scalars['String']['input']>;
|
|
syncInterval?: InputMaybe<Scalars['String']['input']>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/** Subscriptions (Push, Real-time) */
|
|
|
|
|
export type Subscription = {
|
|
export type Subscription = {
|
|
|
__typename?: 'Subscription';
|
|
__typename?: 'Subscription';
|
|
|
loggingLiveTrail?: Maybe<LoggerTrailLine>;
|
|
loggingLiveTrail?: Maybe<LoggerTrailLine>;
|
|
@@ -1823,7 +1810,7 @@ export type GetPageByIdQueryVariables = Exact<{
|
|
|
}>;
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type GetPageByIdQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', single?: { __typename?: 'Page', id: number, path: string, title: string, description: string, content: string, createdAt: any, updatedAt: any, locale: string, tags: Array<{ __typename?: 'PageTag', tag: string, title?: string | null } | null> } | null } | null };
|
|
|
|
|
|
|
+export type GetPageByIdQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', single?: { __typename?: 'Page', id: number, path: string, title: string, description: string, content: string, createdAt: any, updatedAt: any, locale: string, editor: string, isPublished: boolean, isPrivate: boolean, render?: string | null, toc?: string | null, contentType: string, publishStartDate: any, publishEndDate: any, scriptCss?: string | null, scriptJs?: string | null, tags: Array<{ __typename?: 'PageTag', tag: string, title?: string | null } | null> } | null } | null };
|
|
|
|
|
|
|
|
export type GetPageByPathQueryVariables = Exact<{
|
|
export type GetPageByPathQueryVariables = Exact<{
|
|
|
path: Scalars['String']['input'];
|
|
path: Scalars['String']['input'];
|
|
@@ -1831,7 +1818,7 @@ export type GetPageByPathQueryVariables = Exact<{
|
|
|
}>;
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type GetPageByPathQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', singleByPath?: { __typename?: 'Page', id: number, path: string, title: string, description: string, content: string, locale: string, tags: Array<{ __typename?: 'PageTag', tag: string, title?: string | null } | null> } | null } | null };
|
|
|
|
|
|
|
+export type GetPageByPathQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', singleByPath?: { __typename?: 'Page', id: number, path: string, title: string, description: string, content: string, locale: string, editor: string, isPublished: boolean, isPrivate: boolean, render?: string | null, toc?: string | null, contentType: string, publishStartDate: any, publishEndDate: any, scriptCss?: string | null, scriptJs?: string | null, tags: Array<{ __typename?: 'PageTag', tag: string, title?: string | null } | null> } | null } | null };
|
|
|
|
|
|
|
|
export type GetAllPagesQueryVariables = Exact<{
|
|
export type GetAllPagesQueryVariables = Exact<{
|
|
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1840,7 +1827,7 @@ export type GetAllPagesQueryVariables = Exact<{
|
|
|
}>;
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type GetAllPagesQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', list: Array<{ __typename?: 'PageListItem', id: number, path: string, locale: string, title?: string | null, description?: string | null, createdAt: any, updatedAt: any, tags?: Array<string | null> | null }> } | null };
|
|
|
|
|
|
|
+export type GetAllPagesQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', list: Array<{ __typename?: 'PageListItem', id: number, path: string, locale: string, title?: string | null, description?: string | null, createdAt: any, updatedAt: any, tags?: Array<string | null> | null, isPublished: boolean, isPrivate: boolean }> } | null };
|
|
|
|
|
|
|
|
export type SearchPagesQueryVariables = Exact<{
|
|
export type SearchPagesQueryVariables = Exact<{
|
|
|
query: Scalars['String']['input'];
|
|
query: Scalars['String']['input'];
|
|
@@ -1849,7 +1836,7 @@ export type SearchPagesQueryVariables = Exact<{
|
|
|
}>;
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type SearchPagesQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', search: { __typename?: 'PageSearchResponse', suggestions: Array<string | null>, totalHits: number, results: Array<{ __typename?: 'PageSearchResult', title: string, description: string, path: string, locale: string } | null> } } | null };
|
|
|
|
|
|
|
+export type SearchPagesQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', search: { __typename?: 'PageSearchResponse', suggestions: Array<string | null>, totalHits: number, results: Array<{ __typename?: 'PageSearchResult', id: string, title: string, description: string, path: string, locale: string } | null> } } | null };
|
|
|
|
|
|
|
|
export type CreatePageMutationVariables = Exact<{
|
|
export type CreatePageMutationVariables = Exact<{
|
|
|
title: Scalars['String']['input'];
|
|
title: Scalars['String']['input'];
|
|
@@ -1864,23 +1851,117 @@ export type CreatePageMutationVariables = Exact<{
|
|
|
}>;
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type CreatePageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', create?: { __typename?: 'PageResponse', responseResult: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } } | null } | null };
|
|
|
|
|
|
|
+export type CreatePageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', create?: { __typename?: 'PageResponse', responseResult: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null }, page?: { __typename?: 'Page', id: number, path: string, locale: string } | null } | null } | null };
|
|
|
|
|
|
|
|
export type UpdatePageMutationVariables = Exact<{
|
|
export type UpdatePageMutationVariables = Exact<{
|
|
|
id: Scalars['Int']['input'];
|
|
id: Scalars['Int']['input'];
|
|
|
- title: Scalars['String']['input'];
|
|
|
|
|
- content: Scalars['String']['input'];
|
|
|
|
|
- description: Scalars['String']['input'];
|
|
|
|
|
- editor: Scalars['String']['input'];
|
|
|
|
|
- isPublished: Scalars['Boolean']['input'];
|
|
|
|
|
- isPrivate: Scalars['Boolean']['input'];
|
|
|
|
|
|
|
+ title?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+ content?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+ description?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+ editor?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+ isPublished?: InputMaybe<Scalars['Boolean']['input']>;
|
|
|
|
|
+ isPrivate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
|
|
|
+ locale?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+ tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
|
|
|
|
|
+ path?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type UpdatePageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', update?: { __typename?: 'PageResponse', responseResult: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null }, page?: { __typename?: 'Page', id: number, path: string, locale: string } | null } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageHistoryQueryVariables = Exact<{
|
|
|
|
|
+ id: Scalars['Int']['input'];
|
|
|
|
|
+ offsetPage?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
+ offsetSize?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageHistoryQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', history?: { __typename?: 'PageHistoryResult', total: number, trail?: Array<{ __typename?: 'PageHistory', versionId: number, versionDate: any, authorId: number, authorName: string, actionType: string, valueBefore?: string | null, valueAfter?: string | null } | null> | null } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageVersionQueryVariables = Exact<{
|
|
|
|
|
+ pageId: Scalars['Int']['input'];
|
|
|
|
|
+ versionId: Scalars['Int']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageVersionQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', version?: { __typename?: 'PageVersion', action: string, authorId: string, authorName: string, content: string, contentType: string, createdAt: any, versionDate: any, description: string, editor: string, isPrivate: boolean, isPublished: boolean, locale: string, pageId: number, path: string, publishEndDate: any, publishStartDate: any, tags: Array<string | null>, title: string, versionId: number } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageTreeQueryVariables = Exact<{
|
|
|
|
|
+ path?: InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
+ parent?: InputMaybe<Scalars['Int']['input']>;
|
|
|
|
|
+ mode: PageTreeMode;
|
|
|
locale: Scalars['String']['input'];
|
|
locale: Scalars['String']['input'];
|
|
|
- tags: Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>;
|
|
|
|
|
- path: Scalars['String']['input'];
|
|
|
|
|
|
|
+ includeAncestors?: InputMaybe<Scalars['Boolean']['input']>;
|
|
|
}>;
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type UpdatePageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', update?: { __typename?: 'PageResponse', responseResult: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } } | null } | null };
|
|
|
|
|
|
|
+export type GetPageTreeQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', tree?: Array<{ __typename?: 'PageTreeItem', id: number, path: string, depth: number, title: string, isPrivate: boolean, isFolder: boolean, privateNS?: string | null, parent?: number | null, pageId?: number | null, locale: string } | null> | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type ListTagsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type ListTagsQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', tags: Array<{ __typename?: 'PageTag', id: number, tag: string, title?: string | null, createdAt: any, updatedAt: any } | null> } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type SearchTagsQueryVariables = Exact<{
|
|
|
|
|
+ query: Scalars['String']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type SearchTagsQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', searchTags: Array<string | null> } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageLinksQueryVariables = Exact<{
|
|
|
|
|
+ locale: Scalars['String']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type GetPageLinksQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', links?: Array<{ __typename?: 'PageLinkItem', id: number, path: string, title: string, links: Array<string | null> } | null> | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type CheckConflictsQueryVariables = Exact<{
|
|
|
|
|
+ id: Scalars['Int']['input'];
|
|
|
|
|
+ checkoutDate: Scalars['Date']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type CheckConflictsQuery = { __typename?: 'Query', pages?: { __typename?: 'PageQuery', checkConflicts: boolean } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type MovePageMutationVariables = Exact<{
|
|
|
|
|
+ id: Scalars['Int']['input'];
|
|
|
|
|
+ destinationPath: Scalars['String']['input'];
|
|
|
|
|
+ destinationLocale: Scalars['String']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type MovePageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', move?: { __typename?: 'DefaultResponse', responseResult?: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } | null } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type DeletePageMutationVariables = Exact<{
|
|
|
|
|
+ id: Scalars['Int']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type DeletePageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', delete?: { __typename?: 'DefaultResponse', responseResult?: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } | null } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type RestorePageVersionMutationVariables = Exact<{
|
|
|
|
|
+ pageId: Scalars['Int']['input'];
|
|
|
|
|
+ versionId: Scalars['Int']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type RestorePageVersionMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', restore?: { __typename?: 'DefaultResponse', responseResult?: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } | null } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type ConvertPageEditorMutationVariables = Exact<{
|
|
|
|
|
+ id: Scalars['Int']['input'];
|
|
|
|
|
+ editor: Scalars['String']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type ConvertPageEditorMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', convert?: { __typename?: 'DefaultResponse', responseResult?: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } | null } | null } | null };
|
|
|
|
|
+
|
|
|
|
|
+export type RenderPageMutationVariables = Exact<{
|
|
|
|
|
+ id: Scalars['Int']['input'];
|
|
|
|
|
+}>;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type RenderPageMutation = { __typename?: 'Mutation', pages?: { __typename?: 'PageMutation', render?: { __typename?: 'DefaultResponse', responseResult?: { __typename?: 'ResponseStatus', succeeded: boolean, errorCode: number, slug: string, message?: string | null } | null } | null } | null };
|
|
|
|
|
|
|
|
|
|
|
|
|
export const GetPageByIdDocument = gql`
|
|
export const GetPageByIdDocument = gql`
|
|
@@ -1899,6 +1980,16 @@ export const GetPageByIdDocument = gql`
|
|
|
createdAt
|
|
createdAt
|
|
|
updatedAt
|
|
updatedAt
|
|
|
locale
|
|
locale
|
|
|
|
|
+ editor
|
|
|
|
|
+ isPublished
|
|
|
|
|
+ isPrivate
|
|
|
|
|
+ render
|
|
|
|
|
+ toc
|
|
|
|
|
+ contentType
|
|
|
|
|
+ publishStartDate
|
|
|
|
|
+ publishEndDate
|
|
|
|
|
+ scriptCss
|
|
|
|
|
+ scriptJs
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1917,6 +2008,16 @@ export const GetPageByPathDocument = gql`
|
|
|
tag
|
|
tag
|
|
|
title
|
|
title
|
|
|
}
|
|
}
|
|
|
|
|
+ editor
|
|
|
|
|
+ isPublished
|
|
|
|
|
+ isPrivate
|
|
|
|
|
+ render
|
|
|
|
|
+ toc
|
|
|
|
|
+ contentType
|
|
|
|
|
+ publishStartDate
|
|
|
|
|
+ publishEndDate
|
|
|
|
|
+ scriptCss
|
|
|
|
|
+ scriptJs
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1933,6 +2034,8 @@ export const GetAllPagesDocument = gql`
|
|
|
createdAt
|
|
createdAt
|
|
|
updatedAt
|
|
updatedAt
|
|
|
tags
|
|
tags
|
|
|
|
|
+ isPublished
|
|
|
|
|
+ isPrivate
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1942,6 +2045,7 @@ export const SearchPagesDocument = gql`
|
|
|
pages {
|
|
pages {
|
|
|
search(query: $query, path: $path, locale: $locale) {
|
|
search(query: $query, path: $path, locale: $locale) {
|
|
|
results {
|
|
results {
|
|
|
|
|
+ id
|
|
|
title
|
|
title
|
|
|
description
|
|
description
|
|
|
path
|
|
path
|
|
@@ -1973,12 +2077,17 @@ export const CreatePageDocument = gql`
|
|
|
slug
|
|
slug
|
|
|
message
|
|
message
|
|
|
}
|
|
}
|
|
|
|
|
+ page {
|
|
|
|
|
+ id
|
|
|
|
|
+ path
|
|
|
|
|
+ locale
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
`;
|
|
`;
|
|
|
export const UpdatePageDocument = gql`
|
|
export const UpdatePageDocument = gql`
|
|
|
- mutation UpdatePage($id: Int!, $title: String!, $content: String!, $description: String!, $editor: String!, $isPublished: Boolean!, $isPrivate: Boolean!, $locale: String!, $tags: [String]!, $path: String!) {
|
|
|
|
|
|
|
+ mutation UpdatePage($id: Int!, $title: String, $content: String, $description: String, $editor: String, $isPublished: Boolean, $isPrivate: Boolean, $locale: String, $tags: [String], $path: String) {
|
|
|
pages {
|
|
pages {
|
|
|
update(
|
|
update(
|
|
|
id: $id
|
|
id: $id
|
|
@@ -1998,6 +2107,193 @@ export const UpdatePageDocument = gql`
|
|
|
slug
|
|
slug
|
|
|
message
|
|
message
|
|
|
}
|
|
}
|
|
|
|
|
+ page {
|
|
|
|
|
+ id
|
|
|
|
|
+ path
|
|
|
|
|
+ locale
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const GetPageHistoryDocument = gql`
|
|
|
|
|
+ query GetPageHistory($id: Int!, $offsetPage: Int, $offsetSize: Int) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ history(id: $id, offsetPage: $offsetPage, offsetSize: $offsetSize) {
|
|
|
|
|
+ trail {
|
|
|
|
|
+ versionId
|
|
|
|
|
+ versionDate
|
|
|
|
|
+ authorId
|
|
|
|
|
+ authorName
|
|
|
|
|
+ actionType
|
|
|
|
|
+ valueBefore
|
|
|
|
|
+ valueAfter
|
|
|
|
|
+ }
|
|
|
|
|
+ total
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const GetPageVersionDocument = gql`
|
|
|
|
|
+ query GetPageVersion($pageId: Int!, $versionId: Int!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ version(pageId: $pageId, versionId: $versionId) {
|
|
|
|
|
+ action
|
|
|
|
|
+ authorId
|
|
|
|
|
+ authorName
|
|
|
|
|
+ content
|
|
|
|
|
+ contentType
|
|
|
|
|
+ createdAt
|
|
|
|
|
+ versionDate
|
|
|
|
|
+ description
|
|
|
|
|
+ editor
|
|
|
|
|
+ isPrivate
|
|
|
|
|
+ isPublished
|
|
|
|
|
+ locale
|
|
|
|
|
+ pageId
|
|
|
|
|
+ path
|
|
|
|
|
+ publishEndDate
|
|
|
|
|
+ publishStartDate
|
|
|
|
|
+ tags
|
|
|
|
|
+ title
|
|
|
|
|
+ versionId
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const GetPageTreeDocument = gql`
|
|
|
|
|
+ query GetPageTree($path: String, $parent: Int, $mode: PageTreeMode!, $locale: String!, $includeAncestors: Boolean) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ tree(
|
|
|
|
|
+ path: $path
|
|
|
|
|
+ parent: $parent
|
|
|
|
|
+ mode: $mode
|
|
|
|
|
+ locale: $locale
|
|
|
|
|
+ includeAncestors: $includeAncestors
|
|
|
|
|
+ ) {
|
|
|
|
|
+ id
|
|
|
|
|
+ path
|
|
|
|
|
+ depth
|
|
|
|
|
+ title
|
|
|
|
|
+ isPrivate
|
|
|
|
|
+ isFolder
|
|
|
|
|
+ privateNS
|
|
|
|
|
+ parent
|
|
|
|
|
+ pageId
|
|
|
|
|
+ locale
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const ListTagsDocument = gql`
|
|
|
|
|
+ query ListTags {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ tags {
|
|
|
|
|
+ id
|
|
|
|
|
+ tag
|
|
|
|
|
+ title
|
|
|
|
|
+ createdAt
|
|
|
|
|
+ updatedAt
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const SearchTagsDocument = gql`
|
|
|
|
|
+ query SearchTags($query: String!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ searchTags(query: $query)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const GetPageLinksDocument = gql`
|
|
|
|
|
+ query GetPageLinks($locale: String!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ links(locale: $locale) {
|
|
|
|
|
+ id
|
|
|
|
|
+ path
|
|
|
|
|
+ title
|
|
|
|
|
+ links
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const CheckConflictsDocument = gql`
|
|
|
|
|
+ query CheckConflicts($id: Int!, $checkoutDate: Date!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ checkConflicts(id: $id, checkoutDate: $checkoutDate)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const MovePageDocument = gql`
|
|
|
|
|
+ mutation MovePage($id: Int!, $destinationPath: String!, $destinationLocale: String!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ move(
|
|
|
|
|
+ id: $id
|
|
|
|
|
+ destinationPath: $destinationPath
|
|
|
|
|
+ destinationLocale: $destinationLocale
|
|
|
|
|
+ ) {
|
|
|
|
|
+ responseResult {
|
|
|
|
|
+ succeeded
|
|
|
|
|
+ errorCode
|
|
|
|
|
+ slug
|
|
|
|
|
+ message
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const DeletePageDocument = gql`
|
|
|
|
|
+ mutation DeletePage($id: Int!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ delete(id: $id) {
|
|
|
|
|
+ responseResult {
|
|
|
|
|
+ succeeded
|
|
|
|
|
+ errorCode
|
|
|
|
|
+ slug
|
|
|
|
|
+ message
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const RestorePageVersionDocument = gql`
|
|
|
|
|
+ mutation RestorePageVersion($pageId: Int!, $versionId: Int!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ restore(pageId: $pageId, versionId: $versionId) {
|
|
|
|
|
+ responseResult {
|
|
|
|
|
+ succeeded
|
|
|
|
|
+ errorCode
|
|
|
|
|
+ slug
|
|
|
|
|
+ message
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const ConvertPageEditorDocument = gql`
|
|
|
|
|
+ mutation ConvertPageEditor($id: Int!, $editor: String!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ convert(id: $id, editor: $editor) {
|
|
|
|
|
+ responseResult {
|
|
|
|
|
+ succeeded
|
|
|
|
|
+ errorCode
|
|
|
|
|
+ slug
|
|
|
|
|
+ message
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ `;
|
|
|
|
|
+export const RenderPageDocument = gql`
|
|
|
|
|
+ mutation RenderPage($id: Int!) {
|
|
|
|
|
+ pages {
|
|
|
|
|
+ render(id: $id) {
|
|
|
|
|
+ responseResult {
|
|
|
|
|
+ succeeded
|
|
|
|
|
+ errorCode
|
|
|
|
|
+ slug
|
|
|
|
|
+ message
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -2027,6 +2323,42 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
},
|
|
},
|
|
|
UpdatePage(variables: UpdatePageMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<UpdatePageMutation> {
|
|
UpdatePage(variables: UpdatePageMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<UpdatePageMutation> {
|
|
|
return withWrapper((wrappedRequestHeaders) => client.request<UpdatePageMutation>({ document: UpdatePageDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'UpdatePage', 'mutation', variables);
|
|
return withWrapper((wrappedRequestHeaders) => client.request<UpdatePageMutation>({ document: UpdatePageDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'UpdatePage', 'mutation', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ GetPageHistory(variables: GetPageHistoryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<GetPageHistoryQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<GetPageHistoryQuery>({ document: GetPageHistoryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'GetPageHistory', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ GetPageVersion(variables: GetPageVersionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<GetPageVersionQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<GetPageVersionQuery>({ document: GetPageVersionDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'GetPageVersion', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ GetPageTree(variables: GetPageTreeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<GetPageTreeQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<GetPageTreeQuery>({ document: GetPageTreeDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'GetPageTree', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ ListTags(variables?: ListTagsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<ListTagsQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<ListTagsQuery>({ document: ListTagsDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'ListTags', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ SearchTags(variables: SearchTagsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<SearchTagsQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<SearchTagsQuery>({ document: SearchTagsDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'SearchTags', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ GetPageLinks(variables: GetPageLinksQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<GetPageLinksQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<GetPageLinksQuery>({ document: GetPageLinksDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'GetPageLinks', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ CheckConflicts(variables: CheckConflictsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<CheckConflictsQuery> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<CheckConflictsQuery>({ document: CheckConflictsDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'CheckConflicts', 'query', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ MovePage(variables: MovePageMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<MovePageMutation> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<MovePageMutation>({ document: MovePageDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'MovePage', 'mutation', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ DeletePage(variables: DeletePageMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<DeletePageMutation> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<DeletePageMutation>({ document: DeletePageDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'DeletePage', 'mutation', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ RestorePageVersion(variables: RestorePageVersionMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<RestorePageVersionMutation> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<RestorePageVersionMutation>({ document: RestorePageVersionDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'RestorePageVersion', 'mutation', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ ConvertPageEditor(variables: ConvertPageEditorMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<ConvertPageEditorMutation> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<ConvertPageEditorMutation>({ document: ConvertPageEditorDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'ConvertPageEditor', 'mutation', variables);
|
|
|
|
|
+ },
|
|
|
|
|
+ RenderPage(variables: RenderPageMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<RenderPageMutation> {
|
|
|
|
|
+ return withWrapper((wrappedRequestHeaders) => client.request<RenderPageMutation>({ document: RenderPageDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'RenderPage', 'mutation', variables);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|