systemImportState.api.ts 1.7 KB

123456789101112131415161718192021222324
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import * as VueApolloComposable from '@vue/apollo-composable';
  4. import * as VueCompositionApi from 'vue';
  5. export type ReactiveFunction<TParam> = () => TParam;
  6. export const SystemImportStateDocument = gql`
  7. query systemImportState {
  8. systemImportState {
  9. name
  10. result
  11. startedAt
  12. finishedAt
  13. }
  14. }
  15. `;
  16. export function useSystemImportStateQuery(options: VueApolloComposable.UseQueryOptions<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>> = {}) {
  17. return VueApolloComposable.useQuery<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>(SystemImportStateDocument, {}, options);
  18. }
  19. export function useSystemImportStateLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>> = {}) {
  20. return VueApolloComposable.useLazyQuery<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>(SystemImportStateDocument, {}, options);
  21. }
  22. export type SystemImportStateQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.SystemImportStateQuery, Types.SystemImportStateQueryVariables>;