SearchResult.ts 480 B

1234567891011121314151617
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { SearchResult } from '#shared/graphql/types.ts'
  3. import type { ResolversMeta } from '../builders/index.ts'
  4. import type { DeepPartial } from '@apollo/client/utilities'
  5. export default (
  6. _1: any,
  7. _2: any,
  8. meta: ResolversMeta,
  9. ): DeepPartial<SearchResult> => {
  10. return {
  11. // always generate types based on the query variable
  12. __typename: meta.variables.onlyIn as 'Ticket',
  13. }
  14. }