systemSetupLock.api.ts 1.1 KB

1234567891011121314151617181920212223
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { ErrorsFragmentDoc } from '../../../../../../shared/graphql/fragments/errors.api';
  4. import * as VueApolloComposable from '@vue/apollo-composable';
  5. import * as VueCompositionApi from 'vue';
  6. export type ReactiveFunction<TParam> = () => TParam;
  7. export const SystemSetupLockDocument = gql`
  8. mutation systemSetupLock($ttl: Int) {
  9. systemSetupLock(ttl: $ttl) {
  10. resource
  11. value
  12. errors {
  13. ...errors
  14. }
  15. }
  16. }
  17. ${ErrorsFragmentDoc}`;
  18. export function useSystemSetupLockMutation(options: VueApolloComposable.UseMutationOptions<Types.SystemSetupLockMutation, Types.SystemSetupLockMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.SystemSetupLockMutation, Types.SystemSetupLockMutationVariables>> = {}) {
  19. return VueApolloComposable.useMutation<Types.SystemSetupLockMutation, Types.SystemSetupLockMutationVariables>(SystemSetupLockDocument, options);
  20. }
  21. export type SystemSetupLockMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.SystemSetupLockMutation, Types.SystemSetupLockMutationVariables>;