userCurrentNotificationPreferencesUpdate.api.ts 1.8 KB

123456789101112131415161718192021222324252627282930
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { UserPersonalSettingsFragmentDoc } from '../../../../../../shared/graphql/fragments/userPersonalSettings.api';
  4. import { ErrorsFragmentDoc } from '../../../../../../shared/graphql/fragments/errors.api';
  5. import * as VueApolloComposable from '@vue/apollo-composable';
  6. import * as VueCompositionApi from 'vue';
  7. export type ReactiveFunction<TParam> = () => TParam;
  8. export const UserCurrentNotificationPreferencesUpdateDocument = gql`
  9. mutation userCurrentNotificationPreferencesUpdate($groupIds: [ID!], $matrix: UserNotificationMatrixInput!, $sound: UserNotificationSoundInput!) {
  10. userCurrentNotificationPreferencesUpdate(
  11. groupIds: $groupIds
  12. matrix: $matrix
  13. sound: $sound
  14. ) {
  15. user {
  16. ...userPersonalSettings
  17. }
  18. errors {
  19. ...errors
  20. }
  21. }
  22. }
  23. ${UserPersonalSettingsFragmentDoc}
  24. ${ErrorsFragmentDoc}`;
  25. export function useUserCurrentNotificationPreferencesUpdateMutation(options: VueApolloComposable.UseMutationOptions<Types.UserCurrentNotificationPreferencesUpdateMutation, Types.UserCurrentNotificationPreferencesUpdateMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.UserCurrentNotificationPreferencesUpdateMutation, Types.UserCurrentNotificationPreferencesUpdateMutationVariables>> = {}) {
  26. return VueApolloComposable.useMutation<Types.UserCurrentNotificationPreferencesUpdateMutation, Types.UserCurrentNotificationPreferencesUpdateMutationVariables>(UserCurrentNotificationPreferencesUpdateDocument, options);
  27. }
  28. export type UserCurrentNotificationPreferencesUpdateMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.UserCurrentNotificationPreferencesUpdateMutation, Types.UserCurrentNotificationPreferencesUpdateMutationVariables>;