| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 | 
							- # ===============================================
 
- # PAGES
 
- # ===============================================
 
- extend type Query {
 
-   pageHistoryById(
 
-     id: Int!
 
-     offsetPage: Int
 
-     offsetSize: Int
 
-   ): PageHistoryResult
 
-   pageVersionById(
 
-     pageId: Int!
 
-     versionId: Int!
 
-   ): PageVersion
 
-   searchPages(
 
-     query: String!
 
-     path: String
 
-     locale: String
 
-   ): PageSearchResponse!
 
-   pages(
 
-     limit: Int
 
-     orderBy: PageOrderBy
 
-     orderByDirection: PageOrderByDirection
 
-     tags: [String!]
 
-     locale: String
 
-     creatorId: Int
 
-     authorId: Int
 
-   ): [PageListItem!]!
 
-   pageById(
 
-     id: UUID!
 
-     password: String
 
-   ): Page
 
-   pageByPath(
 
-     siteId: UUID!
 
-     path: String!
 
-     password: String
 
-   ): Page
 
-   pageTree(
 
-     path: String
 
-     parent: Int
 
-     mode: PageTreeMode!
 
-     locale: String!
 
-     includeAncestors: Boolean
 
-   ): [PageTreeItem]
 
-   pageLinks(
 
-     locale: String!
 
-   ): [PageLinkItem]
 
-   pathFromAlias(
 
-     siteId: UUID!
 
-     alias: String!
 
-   ): PageAliasPath
 
-   searchTags(
 
-     query: String!
 
-   ): [String]!
 
-   tags: [PageTag]!
 
-   checkConflicts(
 
-     id: Int!
 
-     checkoutDate: Date!
 
-   ): Boolean!
 
-   checkConflictsLatest(
 
-     id: Int!
 
-   ): PageConflictLatest!
 
- }
 
- extend type Mutation {
 
-   createPage(
 
-     alias: String
 
-     allowComments: Boolean
 
-     allowContributions: Boolean
 
-     allowRatings: Boolean
 
-     content: String!
 
-     description: String!
 
-     editor: String!
 
-     icon: String
 
-     isBrowsable: Boolean
 
-     locale: String!
 
-     path: String!
 
-     publishState: PagePublishState!
 
-     publishEndDate: Date
 
-     publishStartDate: Date
 
-     relations: [PageRelationInput!]
 
-     scriptCss: String
 
-     scriptJsLoad: String
 
-     scriptJsUnload: String
 
-     showSidebar: Boolean
 
-     showTags: Boolean
 
-     showToc: Boolean
 
-     siteId: UUID!
 
-     tags: [String!]
 
-     title: String!
 
-     tocDepth: PageTocDepthInput
 
-   ): PageResponse
 
-   updatePage(
 
-     id: UUID!
 
-     patch: PageUpdateInput!
 
-   ): PageResponse
 
-   convertPage(
 
-     id: UUID!
 
-     editor: String!
 
-   ): DefaultResponse
 
-   renamePage(
 
-     id: Int!
 
-     destinationPath: String!
 
-     destinationLocale: String!
 
-   ): DefaultResponse
 
-   deletePage(
 
-     id: UUID!
 
-   ): DefaultResponse
 
-   deleteTag(
 
-     id: Int!
 
-   ): DefaultResponse
 
-   updateTag(
 
-     id: Int!
 
-     tag: String!
 
-     title: String!
 
-   ): DefaultResponse
 
-   flushCache: DefaultResponse
 
-   migrateToLocale(
 
-     sourceLocale: String!
 
-     targetLocale: String!
 
-   ): PageMigrationResponse
 
-   rebuildPageTree: DefaultResponse
 
-   renderPage(
 
-     id: Int!
 
-   ): DefaultResponse
 
-   restorePage(
 
-     pageId: Int!
 
-     versionId: Int!
 
-   ): DefaultResponse
 
-   purgePagesHistory (
 
-     olderThan: String!
 
-   ): DefaultResponse
 
- }
 
- # -----------------------------------------------
 
- # TYPES
 
- # -----------------------------------------------
 
- type PageResponse {
 
-   operation: Operation
 
-   page: Page
 
- }
 
- type PageMigrationResponse {
 
-   operation: Operation
 
-   count: Int
 
- }
 
- type Page {
 
-   alias: String
 
-   allowComments: Boolean
 
-   allowContributions: Boolean
 
-   allowRatings: Boolean
 
-   author: User
 
-   content: String
 
-   contentType: String
 
-   createdAt: Date
 
-   creator: User
 
-   description: String
 
-   editor: String
 
-   hash: String
 
-   icon: String
 
-   id: UUID
 
-   isBrowsable: Boolean
 
-   locale: String
 
-   password: String
 
-   path: String
 
-   publishEndDate: Date
 
-   publishStartDate: Date
 
-   publishState: PagePublishState
 
-   relations: [PageRelation]
 
-   render: String
 
-   scriptJsLoad: String
 
-   scriptJsUnload: String
 
-   scriptCss: String
 
-   showSidebar: Boolean
 
-   showTags: Boolean
 
-   showToc: Boolean
 
-   siteId: UUID
 
-   tags: [PageTag]
 
-   title: String
 
-   toc: [JSON]
 
-   tocDepth: PageTocDepth
 
-   updatedAt: Date
 
- }
 
