123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- # ===============================================
- # PAGES
- # ===============================================
- extend type Query {
- pageHistoryById(
- id: Int!
- offsetPage: Int
- offsetSize: Int
- ): PageHistoryResult
- pageVersionById(
- pageId: Int!
- versionId: Int!
- ): PageVersion
- searchPages(
- """
- Site ID to search in (required)
- """
- siteId: UUID!
- """
- Search Query (required)
- """
- query: String!
- """
- The locale to perform the query as. Affects how the query is parsed by the search engine.
- """
- queryLocale: String
- """
- Only match pages that starts with the provided path.
- """
- path: String
- """
- Only match pages having one of the provided locales.
- """
- locale: [String]
- """
- Only match pages having one of the provided tags.
- """
- tags: [String]
- """
- Only match pages using the provided editor.
- """
- editor: String
- """
- Only match pages is the provided state.
- """
- publishState: PagePublishState
- """
- Result ordering. Defaults to relevancy.
- """
- orderBy: PageSearchSort
- """
- Result ordering direction. Defaults to descending.
- """
- orderByDirection: OrderByDirection
- """
- Result offset. Defaults to 0.
- """
- offset: Int
- """
- Results amount to return. Defaults to 25. Maximum 100.
- """
- limit: Int
- ): PageSearchResponse
- searchPagesAutocomplete(
- siteId: UUID!
- query: String!
- ): [String]
- 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
- tags(
- siteId: UUID!
- ): [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
- isSearchable: 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
- movePage(
- id: UUID!
- destinationLocale: String!
- destinationPath: String!
- title: 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
- rerenderPage(
- id: UUID!
- ): 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
- isSearchable: Boolean
- locale: String
- navigationId: UUID
- navigationMode: NavigationMode
- 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: [String]
- title: String
- toc: [JSON]
- tocDepth: PageTocDepth
- updatedAt: Date
- }
- type PageTag {
- id: UUID
- tag: String
- usageCount: Int
- siteId: UUID
- 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]
- totalHits: Int
- }
- type PageSearchResult {
- description: String
- highlight: String
- icon: String
- id: UUID
- locale: String
- path: String
- relevancy: Float
- tags: [String]
- title: String
- updatedAt: Date
- }
- 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
- isSearchable: Boolean
- password: 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 PageSearchSort {
- relevancy
- title
- updatedAt
- }
- 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
- }
|