import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import { ObjectAttributeValuesFragmentDoc } from '../../../../../../shared/graphql/fragments/objectAttributeValues.api'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const TicketsByOverviewDocument = gql` query ticketsByOverview($overviewId: ID!, $orderBy: String, $orderDirection: EnumOrderDirection, $cursor: String, $showPriority: Boolean!, $showUpdatedBy: Boolean!, $pageSize: Int = 10, $withObjectAttributes: Boolean = false) { ticketsByOverview( overviewId: $overviewId orderBy: $orderBy orderDirection: $orderDirection after: $cursor first: $pageSize ) { totalCount edges { node { id internalId number title createdAt updatedAt updatedBy @include(if: $showUpdatedBy) { id fullname } customer { id firstname lastname fullname } organization { id name } state { id name stateType { id name } } group { id name } priority @include(if: $showPriority) { id name uiColor defaultCreate } objectAttributeValues @include(if: $withObjectAttributes) { ...objectAttributeValues } stateColorCode } cursor } pageInfo { endCursor hasNextPage } } } ${ObjectAttributeValuesFragmentDoc}`; export function useTicketsByOverviewQuery(variables: Types.TicketsByOverviewQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(TicketsByOverviewDocument, variables, options); } export function useTicketsByOverviewLazyQuery(variables?: Types.TicketsByOverviewQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(TicketsByOverviewDocument, variables, options); } export type TicketsByOverviewQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;