- type PageTag {
 
-   id: Int
 
-   tag: String
 
-   title: String
 
-   createdAt: Date
 
-   updatedAt: Date
 
- }
 
- type PageHistory {
 
-   versionId: Int
 
-   versionDate: Date
 
-   authorId: Int
 
-   authorName: String
 
-   actionType: String
 
-   valueBefore: String
 
-   valueAfter: String
 
- }
 
- type PageVersion {
 
-   action: String
 
-   authorId: String
 
-   authorName: String
 
-   content: String
 
-   contentType: String
 
-   createdAt: Date
 
-   versionDate: Date
 
-   description: String
 
-   editor: String
 
-   isPrivate: Boolean
 
-   isPublished: Boolean
 
-   locale: String
 
-   pageId: Int
 
-   path: String
 
-   publishEndDate: Date
 
-   publishStartDate: Date
 
-   render: String
 
-   tags: [String]
 
-   title: String
 
-   versionId: Int
 
- }
 
- type PageHistoryResult {
 
-   trail: [PageHistory]
 
-   total: Int
 
- }
 
- type PageSearchResponse {
 
-   results: [PageSearchResult]
 
-   suggestions: [String]
 
-   totalHits: Int
 
- }
 
- type PageSearchResult {
 
-   id: String
 
-   title: String
 
-   description: String
 
-   path: String
 
-   locale: String
 
- }
 
- type PageListItem {
 
-   id: Int
 
-   path: String
 
-   locale: String
 
-   title: String
 
-   description: String
 
-   contentType: String
 
-   isPublished: Boolean
 
-   isPrivate: Boolean
 
-   privateNS: String
 
-   createdAt: Date
 
-   updatedAt: Date
 
-   tags: [String]
 
- }
 
- type PageTreeItem {
 
-   id: Int
 
-   path: String
 
-   depth: Int
 
-   title: String
 
-   isPrivate: Boolean
 
-   isFolder: Boolean
 
-   privateNS: String
 
-   parent: Int
 
-   pageId: Int
 
-   locale: String
 
- }
 
- type PageLinkItem {
 
-   id: Int
 
-   path: String
 
-   title: String
 
-   links: [String]
 
- }
 
- type PageConflictLatest {
 
-   id: Int
 
-   authorId: String
 
-   authorName: String
 
-   content: String
 
-   createdAt: Date
 
-   description: String
 
-   isPublished: Boolean
 
-   locale: String
 
-   path: String
 
-   tags: [String]
 
-   title: String
 
-   updatedAt: Date
 
- }
 
- type PageRelation {
 
-   id: UUID
 
-   position: PageRelationPosition
 
-   label: String
 
-   caption: String
 
-   icon: String
 
-   target: String
 
- }
 
- input PageRelationInput {
 
-   id: UUID!
 
-   position: PageRelationPosition!
 
-   label: String!
 
-   caption: String
 
-   icon: String
 
-   target: String!
 
- }
 
- input PageUpdateInput {
 
-   alias: String
 
-   allowComments: Boolean
 
-   allowContributions: Boolean
 
-   allowRatings: Boolean
 
-   content: String
 
-   description: String
 
-   icon: String
 
-   isBrowsable: Boolean
 
-   locale: String
 
-   password: String
 
-   path: String
 
-   publishEndDate: Date
 
-   publishStartDate: Date
 
-   publishState: PagePublishState
 
-   reasonForChange: String
 
-   relations: [PageRelationInput!]
 
-   scriptJsLoad: String
 
-   scriptJsUnload: String
 
-   scriptCss: String
 
-   showSidebar: Boolean
 
-   showTags: Boolean
 
-   showToc: Boolean
 
-   tags: [String!]
 
-   title: String
 
-   tocDepth: PageTocDepthInput
 
- }
 
- type PageAliasPath {
 
-   id: UUID
 
-   path: String
 
- }
 
- type PageTocDepth {
 
-   min: Int
 
-   max: Int
 
- }
 
- input PageTocDepthInput {
 
-   min: Int!
 
-   max: Int!
 
- }
 
- enum PageOrderBy {
 
-   CREATED
 
-   ID
 
-   PATH
 
-   TITLE
 
-   UPDATED
 
- }
 
- enum PageOrderByDirection {
 
-   ASC
 
-   DESC
 
- }
 
- enum PageTreeMode {
 
-   FOLDERS
 
-   PAGES
 
-   ALL
 
- }
 
- enum PagePublishState {
 
-   draft
 
-   published
 
-   scheduled
 
- }
 
- enum PageRelationPosition {
 
-   left
 
-   center
 
-   right
 
- }
 
 
  |