api.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import * as Types from '@common/graphql/types';
  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 type ApplicationConfigQueryVariables = Types.Exact<{ [key: string]: never; }>;
  7. export type ApplicationConfigQuery = { __typename?: 'Queries', applicationConfig: Array<{ __typename?: 'KeyComplexValue', key: string, value?: any | null | undefined }> };
  8. export const ApplicationConfigDocument = gql`
  9. query applicationConfig {
  10. applicationConfig {
  11. key
  12. value
  13. }
  14. }
  15. `;
  16. /**
  17. * __useApplicationConfigQuery__
  18. *
  19. * To run a query within a Vue component, call `useApplicationConfigQuery` and pass it any options that fit your needs.
  20. * When your component renders, `useApplicationConfigQuery` returns an object from Apollo Client that contains result, loading and error properties
  21. * you can use to render your UI.
  22. *
  23. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  24. *
  25. * @example
  26. * const { result, loading, error } = useApplicationConfigQuery();
  27. */
  28. export function useApplicationConfigQuery(options: VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>> = {}) {
  29. return VueApolloComposable.useQuery<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>(ApplicationConfigDocument, {}, options);
  30. }
  31. export type ApplicationConfigQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>;