WIP notification settings
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -24,6 +24,7 @@ export const COMMENT_FIELDS_FRAGMENT = gql`
|
||||
insertedAt
|
||||
updatedAt
|
||||
deletedAt
|
||||
isAnnouncement
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -92,11 +93,13 @@ export const CREATE_COMMENT_FROM_EVENT = gql`
|
||||
$eventId: ID!
|
||||
$text: String!
|
||||
$inReplyToCommentId: ID
|
||||
$isAnnouncement: Boolean
|
||||
) {
|
||||
createComment(
|
||||
eventId: $eventId
|
||||
text: $text
|
||||
inReplyToCommentId: $inReplyToCommentId
|
||||
isAnnouncement: $isAnnouncement
|
||||
) {
|
||||
...CommentRecursive
|
||||
}
|
||||
|
||||
@@ -171,6 +171,38 @@ export const SET_USER_SETTINGS = gql`
|
||||
${USER_SETTINGS_FRAGMENT}
|
||||
`;
|
||||
|
||||
export const USER_NOTIFICATIONS = gql`
|
||||
query UserNotifications {
|
||||
loggedUser {
|
||||
id
|
||||
locale
|
||||
settings {
|
||||
...UserSettingFragment
|
||||
}
|
||||
activitySettings {
|
||||
key
|
||||
method
|
||||
enabled
|
||||
}
|
||||
}
|
||||
}
|
||||
${USER_SETTINGS_FRAGMENT}
|
||||
`;
|
||||
|
||||
export const UPDATE_ACTIVITY_SETTING = gql`
|
||||
mutation UpdateActivitySetting(
|
||||
$key: String!
|
||||
$method: String!
|
||||
$enabled: Boolean!
|
||||
) {
|
||||
updateActivitySetting(key: $key, method: $method, enabled: $enabled) {
|
||||
key
|
||||
method
|
||||
enabled
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const LIST_USERS = gql`
|
||||
query ListUsers($email: String, $page: Int, $limit: Int) {
|
||||
users(email: $email, page: $page, limit: $limit) {
|
||||
|
||||
Reference in New Issue
Block a user