autocompleteSearchTicket.api.ts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 AutocompleteSearchTicketDocument = gql`
  7. query autocompleteSearchTicket($input: AutocompleteSearchTicketInput!) {
  8. autocompleteSearchTicket(input: $input) {
  9. value
  10. label
  11. labelPlaceholder
  12. heading
  13. headingPlaceholder
  14. disabled
  15. icon
  16. ticket {
  17. id
  18. number
  19. internalId
  20. state {
  21. id
  22. name
  23. }
  24. stateColorCode
  25. }
  26. }
  27. }
  28. `;
  29. export function useAutocompleteSearchTicketQuery(variables: Types.AutocompleteSearchTicketQueryVariables | VueCompositionApi.Ref<Types.AutocompleteSearchTicketQueryVariables> | ReactiveFunction<Types.AutocompleteSearchTicketQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>> = {}) {
  30. return VueApolloComposable.useQuery<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>(AutocompleteSearchTicketDocument, variables, options);
  31. }
  32. export function useAutocompleteSearchTicketLazyQuery(variables?: Types.AutocompleteSearchTicketQueryVariables | VueCompositionApi.Ref<Types.AutocompleteSearchTicketQueryVariables> | ReactiveFunction<Types.AutocompleteSearchTicketQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>> = {}) {
  33. return VueApolloComposable.useLazyQuery<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>(AutocompleteSearchTicketDocument, variables, options);
  34. }
  35. export type AutocompleteSearchTicketQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.AutocompleteSearchTicketQuery, Types.AutocompleteSearchTicketQueryVariables>;