ticketAttachments.api.ts 2.1 KB

1234567891011121314151617181920212223242526
  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 TicketAttachmentsDocument = gql`
  7. query ticketAttachments($ticketId: ID!) {
  8. ticketAttachments(ticketId: $ticketId) {
  9. id
  10. internalId
  11. name
  12. size
  13. type
  14. preferences
  15. }
  16. }
  17. `;
  18. export function useTicketAttachmentsQuery(variables: Types.TicketAttachmentsQueryVariables | VueCompositionApi.Ref<Types.TicketAttachmentsQueryVariables> | ReactiveFunction<Types.TicketAttachmentsQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>> = {}) {
  19. return VueApolloComposable.useQuery<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>(TicketAttachmentsDocument, variables, options);
  20. }
  21. export function useTicketAttachmentsLazyQuery(variables?: Types.TicketAttachmentsQueryVariables | VueCompositionApi.Ref<Types.TicketAttachmentsQueryVariables> | ReactiveFunction<Types.TicketAttachmentsQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>> = {}) {
  22. return VueApolloComposable.useLazyQuery<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>(TicketAttachmentsDocument, variables, options);
  23. }
  24. export type TicketAttachmentsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.TicketAttachmentsQuery, Types.TicketAttachmentsQueryVariables>;