1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import * as Types from '@common/graphql/types';
- import gql from 'graphql-tag';
- import * as VueApolloComposable from '@vue/apollo-composable';
- import * as VueCompositionApi from 'vue';
- export type ReactiveFunction<TParam> = () => TParam;
- export const ObjectAttributeValuesFragmentDoc = gql`
- fragment objectAttributeValues on ObjectAttributeValue {
- attribute {
- name
- display
- dataType
- dataOption
- screens
- editable
- active
- }
- value
- }
- `;
- export const TicketsByOverviewDocument = gql`
- query ticketsByOverview($overviewId: ID!, $orderBy: TicketOrderBy, $orderDirection: OrderDirection, $cursor: String, $pageSize: Int = 10) {
- ticketsByOverview(
- overviewId: $overviewId
- orderBy: $orderBy
- orderDirection: $orderDirection
- after: $cursor
- first: $pageSize
- ) {
- totalCount
- edges {
- node {
- id
- number
- title
- createdAt
- updatedAt
- owner {
- firstname
- lastname
- }
- customer {
- firstname
- lastname
- }
- organization {
- name
- }
- state {
- name
- stateTypeName
- }
- group {
- name
- }
- priority {
- name
- }
- objectAttributeValues {
- ...objectAttributeValues
- }
- }
- cursor
- }
- pageInfo {
- endCursor
- hasNextPage
- }
- }
- }
- ${ObjectAttributeValuesFragmentDoc}`;
- /**
- * __useTicketsByOverviewQuery__
- *
- * To run a query within a Vue component, call `useTicketsByOverviewQuery` and pass it any options that fit your needs.
- * When your component renders, `useTicketsByOverviewQuery` returns an object from Apollo Client that contains result, loading and error properties
- * you can use to render your UI.
- *
- * @param variables that will be passed into the query
- * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
- *
- * @example
- * const { result, loading, error } = useTicketsByOverviewQuery({
- * overviewId: // value for 'overviewId'
- * orderBy: // value for 'orderBy'
- * orderDirection: // value for 'orderDirection'
- * cursor: // value for 'cursor'
- * pageSize: // value for 'pageSize'
- * });
- */
- 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 type TicketsByOverviewQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.TicketsByOverviewQuery, Types.TicketsByOverviewQueryVariables>;
|