package wikijs const searchPagesQuery = `query SearchPages($query: String!, $path: String, $locale: String) { pages { search(query: $query, path: $path, locale: $locale) { results { title description path locale } suggestions totalHits } } }` const pageByIDQuery = `query GetPageById($id: Int!) { pages { single(id: $id) { id path title description tags { tag title } content createdAt updatedAt locale isPublished isPrivate } } }` const pageByPathQuery = `query GetPageByPath($path: String!, $locale: String!) { pages { singleByPath(path: $path, locale: $locale) { id path title description content createdAt updatedAt locale isPublished isPrivate tags { tag title } } } }` const listPagesQuery = `query GetAllPages($limit: Int, $locale: String, $tags: [String!]) { pages { list(limit: $limit, locale: $locale, tags: $tags) { id path locale title description createdAt updatedAt tags } } }` const listAssetFoldersQuery = `query ListAssetFolders($parentFolderId: Int!) { assets { folders(parentFolderId: $parentFolderId) { id slug name } } }` const listAssetsQuery = `query ListAssets($folderId: Int!, $kind: AssetKind!) { assets { list(folderId: $folderId, kind: $kind) { id filename ext kind mime fileSize createdAt updatedAt folder { id slug name } } } }` const createAssetFolderMutation = `mutation CreateAssetFolder( $parentFolderId: Int! $slug: String! $name: String! ) { assets { createFolder( parentFolderId: $parentFolderId slug: $slug name: $name ) { responseResult { succeeded errorCode slug message } } } }` const createPageMutation = `mutation CreatePage( $title: String! $content: String! $description: String! $editor: String! $isPublished: Boolean! $isPrivate: Boolean! $locale: String! $tags: [String]! $path: String! ) { pages { create( title: $title content: $content description: $description editor: $editor isPublished: $isPublished isPrivate: $isPrivate locale: $locale tags: $tags path: $path ) { responseResult { succeeded errorCode slug message } } } }` const updatePageMutation = `mutation UpdatePage( $id: Int! $title: String! $content: String! $description: String! $editor: String! $isPublished: Boolean! $isPrivate: Boolean! $locale: String! $tags: [String]! $path: String! ) { pages { update( id: $id title: $title content: $content description: $description editor: $editor isPublished: $isPublished isPrivate: $isPrivate locale: $locale tags: $tags path: $path ) { responseResult { succeeded errorCode slug message } } } }`