mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
Adding withRequestAccountDeletion, withRequestDownloadLink, withCancelAccountDeletion
This commit is contained in:
@@ -25,6 +25,9 @@ export default {
|
||||
'UnsuspendUserResponse',
|
||||
'UpdateAssetSettingsResponse',
|
||||
'UpdateAssetStatusResponse',
|
||||
'UpdateSettingsResponse'
|
||||
'UpdateSettingsResponse',
|
||||
'RequestAccountDeletionResponse',
|
||||
'RequestDownloadLinkResponse',
|
||||
'CancelAccountDeletionResponse'
|
||||
),
|
||||
};
|
||||
|
||||
@@ -623,6 +623,57 @@ export const withUpdateSettings = withMutation(
|
||||
}
|
||||
);
|
||||
|
||||
export const withRequestAccountDeletion = withMutation(
|
||||
gql`
|
||||
mutation RequestAccountDeletion {
|
||||
requestAccountDeletion {
|
||||
...RequestAccountDeletionResponse
|
||||
}
|
||||
}
|
||||
`,
|
||||
{
|
||||
props: ({ mutate }) => ({
|
||||
requestAccountDeletion: () => {
|
||||
return mutate();
|
||||
},
|
||||
}),
|
||||
}
|
||||
);
|
||||
|
||||
export const withRequestDownloadLink = withMutation(
|
||||
gql`
|
||||
mutation RequestDownloadLink {
|
||||
requestDownloadLink {
|
||||
...RequestDownloadLinkResponse
|
||||
}
|
||||
}
|
||||
`,
|
||||
{
|
||||
props: ({ mutate }) => ({
|
||||
requestDownloadLink: () => {
|
||||
return mutate();
|
||||
},
|
||||
}),
|
||||
}
|
||||
);
|
||||
|
||||
export const withCancelAccountDeletion = withMutation(
|
||||
gql`
|
||||
mutation RequestDownloadLink {
|
||||
cancelAccountDeletion {
|
||||
...CancelAccountDeletionResponse
|
||||
}
|
||||
}
|
||||
`,
|
||||
{
|
||||
props: ({ mutate }) => ({
|
||||
cancelAccountDeletion: () => {
|
||||
return mutate();
|
||||
},
|
||||
}),
|
||||
}
|
||||
);
|
||||
|
||||
export const withUpdateAssetSettings = withMutation(
|
||||
gql`
|
||||
mutation UpdateAssetSettings($id: ID!, $input: AssetSettingsInput!) {
|
||||
|
||||
Reference in New Issue
Block a user