userAddFirstAdmin.api.ts 1.3 KB

1234567891011121314151617181920212223242526
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { SessionFragmentDoc } from '../../../../../../shared/graphql/fragments/session.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 UserAddFirstAdminDocument = gql`
  9. mutation userAddFirstAdmin($input: UserSignupInput!) {
  10. userAddFirstAdmin(input: $input) {
  11. session {
  12. ...session
  13. }
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${SessionFragmentDoc}
  20. ${ErrorsFragmentDoc}`;
  21. export function useUserAddFirstAdminMutation(options: VueApolloComposable.UseMutationOptions<Types.UserAddFirstAdminMutation, Types.UserAddFirstAdminMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.UserAddFirstAdminMutation, Types.UserAddFirstAdminMutationVariables>> = {}) {
  22. return VueApolloComposable.useMutation<Types.UserAddFirstAdminMutation, Types.UserAddFirstAdminMutationVariables>(UserAddFirstAdminDocument, options);
  23. }
  24. export type UserAddFirstAdminMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.UserAddFirstAdminMutation, Types.UserAddFirstAdminMutationVariables>;