update.api.ts 1.4 KB

1234567891011121314151617181920212223242526
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { OrganizationAttributesFragmentDoc } from '../../../../../../shared/entities/organization/graphql/fragments/organizationAttributes.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 OrganizationUpdateDocument = gql`
  9. mutation organizationUpdate($id: ID!, $input: OrganizationInput!) {
  10. organizationUpdate(id: $id, input: $input) {
  11. organization {
  12. ...organizationAttributes
  13. }
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${OrganizationAttributesFragmentDoc}
  20. ${ErrorsFragmentDoc}`;
  21. export function useOrganizationUpdateMutation(options: VueApolloComposable.UseMutationOptions<Types.OrganizationUpdateMutation, Types.OrganizationUpdateMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.OrganizationUpdateMutation, Types.OrganizationUpdateMutationVariables>> = {}) {
  22. return VueApolloComposable.useMutation<Types.OrganizationUpdateMutation, Types.OrganizationUpdateMutationVariables>(OrganizationUpdateDocument, options);
  23. }
  24. export type OrganizationUpdateMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.OrganizationUpdateMutation, Types.OrganizationUpdateMutationVariables>;