|
@@ -52,6 +52,7 @@ type Document implements Base {
|
|
|
isDirectory: Boolean!
|
|
|
isEntry: Boolean!
|
|
|
searchContent: String
|
|
|
+ comments: [Comment]
|
|
|
tags: [Tag]
|
|
|
}
|
|
|
|
|
@@ -93,6 +94,7 @@ type Right implements Base {
|
|
|
role: RightRole!
|
|
|
exact: Boolean!
|
|
|
allow: Boolean!
|
|
|
+ group: Group!
|
|
|
}
|
|
|
|
|
|
type Setting implements Base {
|
|
@@ -145,6 +147,14 @@ type Query {
|
|
|
|
|
|
# Mutations (Create, Update, Delete)
|
|
|
type Mutation {
|
|
|
+ addRightToGroup(
|
|
|
+ groupId: Int!
|
|
|
+ path: String!
|
|
|
+ role: RightRole!
|
|
|
+ exact: Boolean!
|
|
|
+ allow: Boolean!
|
|
|
+ ): Right
|
|
|
+
|
|
|
assignTagToDocument(
|
|
|
tagId: Int!
|
|
|
documentId: Int!
|
|
@@ -155,6 +165,12 @@ type Mutation {
|
|
|
groupId: Int!
|
|
|
): OperationResult
|
|
|
|
|
|
+ createComment(
|
|
|
+ userId: Int!
|
|
|
+ documentId: Int!
|
|
|
+ content: String!
|
|
|
+ ): Comment
|
|
|
+
|
|
|
createDocument(
|
|
|
path: String!
|
|
|
title: String!
|
|
@@ -182,6 +198,10 @@ type Mutation {
|
|
|
role: UserRole!
|
|
|
): User
|
|
|
|
|
|
+ deleteComment(
|
|
|
+ id: Int!
|
|
|
+ ): OperationResult
|
|
|
+
|
|
|
deleteDocument(
|
|
|
id: Int!
|
|
|
): OperationResult
|
|
@@ -202,6 +222,11 @@ type Mutation {
|
|
|
id: Int!
|
|
|
): OperationResult
|
|
|
|
|
|
+ modifyComment(
|
|
|
+ id: Int!
|
|
|
+ content: String!
|
|
|
+ ): Document
|
|
|
+
|
|
|
modifyDocument(
|
|
|
id: Int!
|
|
|
title: String
|
|
@@ -217,6 +242,14 @@ type Mutation {
|
|
|
role: UserRole
|
|
|
): User
|
|
|
|
|
|
+ modifyRight(
|
|
|
+ id: Int!
|
|
|
+ path: String
|
|
|
+ role: RightRole
|
|
|
+ exact: Boolean
|
|
|
+ allow: Boolean
|
|
|
+ ): Right
|
|
|
+
|
|
|
moveDocument(
|
|
|
id: Int!
|
|
|
path: String!
|
|
@@ -234,7 +267,7 @@ type Mutation {
|
|
|
|
|
|
renameTag(
|
|
|
id: Int!
|
|
|
- name: String!
|
|
|
+ key: String!
|
|
|
): OperationResult
|
|
|
|
|
|
removeTagFromDocument(
|
|
@@ -242,6 +275,10 @@ type Mutation {
|
|
|
documentId: Int!
|
|
|
): OperationResult
|
|
|
|
|
|
+ removeRightFromGroup(
|
|
|
+ rightId: Int!
|
|
|
+ ): OperationResult
|
|
|
+
|
|
|
removeUserFromGroup(
|
|
|
userId: Int!
|
|
|
groupId: Int!
|
|
@@ -251,6 +288,11 @@ type Mutation {
|
|
|
id: Int!
|
|
|
): OperationResult
|
|
|
|
|
|
+ setConfigEntry(
|
|
|
+ key: String!
|
|
|
+ value: String!
|
|
|
+ ): OperationResult
|
|
|
+
|
|
|
setUserPassword(
|
|
|
id: Int!
|
|
|
passwordRaw: String!
|