123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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> = () => 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 {
- 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<Types.TicketsByOverviewQueryVariables> | ReactiveFunction<Types.TicketsByOverviewQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>> = {}) {
- return VueApolloComposable.useQuery<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>(TicketsByOverviewDocument, variables, options);
- }
- export function useTicketsByOverviewLazyQuery(variables?: Types.TicketsByOverviewQueryVariables | VueCompositionApi.Ref<Types.TicketsByOverviewQueryVariables> | ReactiveFunction<Types.TicketsByOverviewQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>> = {}) {
- return VueApolloComposable.useLazyQuery<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>(TicketsByOverviewDocument, variables, options);
- }
- export type TicketsByOverviewQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>;
|