mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(core): add notifications settings (#11004)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
query getUserSettings {
|
||||
currentUser {
|
||||
settings {
|
||||
receiveInvitationEmail
|
||||
receiveMentionEmail
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -850,6 +850,19 @@ export const getUserFeaturesQuery = {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getUserSettingsQuery = {
|
||||
id: 'getUserSettingsQuery' as const,
|
||||
op: 'getUserSettings',
|
||||
query: `query getUserSettings {
|
||||
currentUser {
|
||||
settings {
|
||||
receiveInvitationEmail
|
||||
receiveMentionEmail
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getUserQuery = {
|
||||
id: 'getUserQuery' as const,
|
||||
op: 'getUser',
|
||||
@@ -1436,6 +1449,14 @@ export const updateUserProfileMutation = {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const updateUserSettingsMutation = {
|
||||
id: 'updateUserSettingsMutation' as const,
|
||||
op: 'updateUserSettings',
|
||||
query: `mutation updateUserSettings($input: UpdateSettingsInput!) {
|
||||
updateSettings(input: $input)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const uploadAvatarMutation = {
|
||||
id: 'uploadAvatarMutation' as const,
|
||||
op: 'uploadAvatar',
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation updateUserSettings($input: UpdateSettingsInput!) {
|
||||
updateSettings(input: $input)
|
||||
}
|
||||
@@ -3213,6 +3213,20 @@ export type GetUserFeaturesQuery = {
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type GetUserSettingsQueryVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type GetUserSettingsQuery = {
|
||||
__typename?: 'Query';
|
||||
currentUser: {
|
||||
__typename?: 'UserType';
|
||||
settings: {
|
||||
__typename?: 'SettingsType';
|
||||
receiveInvitationEmail: boolean;
|
||||
receiveMentionEmail: boolean;
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type GetUserQueryVariables = Exact<{
|
||||
email: Scalars['String']['input'];
|
||||
}>;
|
||||
@@ -3839,6 +3853,15 @@ export type UpdateUserProfileMutation = {
|
||||
updateProfile: { __typename?: 'UserType'; id: string; name: string };
|
||||
};
|
||||
|
||||
export type UpdateUserSettingsMutationVariables = Exact<{
|
||||
input: UpdateSettingsInput;
|
||||
}>;
|
||||
|
||||
export type UpdateUserSettingsMutation = {
|
||||
__typename?: 'Mutation';
|
||||
updateSettings: boolean;
|
||||
};
|
||||
|
||||
export type UploadAvatarMutationVariables = Exact<{
|
||||
avatar: Scalars['Upload']['input'];
|
||||
}>;
|
||||
@@ -4230,6 +4253,11 @@ export type Queries =
|
||||
variables: GetUserFeaturesQueryVariables;
|
||||
response: GetUserFeaturesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getUserSettingsQuery';
|
||||
variables: GetUserSettingsQueryVariables;
|
||||
response: GetUserSettingsQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getUserQuery';
|
||||
variables: GetUserQueryVariables;
|
||||
@@ -4647,6 +4675,11 @@ export type Mutations =
|
||||
variables: UpdateUserProfileMutationVariables;
|
||||
response: UpdateUserProfileMutation;
|
||||
}
|
||||
| {
|
||||
name: 'updateUserSettingsMutation';
|
||||
variables: UpdateUserSettingsMutationVariables;
|
||||
response: UpdateUserSettingsMutation;
|
||||
}
|
||||
| {
|
||||
name: 'uploadAvatarMutation';
|
||||
variables: UploadAvatarMutationVariables;
|
||||
|
||||
Reference in New Issue
Block a user