mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(core): add notification service (#10855)
This commit is contained in:
@@ -1107,6 +1107,14 @@ export const listUsersQuery = {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const mentionUserMutation = {
|
||||
id: 'mentionUserMutation' as const,
|
||||
op: 'mentionUser',
|
||||
query: `mutation mentionUser($input: MentionInput!) {
|
||||
mentionUser(input: $input)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const notificationCountQuery = {
|
||||
id: 'notificationCountQuery' as const,
|
||||
op: 'notificationCount',
|
||||
|
||||
3
packages/frontend/graphql/src/graphql/mention-user.gql
Normal file
3
packages/frontend/graphql/src/graphql/mention-user.gql
Normal file
@@ -0,0 +1,3 @@
|
||||
mutation mentionUser($input: MentionInput!) {
|
||||
mentionUser(input: $input)
|
||||
}
|
||||
@@ -3424,6 +3424,15 @@ export type ListUsersQuery = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type MentionUserMutationVariables = Exact<{
|
||||
input: MentionInput;
|
||||
}>;
|
||||
|
||||
export type MentionUserMutation = {
|
||||
__typename?: 'Mutation';
|
||||
mentionUser: string;
|
||||
};
|
||||
|
||||
export type NotificationCountQueryVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type NotificationCountQuery = {
|
||||
@@ -4434,6 +4443,11 @@ export type Mutations =
|
||||
variables: LeaveWorkspaceMutationVariables;
|
||||
response: LeaveWorkspaceMutation;
|
||||
}
|
||||
| {
|
||||
name: 'mentionUserMutation';
|
||||
variables: MentionUserMutationVariables;
|
||||
response: MentionUserMutation;
|
||||
}
|
||||
| {
|
||||
name: 'publishPageMutation';
|
||||
variables: PublishPageMutationVariables;
|
||||
|
||||
Reference in New Issue
Block a user